working on art
This commit is contained in:
parent
2da3c57668
commit
777abcd210
6
main.py
6
main.py
@ -4,9 +4,13 @@ app = Flask(__name__)
|
|||||||
|
|
||||||
|
|
||||||
@app.route('/')
|
@app.route('/')
|
||||||
def hello():
|
def main():
|
||||||
return render_template('index.html')
|
return render_template('index.html')
|
||||||
|
|
||||||
|
@app.route('/art')
|
||||||
|
def art():
|
||||||
|
return render_template('art.html')
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
app.run(host='127.0.0.1', port=8080, debug=True)
|
app.run(host='127.0.0.1', port=8080, debug=True)
|
||||||
# [END gae_python37_app]
|
# [END gae_python37_app]
|
||||||
|
BIN
static/art/freddie.jpg
Normal file
BIN
static/art/freddie.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 672 KiB |
@ -20,7 +20,7 @@ a {
|
|||||||
|
|
||||||
color: white;
|
color: white;
|
||||||
font-family: 'Ubuntu', sans-serif;
|
font-family: 'Ubuntu', sans-serif;
|
||||||
font-size: 2vw;
|
font-size: 20px;
|
||||||
text-shadow: 2px 2px 2px #aaa;
|
text-shadow: 2px 2px 2px #aaa;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -35,8 +35,37 @@ p {
|
|||||||
|
|
||||||
.header {
|
.header {
|
||||||
background-color: #58518e;
|
background-color: #58518e;
|
||||||
padding: 25px;
|
padding: 0px;
|
||||||
|
width: 60vw;
|
||||||
|
height: 18vw;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
margin: auto;
|
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
28
templates/art.html
Normal 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>
|
@ -4,16 +4,18 @@
|
|||||||
<title>sarsoo</title>
|
<title>sarsoo</title>
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<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='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>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div class="header">
|
<div class="header">
|
||||||
<h1>sarsoo</h1>
|
<h1>sarsoo</h1>
|
||||||
</div>
|
</div>
|
||||||
|
<br><br>
|
||||||
<p>electronic engineering student</p>
|
<ul class="navbar">
|
||||||
|
<li><a href="/">home</a></li>
|
||||||
<a href="https://github.com/sarsoo">github</a>
|
<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>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
Loading…
Reference in New Issue
Block a user