Commit 847efda0 authored by Oprax's avatar Oprax

feat: icon with FA

parent a22b85a3
......@@ -7,30 +7,29 @@
<meta name="description" content="Personal website of Romain Muller.">
<title>Oprax &bull; Presentation</title>
<link rel="stylesheet" href="static/fonts/material-icons.css">
<link rel="stylesheet" href="static/css/fa-all.min.css">
<link rel="stylesheet" href="static/css/materialize.min.css">
<link rel="stylesheet" href="static/css/main.css">
</head>
{% macro render_menu() -%}
{% for title, link in MENUITEMS %}
<li><a href="{{ link }}">{{ title }}</a></li>
{% endfor %}
{%- endmacro %}
<body id="index">
<header id="banner" class="">
<nav class="nav-wrapper teal">
<div class="container">
<a href="index.html" class="brand-logo">Oprax</a>
<a href="#" data-target="slide-out" class="sidenav-trigger">
<i class="material-icons">menu</i>
</a>
<ul id="nav-mobile" class="right hide-on-med-and-down">
{{ render_menu() }}
{% for icon, link, title in MENUITEMS %}
<li title="{{ title }}"><a href="{{ link }}">{{ icon }}</a></li>
{% endfor %}
</ul>
</div>
</nav>
<ul id="slide-out" class="sidenav">
{{ render_menu() }}
{% for icon, link, title in MENUITEMS %}
<li title="{{ title }}"><a href="{{ link }}">{{ icon }}&nbsp;{{ title }}</a></li>
{% endfor %}
</ul>
</header><!-- /#banner -->
<div class="section white">
......@@ -158,9 +157,9 @@
<div class="col l4 offset-l2 s12">
<h5 class="white-text">Liens</h5>
<ul>
{% for title, link in MENUITEMS %}
<li>
<a class="cyan-text text-accent-1" href="{{ link }}">{{ title }}</a>
{% for icon, link, title in MENUITEMS %}
<li title="{{ title }}">
<a class="cyan-text text-accent-1" href="{{ link }}">{{ icon }}&nbsp;{{ title }}</a>
</li>
{% endfor %}
</ul>
......
This diff is collapsed.
@font-face{font-family:"Font Awesome 5 Brands";font-style:normal;font-weight:normal;src:url(../webfonts/fa-brands-400.eot);src:url(../webfonts/fa-brands-400.eot?#iefix) format("embedded-opentype"),url(../webfonts/fa-brands-400.woff2) format("woff2"),url(../webfonts/fa-brands-400.woff) format("woff"),url(../webfonts/fa-brands-400.ttf) format("truetype"),url(../webfonts/fa-brands-400.svg#fontawesome) format("svg")}.fab{font-family:"Font Awesome 5 Brands"}
\ No newline at end of file
This diff is collapsed.
......@@ -30,4 +30,8 @@ time {
p {
font-size: 1.2em;
}
\ No newline at end of file
}
.fas, .fab {
line-height: inherit;
}
This diff is collapsed.
This source diff could not be displayed because it is too large. You can view the blob instead.
This diff is collapsed.
......@@ -59,10 +59,15 @@ CONTEXT = {
},
),
"MENUITEMS": (
("Email me", "mailto:contact@oprax.fr"),
("Linkedin", "https://www.linkedin.com/in/romainmuller42/"),
("GitHub", "https://github.com/Oprax"),
("GitLab", "https://gitlab.com/Oprax"),
# ('<i class="fas fa-file-pdf"></i>', "/static/CV-en.pdf", "Curriculum Vitæ"),
('<i class="fas fa-envelope"></i>', "mailto:contact@oprax.fr", "Email me"),
(
'<i class="fab fa-linkedin"></i>',
"https://www.linkedin.com/in/romainmuller42/",
"Linkedin",
),
('<i class="fab fa-github"></i>', "https://github.com/Oprax", "GitHub"),
('<i class="fab fa-gitlab"></i>', "https://gitlab.com/Oprax", "GitLab"),
),
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment