-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d7549ee
commit 6a88c97
Showing
7 changed files
with
97 additions
and
87 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,67 +1,79 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="utf-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1"> | ||
{% extends '_base.html' %} | ||
|
||
<title>PyCon CZ 23, 15-17 September, Prague</title> | ||
{% load static %} | ||
{% load markdown %} | ||
{% load static %} | ||
{% load regex %} | ||
|
||
<style> | ||
@font-face { | ||
font-family: "Chivo"; | ||
src: url("static/fonts/chivo.woff2") format("woff2-variations"); | ||
font-weight: 100 900; | ||
font-style: normal; | ||
font-display: block; | ||
} | ||
{% block body_extras %}class="PC-og"{% endblock %} | ||
|
||
@font-face { | ||
font-family: "Chivo"; | ||
src: url("static/fonts/chivo-italic.woff2") format("woff2-variations"); | ||
font-weight: 100 900; | ||
font-style: italic; | ||
font-display: block; | ||
} | ||
{% block body %} | ||
<div class="PC-og-container PC-header px-5 pt-4 pb-0"> | ||
<div class="row h-100"> | ||
<div class="col-6"> | ||
<h1 class="text-white mt-0 mb-3 {% if session.title|length > 90 %}lh-1{% endif %}"> | ||
{{ session.title }} | ||
<small class="text-white fs-2 d-inline-block"> | ||
{% if session.type == 'talk' %} | ||
{% if session.language == 'en' %} | ||
a {{ session.type }} by | ||
{% elif session.language == 'cs' %} | ||
přednáší | ||
{% endif %} | ||
{% elif session.type == 'panel' %} | ||
{% if session.language == 'en' %} | ||
a {{ session.type }} with | ||
{% elif session.language == 'cs' %} | ||
disktující: | ||
{% endif %} | ||
{% elif session.type == 'workshop' %} | ||
{% if session.language == 'en' %} | ||
a {{ session.type }} with | ||
{% elif session.language == 'cs' %} | ||
workshop vede | ||
{% endif %} | ||
{% elif session.type == 'sprint' %} | ||
{% if session.language == 'en' %} | ||
a {{ session.type }} lead by | ||
{% elif session.language == 'cs' %} | ||
sprint vede | ||
{% endif %} | ||
{% endif %} | ||
|
||
body { | ||
font-family: "Chivo"; | ||
background-image: url("static/img/header-bg.svg"); | ||
background-size: cover; | ||
color: #fff; | ||
width: 1200px; | ||
height: 630px; | ||
} | ||
{% for speaker in session.speakers %}{% if forloop.last and not forloop.first %} <span class="d-inline-block">& {% elif not forloop.first %},</span> <span class="d-inline-block">{% endif %}{% spaceless %} | ||
{{ speaker }}{% if forloop.last %}</span>{% endif %} | ||
{% endspaceless %}{% endfor %} | ||
</small> | ||
</h1> | ||
</div> | ||
<div class="col-6 px-0"> | ||
<div class="row g-3 align-items-start align-content-start h-100"> | ||
{% for speaker in session.speakers %} | ||
<div class=" | ||
{% if session.speakers|length == 1 %} | ||
col | ||
{% elif session.speakers|length == 2 or session.speakers|length == 3 or session.speakers|length == 4 %} | ||
col-6 | ||
{% elif session.speakers|length > 4 %} | ||
col-4 | ||
{% endif %} | ||
"> | ||
<div class="PC-speaker border border-black shadow border-2 rounded position-relative mb-2"> | ||
<div class="PC-image-primary PC-image-cover"> | ||
<img class="img-fluid" src="{{ speaker.photo.url }}" width="400" height="400" alt=""> | ||
</div> | ||
</div> | ||
</div> | ||
{% endfor %} | ||
</div> | ||
</div> | ||
</div> | ||
|
||
h1 { | ||
text-shadow: 2px 2px black; | ||
} | ||
{% comment %}<div class="col-3 position-relative">{% endcomment %} | ||
|
||
.og-container { | ||
padding: 40px 60px; | ||
box-sizing: border-box; | ||
display: flex; | ||
width: 100%; | ||
height: 100%; | ||
} | ||
|
||
.og-content { | ||
flex-grow: 1; | ||
} | ||
|
||
.og-branding { | ||
align-self: flex-end; | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
<div class="og-container"> | ||
<div class="og-content"> | ||
{% block content %}{% endblock %} | ||
<div class="PC-og-branding"> | ||
<img src="static/img/logo-pycon-23.min.svg" width="300" class="img-fluid"/> | ||
</div> | ||
</div> | ||
|
||
<div class="og-branding"> | ||
<img src="static/img/logo-pycon-23.min.svg" width="300"/> | ||
</div> | ||
</div> | ||
</body> | ||
</html> | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{% extends 'program/og_images/_og_base.html' %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1 @@ | ||
{% extends "program/og_images/_og_base.html" %} | ||
{% block content %} | ||
<h1> | ||
{{ talk.title }} | ||
</h1> | ||
|
||
<p> | ||
{% for speaker in talk.speakers %} | ||
{{ speaker }}{% if not forloop.last %},{% endif %} | ||
{% endfor %} | ||
</p> | ||
{% endblock %} | ||
{% extends 'program/og_images/_og_base.html' %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1 @@ | ||
{% extends "program/og_images/_og_base.html" %} | ||
{% block content %} | ||
<h1> | ||
{{ workshop.title }} | ||
</h1> | ||
|
||
<p> | ||
{% for speaker in workshop.speakers %} | ||
{{ speaker }}{% if not forloop.last %},{% endif %} | ||
{% endfor %} | ||
</p> | ||
{% endblock %} | ||
{% extends 'program/og_images/_og_base.html' %} |