-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add warning for ambigous macro names
- Loading branch information
Clément
committed
Jul 23, 2024
1 parent
ab1daca
commit 66656cd
Showing
3 changed files
with
75 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
{% macro navbar( | ||
CTA_LABEL="", | ||
CTA_TARGET="", | ||
CTA_URL="", | ||
CHANGE_LANG_URL="", | ||
CHANGE_LANG_FLAG_URL="", | ||
CHANGE_LANG_ALT="" | ||
) | ||
%} | ||
|
||
<!-- Navigation--> | ||
<nav class="navbar navbar-light bg-light static-top"> | ||
<div class="container"> | ||
<a class="navbar-brand" href="#"> | ||
<img class="navbar__logo__image" src="{{ static('assets/logo-galae.svg')}}" | ||
alt="galae"/> | ||
<div class="navbar__logo__label">le service e-mail qui vous veut du bien</div> | ||
</a> | ||
<div class="navbar__container__right"> | ||
<a class="btn btn-sm btn-primary" href="{{ CTA_URL }}" | ||
target="{{ CTA_TARGET }}">{{ CTA_LABEL }}</a> | ||
<a href="{{ url_for_slug_path(CHANGE_LANG_URL) }}"> | ||
<img class="languageFlag" src="{{ static(CHANGE_LANG_FLAG_URL)}}" alt="{{ CHANGE_LANG_ALT }}"/> | ||
</a> | ||
</div> | ||
</div> | ||
</nav> | ||
|
||
{% endmacro %} | ||
|
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,30 @@ | ||
{% macro page_header( | ||
PRIMARY_TITLE="", | ||
SECONDARY_TITLE="", | ||
THIRD_TITLE="" | ||
) | ||
%} | ||
|
||
<!-- Masthead--> | ||
<header class="masthead"> | ||
<div class="container position-relative"> | ||
<div class="row justify-content-center"> | ||
<div class="col-xl-9"> | ||
<div class="text-center text-white"> | ||
<!-- Page heading--> | ||
<h1 class="mb-5"> | ||
{{ PRIMARY_TITLE|safe }} | ||
</h1> | ||
{% if SECONDARY_TITLE %} | ||
<h2>{{ SECONDARY_TITLE|safe }}</h2> | ||
{% endif %} | ||
{% if THIRD_TITLE %} | ||
<h3 class="navbar__logo__label"><i>{{ THIRD_TITLE|safe }}</i></h3> | ||
{% endif %} | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</header> | ||
|
||
{% endmacro %} |
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