Skip to content

Commit

Permalink
Starting up a homepage.
Browse files Browse the repository at this point in the history
  • Loading branch information
sjlu committed Oct 15, 2013
1 parent 1d8bfb6 commit 2980fcb
Show file tree
Hide file tree
Showing 5 changed files with 61 additions and 3 deletions.
Binary file added static/img/avatar.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions static/less/global.less
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
html,
body {
-webkit-font-smoothing: antialiased;
}
38 changes: 38 additions & 0 deletions static/less/homepage.less
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
#homepage {
padding-top: 20px;

#header {
padding: 20px 0;

.avatar {
width: 100px;
margin: 0 auto;

img {
width: 100px;
height: 100px;

.border-radius(50px);
}
}

.name {
width: 100%;
text-align: center;

font-family: "europa", sans-serif;
font-size: 50px;
text-transform: uppercase;
font-weight: 600;

line-height: 100px;
}

.tagline {
text-align: center;
font-family: "adobe-garamond-pro", serif;
font-size: 24px;
font-weight: 300;
}
}
}
8 changes: 6 additions & 2 deletions templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="description" content="" />
<meta name="keywords" content="" />
<meta name="description" content="Joy Sun -- A personality expressionist photographer." />
<meta name="keywords" content="photography, modeling, joy sun, personal shots" />

<title>Joy Sun Photography</title>

Expand All @@ -23,5 +23,9 @@
</head>
<body>
{% block body %}{% endblock %}

<script type="text/javascript" src="//use.typekit.net/geq2gwt.js"></script>
<script type="text/javascript">try{Typekit.load();}catch(e){}</script>
<!-- This site was made with love from Steven Lu (stevenlu.com) -->
</body>
</html>
14 changes: 13 additions & 1 deletion templates/homepage.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,16 @@
{% extends "base.html" %}
{% block body %}
<div class="container"></div>
<div id="homepage" class="container">
<div id="header">
<div class="avatar">
<img src="{{ url_for('static', filename='img/avatar.jpg') }}" />
</div>
<div class="name">
Joy Sun
</div>
<div class="tagline">
Photographing human expressions one person at a time.
</div>
</div>
</div>
{% endblock %}

0 comments on commit 2980fcb

Please sign in to comment.