laradb

script pour établir une bdd à partir d'un tsv avec différent format - retour accueil

git clone git://bebou.netlib.re/laradb
Log | Files | Refs |

commit b8dd47d69aea6fb5057ceb7d466867401638f6bf
parent c98c956e8f83aa2cbc21304d772af2f646fd2c59
Auteurice: martlem <contact@martinlemaire.fr>
Date:   Tue,  5 Nov 2024 20:01:51 +0100

index.sh + style nav

Diffstat:
Adist/carte.html | 24++++++++++++++++++++++++
Adist/index.html | 24++++++++++++++++++++++++
Mdist/style.css | 7++++---
Mdist/tableau.html | 1+
Mmain.sh | 1+
Msrc/carte.sh | 6++----
Asrc/index.sh | 12++++++++++++
Msrc/static/style.css | 7++++---
Msrc/templates/nav.html | 1+
9 files changed, 73 insertions(+), 10 deletions(-)

diff --git a/dist/carte.html b/dist/carte.html @@ -0,0 +1,24 @@ +<!DOCTYPE html> +<html> + <head> + <title>The Amateur feminist Library</title> + <meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no"> + <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> + <meta name="HandheldFriendly" content="true"> + <meta charset="utf-8"> + <link rel="stylesheet" href="style.css"> + <link rel="stylesheet" href="cssVarFilledCookies.css"> + <script src="cssVarFilledCookies.js" defer></script> + <script src="script.js" defer></script> + </head> + <body> +<nav> +<a href="index.html">←</a> +<a href="tableau.html">tableau</a> +<a href="carte.html">carte</a> +<a href="frise.html">frise</a> +<!--<a href="">à propos</a>--> +</nav> +<p>Javascript is required in order to view the map visualisation</p> + </body> +</html> diff --git a/dist/index.html b/dist/index.html @@ -0,0 +1,24 @@ +<!DOCTYPE html> +<html> + <head> + <title>The Amateur feminist Library</title> + <meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no"> + <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> + <meta name="HandheldFriendly" content="true"> + <meta charset="utf-8"> + <link rel="stylesheet" href="style.css"> + <link rel="stylesheet" href="cssVarFilledCookies.css"> + <script src="cssVarFilledCookies.js" defer></script> + <script src="script.js" defer></script> + </head> + <body> +<nav> +<a href="index.html">←</a> +<a href="tableau.html">tableau</a> +<a href="carte.html">carte</a> +<a href="frise.html">frise</a> +<!--<a href="">à propos</a>--> +</nav> +<p>Le contenu du framacalc dans la syntax de ton choix s'affiche ici</p> + </body> +</html> diff --git a/dist/style.css b/dist/style.css @@ -12,9 +12,10 @@ --incertitude:.5; } -thead td:hover{background:var(--accent)} +tr:hover{background:var(--accent)} thead td{text-align:center} tr { + cursor:pointer; display:flex; border-bottom:var(--largeur-bordure-cellule) solid var(--noir); justify-content:flex-start; @@ -51,7 +52,7 @@ line-height:var(--interligne) } body {margin: 0} tr{width:100%;padding:0} -thead {cursor:pointer;position:sticky;top:0} +thead {position:sticky;top:0} /* .titre {width:calc(var(--largeur) * 1)} @@ -66,7 +67,6 @@ thead {cursor:pointer;position:sticky;top:0} .sources {width:calc(var(--largeur) * 2)} .travaux-lies {width:calc(var(--largeur) * 2)} */ - .rectangle { width:400px; } @@ -82,3 +82,4 @@ padding:var(--corps); sup{line-height:var(--interligne)} sup::before{content:' '} .unsure, sup {opacity:var(--incertitude)} +nav {display:flex; width:100%; justify-content:space-around;background:var(--fond-C);padding:var(--corps) 0;margin-bottom:var(--corps)} diff --git a/dist/tableau.html b/dist/tableau.html @@ -13,6 +13,7 @@ </head> <body> <nav> +<a href="index.html">←</a> <a href="tableau.html">tableau</a> <a href="carte.html">carte</a> <a href="frise.html">frise</a> diff --git a/main.sh b/main.sh @@ -7,6 +7,7 @@ csv2tsv src/db.csv > src/db.tsv #./src/utils/date_epoch.sh +./src/index.sh ./src/frise.sh ./src/tableau.sh ./src/carte.sh diff --git a/src/carte.sh b/src/carte.sh @@ -2,13 +2,11 @@ DIST="dist/" -DB="src/db.tsv" -LIGNE=1 -cat << % > $DIST/frise.html +cat << % > $DIST/carte.html $(cat src/templates/head.html) $(cat src/templates/nav.html) -<o>Javascript is required in order to view the map visualisation</p> +<p>Javascript is required in order to view the map visualisation</p> $(cat src/templates/foot.html) % diff --git a/src/index.sh b/src/index.sh @@ -0,0 +1,12 @@ +#!/bin/sh + + +DIST="dist/" + +cat << % > $DIST/index.html +$(cat src/templates/head.html) +$(cat src/templates/nav.html) +<p>Le contenu du framacalc dans la syntax de ton choix s'affiche ici</p> +$(cat src/templates/foot.html) +% + diff --git a/src/static/style.css b/src/static/style.css @@ -12,9 +12,10 @@ --incertitude:.5; } -thead td:hover{background:var(--accent)} +tr:hover{background:var(--accent)} thead td{text-align:center} tr { + cursor:pointer; display:flex; border-bottom:var(--largeur-bordure-cellule) solid var(--noir); justify-content:flex-start; @@ -51,7 +52,7 @@ line-height:var(--interligne) } body {margin: 0} tr{width:100%;padding:0} -thead {cursor:pointer;position:sticky;top:0} +thead {position:sticky;top:0} /* .titre {width:calc(var(--largeur) * 1)} @@ -66,7 +67,6 @@ thead {cursor:pointer;position:sticky;top:0} .sources {width:calc(var(--largeur) * 2)} .travaux-lies {width:calc(var(--largeur) * 2)} */ - .rectangle { width:400px; } @@ -82,3 +82,4 @@ padding:var(--corps); sup{line-height:var(--interligne)} sup::before{content:' '} .unsure, sup {opacity:var(--incertitude)} +nav {display:flex; width:100%; justify-content:space-around;background:var(--fond-C);padding:var(--corps) 0;margin-bottom:var(--corps)} diff --git a/src/templates/nav.html b/src/templates/nav.html @@ -1,4 +1,5 @@ <nav> +<a href="index.html">←</a> <a href="tableau.html">tableau</a> <a href="carte.html">carte</a> <a href="frise.html">frise</a>