Skip to content

Commit

Permalink
Ajout brochures
Browse files Browse the repository at this point in the history
  • Loading branch information
grewn0uille committed Jun 21, 2024
1 parent a390629 commit 8c78578
Show file tree
Hide file tree
Showing 8 changed files with 20 additions and 2 deletions.
Binary file added static/brochures/brochure.pdf
Binary file not shown.
Binary file added static/brochures/brochure_en.pdf
Binary file not shown.
7 changes: 7 additions & 0 deletions static/sass/style.sass
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,10 @@ sup
color: $red
font-weight: 700

.brochures
display: flex
justify-content: space-evenly
list-style: none

// Nav
nav
Expand Down Expand Up @@ -442,6 +446,9 @@ main


#sponsors
h2 + p
text-align: center

.sponsor
max-width: 32em

Expand Down
1 change: 1 addition & 0 deletions templates/_layout.jinja2
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
{%- set title = dict(MENU + EXTRA_PAGES).get(page_name, ['', ''])[1 if lang == 'en' else 0] -%}

{%- from '_sponsors.jinja2' import sponsors -%}
{%- from '_sponsors.jinja2' import brochures -%}
{%- from '_map.jinja2' import map -%}

<!DOCTYPE html>
Expand Down
9 changes: 9 additions & 0 deletions templates/_sponsors.jinja2
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
{% macro brochures() %}
<ul class="brochures">
<li><a class="button" href="{{ url_for('static', filename='brochures/brochure.pdf') }}">Brochure de sponsoring (FR)</a></li>
<li><a class="button" href="{{ url_for('static', filename='brochures/brochure_en.pdf') }}">Sponsoring brochure (EN)</a></li>
</ul>
{% endmacro %}

{% macro description(company, lang) %}
<div class="description">

Expand Down Expand Up @@ -298,6 +305,8 @@ En complément, nous proposons notre expertise pour la mise en place de deux sol
</p>
{% endif %}

{{ brochures() }}

{% for level, companies in levels.items() %}
{% if companies %}
<section class="sponsors">
Expand Down
2 changes: 1 addition & 1 deletion templates/en/sponsors.jinja2.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ <h2>Sponsors</h2>

<article>
<h2>Support us</h2>

{{ brochures() }}
<section>
<h3>Help Us Before and During the Event</h3>

Expand Down
2 changes: 1 addition & 1 deletion templates/en/support.jinja2.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
{% block content %}
<article>
<h2>Support us</h2>

{{ brochures() }}
<section>
<h3>Help Us Before and During the Event</h3>

Expand Down
1 change: 1 addition & 0 deletions templates/fr/support.jinja2.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
{% block content %}
<article>
<h2>Nous soutenir</h2>
{{ brochures() }}
<section>
<h3>Nous aider avant et pendant l'événement</h3>

Expand Down

0 comments on commit 8c78578

Please sign in to comment.