allow iframes in project yamls

This commit is contained in:
Laureηt 2023-07-01 14:34:12 +02:00
parent 5c788326b5
commit de284795ec
Signed by: Laurent
SSH key fingerprint: SHA256:kZEpW8cMJ54PDeCvOhzreNr4FSh6R13CMGH/POoO8DI
3 changed files with 22 additions and 4 deletions

View file

@ -149,9 +149,11 @@ instead, display a burger menu.
padding: 0; padding: 0;
margin: 0; margin: 0;
} }
header li a { header li a {
border-bottom: none; border-bottom: none;
} }
header li a:hover { header li a:hover {
border-bottom: none; border-bottom: none;
} }
@ -220,3 +222,19 @@ table tbody tr td {
padding: 0 !important; padding: 0 !important;
margin: 0 !important; margin: 0 !important;
} }
.iframe-wrap {
overflow: hidden;
height: 23rem;
width: 100%;
}
iframe {
zoom: 0.75;
transform: translateX(0);
-moz-transform: scale(0.75);
transform-origin: 0 0;
-moz-transform-origin: 0 0;
width: 132%;
height: 30rem;
}

View file

@ -17,7 +17,7 @@ Distributed Systems and Algorithms:
description: Studied and presented the [Raft Consensus Algorithm](https://raft.github.io/) and its implementations. description: Studied and presented the [Raft Consensus Algorithm](https://raft.github.io/) and its implementations.
repository: https://git.fainsin.bzh/ENSEEIHT/projet-systemes-algorithmes-repartis repository: https://git.fainsin.bzh/ENSEEIHT/projet-systemes-algorithmes-repartis
pdf: https://n7.laurent.fainsin.bzh/projet-systemes-algorithmes-repartis/ pdf: https://n7.laurent.fainsin.bzh/projet-systemes-algorithmes-repartis/
# iframe: https://raft.github.io/raftscope/index.html iframe: https://raft.github.io/raftscope/index.html
Parallel Computing: Parallel Computing:
year: December 2022 year: December 2022
@ -42,7 +42,7 @@ Augmented computer Vision:
year: December 2022 year: December 2022
description: Project in Python to control a virtual avatar from its camera. Used OpenPose and OpenCV. description: Project in Python to control a virtual avatar from its camera. Used OpenPose and OpenCV.
repository: https://git.fainsin.bzh/ENSEEIHT/projet-transversal repository: https://git.fainsin.bzh/ENSEEIHT/projet-transversal
video: /assets/projects/2023-01-29T21-44-00.mkv # video: /assets/projects/2023-01-29T21-44-00.mkv
Augmented Reality: Augmented Reality:
year: November 2022 year: November 2022

View file

@ -14,7 +14,7 @@ function hfun_print_projects(yaml_files)
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>""" : ""
iframe = haskey(project, "iframe") ? """<iframe src="$(project["iframe"])"></iframe>""" : "" iframe = haskey(project, "iframe") ? """<div class="iframe-wrap"><iframe src="$(project["iframe"])"></iframe></div>""" : ""
html_string = """ html_string = """
$(html_string) $(html_string)