add home.py file
Browse files
home.py
ADDED
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
from app import *
|
2 |
+
from datetime import datetime
|
3 |
+
|
4 |
+
|
5 |
+
def page():
|
6 |
+
txts = [Markdown(intro)]
|
7 |
+
return BstPage(0, "Hi there π", *txts)
|
8 |
+
|
9 |
+
birthdate = datetime(1994, 3, 18)
|
10 |
+
age_in_years = (datetime.now() - birthdate).days // 365
|
11 |
+
|
12 |
+
maya_birthdate = datetime(2019, 3, 18)
|
13 |
+
maya_age_in_years = (datetime.now() - maya_birthdate).days // 365
|
14 |
+
|
15 |
+
intro = f"""
|
16 |
+
<div class="row">
|
17 |
+
<div class="col-md-7">
|
18 |
+
|
19 |
+
I'm Nicholas Broad. I'm currently {age_in_years} years old, living in San Francisco, California. I'm an open-minded, curious, and self-motivated person who enjoys learning new things and working on interesting projects. I like to think of myself as friendly, humble, and a bit goofy. I live with my beautiful dog, <a href="https://www.flickr.com/photos/131470140@N06/albums/72177720295849325/">Maya</a>, who is {maya_age_in_years} years old. You can often find us at parks in SF playing fetch. Maya will almost always be wearing a bandana, as all dogs should. We even have a matching shirt and bandana (see photo)!
|
20 |
+
</div>
|
21 |
+
<div class="col-md-4">
|
22 |
+
<a data-flickr-embed="true" href="https://www.flickr.com/photos/131470140@N06/53939742438/in/album-72177720300307682/" title="Nico and Maya"><img src="https://live.staticflickr.com/65535/53939742438_6ca1a4b3eb.jpg" width="333" height="500" alt="Nico and Maya" class="img-fluid rounded"/></a><script async src="//embedr.flickr.com/assets/client-code.js" charset="utf-8"></script>
|
23 |
+
</div>
|
24 |
+
</div>
|
25 |
+
"""
|