working on art

This commit is contained in:
aj 2019-02-16 18:28:49 +00:00
parent 2da3c57668
commit 777abcd210
5 changed files with 73 additions and 10 deletions

View File

@ -4,9 +4,13 @@ app = Flask(__name__)
@app.route('/')
def hello():
def main():
return render_template('index.html')
@app.route('/art')
def art():
return render_template('art.html')
if __name__ == '__main__':
app.run(host='127.0.0.1', port=8080, debug=True)
# [END gae_python37_app]

BIN
static/art/freddie.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 672 KiB

View File

@ -20,7 +20,7 @@ a {
color: white;
font-family: 'Ubuntu', sans-serif;
font-size: 2vw;
font-size: 20px;
text-shadow: 2px 2px 2px #aaa;
}
@ -35,8 +35,37 @@ p {
.header {
background-color: #58518e;
padding: 25px;
padding: 0px;
width: 60vw;
height: 18vw;
text-align: center;
margin: auto;
}
.navbar {
list-style-type: none;
margin: 0;
padding: 0;
overflow: hidden;
background-color: #333;
}
.navbar li {
float: left;
position: -webkit-sticky;
position: sticky;
top: 0;
}
.navbar a {
display: block;
color: white;
text-align: center;
padding: 14px 16px;
text-decoration: none;
}
.navbar a:hover {
background-color: #111;
}
}

28
templates/art.html Normal file
View File

@ -0,0 +1,28 @@
<!doctype html>
<html>
<head>
<title>sarsoo</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link type="text/css" rel="stylesheet" href="{{ url_for('static', filename='style.css') }}">
<link type="text/css" rel="stylesheet" href="{{ url_for('static', filename='art.css') }}">
<link href="https://fonts.googleapis.com/css?family=Ubuntu" rel="stylesheet">
</head>
<body>
<div class="header">
<h1>sarsoo</h1>
</div>
<br><br>
<ul class="navbar">
<li><a href="/">home</a></li>
<li><a href="/art">art</a></li>
<li><a href="https://github.com/sarsoo">github</a></li>
<li><a href="https://www.last.fm/user/sarsoo">last.fm</a></li>
</ul>
<div class="gallery">
<a target="_blank" href="{{ url_for('static', filename='art/freddie.jpg') }} ">
<img src="{{ url_for('static', filename='art/freddie.jpg') }}" alt="Freddie Gibbs" width="600" height="400">
</a>
</div>
</body>
</html>

View File

@ -4,16 +4,18 @@
<title>sarsoo</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link type="text/css" rel="stylesheet" href="{{ url_for('static', filename='style.css') }}">
//<link href="https://fonts.googleapis.com/css?family=Ubuntu" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Ubuntu" rel="stylesheet">
</head>
<body>
<div class="header">
<h1>sarsoo</h1>
</div>
<p>electronic engineering student</p>
<a href="https://github.com/sarsoo">github</a>
<br><br>
<ul class="navbar">
<li><a href="/">home</a></li>
<li><a href="/art">art</a></li>
<li><a href="https://github.com/sarsoo">github</a></li>
<li><a href="https://www.last.fm/user/sarsoo">last.fm</a></li>
</ul>
</body>
</html>