Skip to content

Commit

Permalink
add an SVG favicon (#106)
Browse files Browse the repository at this point in the history
  • Loading branch information
fabi1cazenave authored Jan 29, 2023
1 parent 180755b commit 27f8c1f
Show file tree
Hide file tree
Showing 5 changed files with 58 additions and 16 deletions.
4 changes: 2 additions & 2 deletions 42.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
<link type="text/css" rel="stylesheet" href="css/layout.css" />
<link type="text/css" rel="stylesheet" href="css/lafayette42.css" />
<link type="text/css" rel="stylesheet" href="css/demo.css" />
<link type="image/svg+xml" rel="icon" href="favicon.svg" sizes="any" />
<script type="module" src="https://unpkg.com/x-keyboard"></script>
<script type="text/javascript" src="js/demo.js"></script>
</head>
Expand Down Expand Up @@ -211,8 +212,7 @@ <h2 id="changelog"> Notes de version <a href="#changelog">#</a> </h2>

<h2 id="license"> Licence <a href="#license">#</a> </h2>
<p> <a href="http://wtfpl.net/">WTFPL</a>
– Do What the Fuck You Want to Public License.
</p>
– Do What the Fuck You Want to Public License. </p>

<h2 id="related"> Voir aussi… <a href="#related">#</a> </h2>
<p> <a href="http://ergol.org/42">ErgoL42</a>, une alternative ergonomique du
Expand Down
2 changes: 2 additions & 0 deletions css/layout.css
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,14 @@ dd, dt {

html {
background-color: #ccc;
height: 100%;
}

body {
width: 740px;
margin: auto;
padding: 20px;
min-height: calc(100% - 40px);
font-family: sans-serif;
border-left: 1px solid #aaa;
border-right: 1px solid #aaa;
Expand Down
32 changes: 32 additions & 0 deletions favicon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
20 changes: 11 additions & 9 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
<link type="text/css" rel="stylesheet" href="css/keyboard.css" />
<link type="text/css" rel="stylesheet" href="css/transitions.css" />
<link type="text/css" rel="stylesheet" href="css/demo.css" />
<link type="image/svg+xml" rel="icon" href="favicon.svg" sizes="any" />

<script type="module" src="https://unpkg.com/x-keyboard"></script>
<script type="text/javascript" src="js/timesheets-min.js"></script>
Expand Down Expand Up @@ -523,12 +524,15 @@ <h2 id="download"> Téléchargement <a href="#download">#</a> </h2>
</pre>
</dd>
<dt>
<strong> Versions Précédentes : </strong>
<a href="./releases">Dépots des versions précédentes</a>
<strong> Versions précédentes : </strong>
<a href="./releases">archives</a>
</dt>
<dd>
Les version précédentes peuvent être installées sans garantie de leur fonctionnement.
</dd>
<dd> Les version précédentes peuvent être installées sans garantie de leur
fonctionnement. </dd>
<dd> Si vous cherchez une version précédente pour contourner un problème qui
apparaît sur la dernière version en date, merci d’<a
href="https://github.com/fabi1cazenave/qwerty-lafayette/issues">ouvrir un
ticket github</a>. </dd>
</dl>

<h2 id="changelog"> Notes de version <a href="#changelog">#</a> </h2>
Expand Down Expand Up @@ -602,10 +606,8 @@ <h2 id="changelog"> Notes de version <a href="#changelog">#</a> </h2>
</ul>

<h2 id="license"> Licence <a href="#license">#</a> </h2>
<p>
<a href="http://wtfpl.net/">WTFPL</a>
– Do What the Fuck You Want to Public License.
</p>
<p> <a href="http://wtfpl.net/">WTFPL</a>
– Do What the Fuck You Want to Public License. </p>

<h2 id="lafayette42"> Variante compacte <a href="#lafayette42">#</a> </h2>
<ul> <li> <a href="./42">Lafayette42</a> </li> </ul>
Expand Down
16 changes: 11 additions & 5 deletions releases/index.html
Original file line number Diff line number Diff line change
@@ -1,21 +1,27 @@
<html>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta charset="utf-8" />
<meta name="description" content="a QWERTY keyboard layout for French-speaking users" />
<title> QWERTY-Lafayette </title>
<link type="text/css" rel="stylesheet" href="../css/layout.css" />
<link type="text/css" rel="stylesheet" href="../css/lafayette.css" />
<link type="image/svg+xml" rel="icon" href="../favicon.svg" sizes="any" />
</head>
<body>
<script>
(async () => {
const response = await fetch('https://api.github.com/repos/fabi1cazenave/qwerty-lafayette/contents/releases');
const data = await response.json();
let htmlString = '<ul>';

for (let file of data) {
if (file.path != 'releases/index.html'){
htmlString += `<li><a href="${file.path.replace('releases/','')}">${file.name}</a></li>`;
}
}

htmlString += '</ul>';
document.getElementsByTagName('body')[0].innerHTML = htmlString;
document.querySelector('body').innerHTML = htmlString;
})()
</script>
<body>
</html>

0 comments on commit 27f8c1f

Please sign in to comment.