From d1e68a6eb68655d194e2ef1fe57e3768cb773b73 Mon Sep 17 00:00:00 2001 From: cmaureir Date: Mon, 30 Oct 2023 21:43:23 +0000 Subject: [PATCH] deploy: 6021c0d8d19738afa05d6e67b652b80280658c22 --- css/style.css | 79 +++++++++++++++++++++++++ generate_site/generate.py | 12 +++- generate_site/keynotes.csv | 7 +++ generate_site/templates/index-base.html | 40 +++++++++++++ index.html | 34 +++++++++++ 5 files changed, 169 insertions(+), 3 deletions(-) create mode 100644 generate_site/keynotes.csv diff --git a/css/style.css b/css/style.css index cf448e2..996093d 100644 --- a/css/style.css +++ b/css/style.css @@ -408,3 +408,82 @@ h1, h2, h3, h4, h5 { background-color: #a71b36 !important; border-top: 1px solid #a71b36; } + +/* keynotes */ +.card-keynote { + flex-direction: row; + align-items: center; + overflow: hidden; + max-width: 1000px; +} + +.card-keynote img { + display: block; + border-top-right-radius: 0; + border-bottom-left-radius: calc(0.25rem - 1px); +} + +.card-keynote .card-title { + width: 50%; + background-color: var(--py-lady-pink); + padding: 8px; + font-size: 95%; +} + +.card-text { + font-size: 90%; +} + +.card-link { + position: relative; +} + +@media only screen and (max-width: 600px) { + .card-keynote { + flex-direction: column; + } + .card-keynote img { + width: 100%; + } + + .card-keynote .card-title { + width: 100%; + } + + .card-img-overlay { + height: 500px !important; + } +} + +@media only screen and (max-width: 500px) { + .card-img-overlay { + height: 450px !important; + } +} + +@media only screen and (max-width: 425px) { + .card-img-overlay { + height: 400px !important; + } +} + +@media only screen and (max-width: 375px) { + .card-img-overlay { + height: 350px !important; + } +} + +@media only screen and (max-width: 320px) { + .card-img-overlay { + height: 300px !important; + } +} + +.card-keynote img { + filter: sepia(100%) hue-rotate(190deg);/* saturate(500%); */ +} + +.card-keynote img:hover{ + filter: none; + transition-duration: 0.3s; +} diff --git a/generate_site/generate.py b/generate_site/generate.py index 5791cfa..22160dc 100644 --- a/generate_site/generate.py +++ b/generate_site/generate.py @@ -14,11 +14,17 @@ reader = csv.DictReader(f) df_org = list(reader) +# Keynote info from the csv +with open("keynotes.csv") as f: + reader = csv.DictReader(f) + keynotes = list(reader) + # TODO: Download images? 'Headshot image' is the column name ##### Template configuration conf = { "ORG": df_org, + "KEYNOTES": [keynotes[0]], # only one keynote } templates = { @@ -57,7 +63,7 @@ template_params = conf template_params.update(value) # Write final HTML - with open(Path("..") / f"{key}.html", "w") as f: - print(f"writing {f=}") - print(template_params) + fname = Path("..") / f"{key}.html" + with open(fname, "w") as f: + print(f"writing {fname}") f.write(_t.render(template_params)) diff --git a/generate_site/keynotes.csv b/generate_site/keynotes.csv new file mode 100644 index 0000000..4efb689 --- /dev/null +++ b/generate_site/keynotes.csv @@ -0,0 +1,7 @@ +name,mastodon,twitter,instagram,linkedin,photo,bio +Sophia Yang,,sophiamyang,,sophiamyang,"img/keynote/sophia.jpeg","Sophia Yang is a Senior Data Scientist and a Developer Advocate at Anaconda. She is passionate about the data science community and the Python open-source community. She is the author of multiple Python open-source libraries such as condastats, cranlogs, PyPowerUp, intake-stripe, and intake-salesforce. She serves on the Steering Committee and the Code of Conduct Committee of the Python open-source visualization system HoloViz. She also volunteers at NumFOCUS, PyData, and SciPy conferences. She holds an M.S. in Computer Science, an M.S. in Statistics, and a Ph.D. in Educational Psychology from The University of Texas at Austin." +Jimena Bermúdez,Jimena_y_yo@mastodon.social,Jimena_y_yo,,jimena-eb,"img/keynote/jimena.jpeg","Jimena is the esteemed president of Python Spain and a computer engineer who takes pride and joy in her profession. Although she was once drawn to the realms of design, UI, and UX, her true passion lies in coding and architectural design. A gifted communicator, Jimena has served as a web development instructor for individuals transitioning careers. She is an avid mentor, community speaker, and event organizer, holding active memberships in both Python Spain and PyLadies. With numerous publications emphasizing the importance of coding education and industry diversity, Jimena can be best described as a 'Full Stack developer ardently championing diversity, equity, and inclusion (DEI) from a tech standpoint and cherishing her role in the community.'" +Marlene Mhangami,Marlene@fosstodon.org,marlene_zw,marlene_zw,marlenemhangami,"img/keynote/marlene.jpg","Marlene is a Zimbabwean software engineer, explorer, and speaker based in the city of Harare. She is a previous director and vice-chair for the Python Software Foundation and is currently serving as the vice-chair of the Association for Computing Machinery practitioner board. In 2017, she co-founded ZimboPy, a non-profit organization that gives Zimbabwean young women access to resources in the field of technology. She is also the previous chair of PyCon Africa and is an advocate for women in tech on the continent. Professionally, Marlene is currently working as a Developer Advocate at Voltron Data." +Thais Viana,,,,,"img/keynote/thais.jpeg","Thais is currently a Group Product Manager at Jusbrasil, leading their Search & Recommendation team. Her active engagement in the tech community, including contributions to PyLadies in Rio de Janeiro and Afropython for more than 6 years, highlights her commitment to promoting diversity and inclusion in the industry." +Abigail Mesrenyame Dogbe,,,,,"img/keynote/abigail.jpg","Abigail Mesrenyame Dogbe is an Open Source Programs Manager, Researcher and Community Builder who believes in the power of Open Source Community Building. Her current research focuses on Improving DEI in Open Source Community Leadership. She is a contributor and community member in the African Python Software Community and has served as an organizer for local and international community events. Mesrenyame is a Fellow and a Community Service award winner at the Python Software Foundation." +Carolina Chavier,,,,,"img/keynote/carolina.jpeg","Some text" diff --git a/generate_site/templates/index-base.html b/generate_site/templates/index-base.html index 51da013..f063be4 100644 --- a/generate_site/templates/index-base.html +++ b/generate_site/templates/index-base.html @@ -69,6 +69,46 @@

About the conference

+
+
+
+ +

Keynotes

+
+ {% for keynote in KEYNOTES %} +
+
+ {{ keynote['name'] }} Photo +
+
{{ keynote['name'] }}
+
+
+

{{ '.'.join(keynote['bio'].split('.')[:2]) }}.

+ +
+
+
+ {% endfor %} +
+
+
+
+
diff --git a/index.html b/index.html index 6485a16..7155469 100644 --- a/index.html +++ b/index.html @@ -124,6 +124,40 @@

About the conference

+
+
+
+ +

Keynotes

+
+ +
+
+ Sophia Yang Photo +
+
Sophia Yang
+
+
+

Sophia Yang is a Senior Data Scientist and a Developer Advocate at Anaconda. She is passionate about the data science community and the Python open-source community.

+ +
+
+
+ +
+
+
+
+