me / home.py
nbroad's picture
nbroad HF staff
add home.py file
08cf77b verified
raw
history blame
1.43 kB
from app import *
from datetime import datetime
def page():
txts = [Markdown(intro)]
return BstPage(0, "Hi there πŸ‘‹", *txts)
birthdate = datetime(1994, 3, 18)
age_in_years = (datetime.now() - birthdate).days // 365
maya_birthdate = datetime(2019, 3, 18)
maya_age_in_years = (datetime.now() - maya_birthdate).days // 365
intro = f"""
<div class="row">
<div class="col-md-7">
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)!
</div>
<div class="col-md-4">
<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>
</div>
</div>
"""