feat: using emojis instead of icon fonts

This commit is contained in:
Laureηt 2022-11-24 15:13:35 +01:00
parent 7d77dea9ff
commit 45d07ef87f
No known key found for this signature in database
GPG key ID: D88C6B294FD40994
7 changed files with 30 additions and 32 deletions

View file

@ -194,3 +194,29 @@ td {
table tbody tr td { table tbody tr td {
border: 1px solid lightgray; border: 1px solid lightgray;
} }
/* ==================================================================
Custom
================================================================== */
.icons {
display: flex;
align-items: center;
gap: 0.5rem;
}
.icon {
display: flex;
align-items: center;
}
.franklin-content h1 {
font-size: 2rem !important;
}
.franklin-content img,
.franklin-content video {
width: 100% !important;
padding: 0 !important;
margin: 0 !important;
}

View file

@ -1,21 +0,0 @@
.icons {
display: flex;
align-items: center;
gap: 0.5rem;
}
.icon {
display: flex;
align-items: center;
}
.franklin-content h1 {
font-size: 2rem !important;
}
.franklin-content img,
.franklin-content video {
width: 100% !important;
padding: 0 !important;
margin: 0 !important;
}

View file

@ -5,11 +5,9 @@
<meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="viewport" content="width=device-width, initial-scale=1">
{{if hasmath}} {{insert head_katex.html }} {{end}} {{if hasmath}} {{insert head_katex.html }} {{end}}
{{if hascode}} {{insert head_highlight.html }} {{end}} {{if hascode}} {{insert head_highlight.html }} {{end}}
{{if hasicons}} {{insert head_icons.html }} {{end}}
<link rel="stylesheet" href="/css/franklin.css"> <link rel="stylesheet" href="/css/franklin.css">
<link rel="stylesheet" href="/css/basic.css"> <link rel="stylesheet" href="/css/basic.css">
<link rel="icon" href="/assets/favicon.png"> <link rel="icon" href="/assets/favicon.png">
<script defer data-domain="laurent.fainsin.bzh" src="http://stats.fainsin.bzh/js/plausible.js"></script>
{{isdef title}} <title>{{fill title}}</title> {{end}} {{isdef title}} <title>{{fill title}}</title> {{end}}
<meta name="description" content="Laurent Fainsin's personnal website"> <meta name="description" content="Laurent Fainsin's personnal website">
<meta property="og:title" content="{{fill title}}"> <meta property="og:title" content="{{fill title}}">

View file

@ -1,3 +0,0 @@
<link rel="stylesheet" href="/libs/devicon/devicon.min.css" />
<link rel="stylesheet" href="/libs/line-awesome/css/line-awesome.min.css" />
<link rel="stylesheet" href="/css/project.css" />

View file

@ -4,8 +4,6 @@ mintoclevel = 2
ignore = ["node_modules/", "_data/"] ignore = ["node_modules/", "_data/"]
hasicons = false
generate_sitemap = true generate_sitemap = true
generate_rss = false generate_rss = false
+++ +++

View file

@ -1,5 +1,5 @@
@def title = "Projects" @def title = "Projects"
@def hasicons = true
Here is a non-exhaustive list of my projects. \ Here is a non-exhaustive list of my projects. \
Most of them are in French 🇫🇷 🥖 🥐. Most of them are in French 🇫🇷 🥖 🥐.

View file

@ -8,9 +8,9 @@ function hfun_print_projects(yaml_files)
html_string = "" html_string = ""
for (project_name, project) in yaml for (project_name, project) in yaml
description = Franklin.fd2html(project["description"], internal=true) description = Franklin.fd2html(project["description"], internal=true)
repository = haskey(project, "repository") ? """<a href="$(project["repository"])"><i class="icon devicon-git-plain"></i></a>""" : "" repository = haskey(project, "repository") ? """<a href="$(project["repository"])">💾</a>""" : ""
website = haskey(project, "website") ? """<a href="$(project["website"])"><i class="icon las la-globe"></i></a>""" : "" website = haskey(project, "website") ? """<a href="$(project["website"])">🌐</a>""" : ""
pdf = haskey(project, "pdf") ? """<a href="$(project["pdf"])"><i class="icon las la-file-pdf"></i></a>""" : "" pdf = haskey(project, "pdf") ? """<a href="$(project["pdf"])">📜</a>""" : ""
year = """<span class="year">$(project["year"])</span>""" year = """<span class="year">$(project["year"])</span>"""
image = haskey(project, "image") ? """<img src="$(project["image"])">""" : "" image = haskey(project, "image") ? """<img src="$(project["image"])">""" : ""
video = haskey(project, "video") ? """<video controls autoplay loop><source src="$(project["video"])"></video>""" : "" video = haskey(project, "video") ? """<video controls autoplay loop><source src="$(project["video"])"></video>""" : ""