feat: aggiunto prototipo di stile

pull/1/head
Antonio De Lucreziis 1 month ago
parent adda01cf86
commit a12f97e8d2

@ -1,7 +1,9 @@
--- ---
import Header from "../components/Header.astro"; import '../style.css'
const { title, courses, selectedCourseLabel } = Astro.props; import Header from '../components/Header.astro'
const { title, courses, selectedCourseLabel } = Astro.props
--- ---
<!doctype html> <!doctype html>
@ -26,21 +28,21 @@ const { title, courses, selectedCourseLabel } = Astro.props;
integrity="sha384-43gviWU0YVjaDtb/GhzOouOXtZMP/7XUzwPTstBeZFe/+rCMvRwr4yROQP43s0Xk" integrity="sha384-43gviWU0YVjaDtb/GhzOouOXtZMP/7XUzwPTstBeZFe/+rCMvRwr4yROQP43s0Xk"
crossorigin="anonymous"></script> crossorigin="anonymous"></script>
<script> <script>
document.addEventListener("DOMContentLoaded", function () { document.addEventListener('DOMContentLoaded', function () {
// @ts-ignore // @ts-ignore
renderMathInElement(document.body, { renderMathInElement(document.body, {
// customised options // customised options
// • auto-render specific keys, e.g.: // • auto-render specific keys, e.g.:
delimiters: [ delimiters: [
{ left: "$$", right: "$$", display: true }, { left: '$$', right: '$$', display: true },
{ left: "$", right: "$", display: false }, { left: '$', right: '$', display: false },
{ left: "\\(", right: "\\)", display: false }, { left: '\\(', right: '\\)', display: false },
{ left: "\\[", right: "\\]", display: true }, { left: '\\[', right: '\\]', display: true },
], ],
// • rendering keys, e.g.: // • rendering keys, e.g.:
throwOnError: false, throwOnError: false,
}); })
}); })
</script> </script>
<title>{title}</title> <title>{title}</title>
</head> </head>

@ -1,23 +1,22 @@
--- ---
import Base from "./Base.astro"; import Base from './Base.astro'
const years = await Astro.glob("../pages/archivio/*/index.md"); const years = await Astro.glob('../pages/archivio/*/index.md')
const currentYear = years const currentYear = years
.map((module) => module.file.split("/").at(-2)) .map(module => module.file.split('/').at(-2))
.toSorted() .toSorted()
.at(-1); .at(-1)
const { const {
file, file,
frontmatter: { title }, frontmatter: { title },
} = Astro.props; } = Astro.props
const selectedCourseLabel = file.split("/").at(-1); const selectedCourseLabel = file.split('/').at(-1)
const allCourses = await Astro.glob(`../pages/archivio/*/*`); const allCourses = await Astro.glob(`../pages/archivio/*/*`)
const courses = allCourses.filter((module) => const courses = allCourses.filter(module => module.file.includes(file.split('/').at(-2)))
module.file.includes(file.split("/").at(-2)),
);
--- ---
<Base title={title} courses={courses} selectedCourseLabel={selectedCourseLabel}> <Base title={title} courses={courses} selectedCourseLabel={selectedCourseLabel}>
<h1>{title}</h1>
<slot /> <slot />
</Base> </Base>

@ -3,9 +3,6 @@ layout: ../../../layouts/MarkdownPage.astro
title: Algebra I title: Algebra I
--- ---
## Info
**Tutor:** Cristofer Villani. **Tutor:** Cristofer Villani.
Il tutorato si è concluso. Sotto trovate gli esercizi assegnati nei vari incontri e due simulazioni d'esame. Il tutorato si è concluso. Sotto trovate gli esercizi assegnati nei vari incontri e due simulazioni d'esame.

@ -3,6 +3,4 @@ layout: ../../../layouts/MarkdownPage.astro
title: Tutorato Alla Pari title: Tutorato Alla Pari
--- ---
## Info
**Tutor:** Simona Felice, Danilo Calcinaro, Andrea Rocca, Giorgia Benassi. **Tutor:** Simona Felice, Danilo Calcinaro, Andrea Rocca, Giorgia Benassi.

@ -3,8 +3,6 @@ layout: ../../../layouts/MarkdownPage.astro
title: Analisi 1 title: Analisi 1
--- ---
## Info
**Tutor:** Stefano Mannella. **Tutor:** Stefano Mannella.
Durante le ore di tutorato proveremo innanzitutto a rispondere alle domande ed ai dubbi che possono essere sorti in classe. Durante le ore di tutorato proveremo innanzitutto a rispondere alle domande ed ai dubbi che possono essere sorti in classe.

@ -3,8 +3,6 @@ layout: ../../../layouts/MarkdownPage.astro
title: Aritmetica title: Aritmetica
--- ---
## Info
**Tutor:** Cristofer Villani. **Tutor:** Cristofer Villani.
Il tutorato di Aritmetica si è concluso. Sotto trovate i pdf di alcuni dei tutorati svolti. Il tutorato di Aritmetica si è concluso. Sotto trovate i pdf di alcuni dei tutorati svolti.

@ -3,7 +3,6 @@ layout: ../../../layouts/MarkdownPage.astro
title: Geometria I title: Geometria I
--- ---
## Info
**Tutor:** Marco Tavano. **Tutor:** Marco Tavano.
## Soluzioni dei Test ## Soluzioni dei Test

@ -1,9 +1,8 @@
--- ---
layout: ../../../layouts/MarkdownPage.astro layout: ../../../layouts/MarkdownPage.astro
title: Tutorato 2023/2024 title: Tutorato 2023-2024
--- ---
## Che cos'è il tutorato? ## Che cos'è il tutorato?
Il tutorato è pensato per darvi una mano con lo studio, e rispondere a qualsiasi dubbio matematico abbiate. Il tutorato è pensato per darvi una mano con lo studio, e rispondere a qualsiasi dubbio matematico abbiate.

@ -13,8 +13,6 @@ Per tutte le materie, sono a disposizione quattro tutor alla pari, che faranno t
Venire a tutorato è utilissimo per darvi un'idea più chiara del vostro livello di conoscenza degli argomenti, e può servire a indirizzarvi nello studio. Ovviamente, non è necessario (e può essere controproducente!) che veniate a _ogni_ tutorato, ma se sentite il bisogno di consolidare le vostre conoscenze, oppure siete in difficoltà con qualche argomento, non fatevi problemi a venire! Venire a tutorato è utilissimo per darvi un'idea più chiara del vostro livello di conoscenza degli argomenti, e può servire a indirizzarvi nello studio. Ovviamente, non è necessario (e può essere controproducente!) che veniate a _ogni_ tutorato, ma se sentite il bisogno di consolidare le vostre conoscenze, oppure siete in difficoltà con qualche argomento, non fatevi problemi a venire!
## Orario ## Orario
| | Lun | Mar | Mer | Gio | Ven | | | Lun | Mar | Mer | Gio | Ven |
@ -22,5 +20,5 @@ Venire a tutorato è utilissimo per darvi un'idea più chiara del vostro livello
|9-11| | | | | | |9-11| | | | | |
|11-13| | | | | | |11-13| | | | | |
|14-16| | | | | | |14-16| | | | | |
|16-18| Alla Pari<br> Aula 2 | | | Alla pari<br> Aula 2 | | |16-18| Alla Pari<br>Aula 2 | | | Alla pari<br>Aula 2 | |
|18-20| | | | | | |18-20| | | | | |

@ -0,0 +1,188 @@
@import url('https://cdn.jsdelivr.net/gh/vsalvino/computer-modern@main/fonts/sans.css');
@import url('https://cdn.jsdelivr.net/gh/vsalvino/computer-modern@main/fonts/serif.css');
@import url('https://cdn.jsdelivr.net/gh/vsalvino/computer-modern@main/fonts/bright.css');
*,
*::before,
*::after {
font-family: inherit;
color: inherit;
margin: 0;
padding: 0;
box-sizing: border-box;
}
html,
body {
min-height: 100%;
}
img {
display: block;
}
button,
.button {
cursor: pointer;
}
a {
text-decoration: none;
color: #a00;
padding: 0.125rem 2px;
border-radius: 4px;
&:hover {
background-color: #a00;
color: #fff;
}
}
h1,
h2,
h3,
h4 {
font-weight: 400;
font-family: 'Computer Modern Bright', sans-serif;
}
table {
margin: 0 auto;
width: 30rem;
max-width: 100%;
border-collapse: collapse;
th,
td {
border: 1px solid #333;
padding: 0.25rem;
min-width: 6rem;
}
th {
font-weight: bold;
}
}
/* Components */
/* Layout */
body {
font-family: 'Computer Modern Serif', sans-serif;
text-rendering: optimizeLegibility;
font-size: 18px;
line-height: 1;
color: #333;
background-color: #fffafa;
display: grid;
grid-template-columns: 1fr;
grid-template-rows: auto 1fr;
gap: 8rem;
padding-bottom: 8rem;
header {
height: 8rem;
width: 100%;
background-color: #a00;
color: #fff;
display: grid;
grid-template-columns: auto auto;
place-content: center;
gap: 1rem;
align-content: end;
align-items: end;
padding-bottom: 1.25rem;
box-shadow: 0 0 2rem rgba(0, 0, 0, 0.125);
> h1 {
line-height: 0.775;
font-family: 'Computer Modern Serif', sans-serif;
}
nav {
display: grid;
grid-template-columns: auto auto;
gap: 4rem;
ul {
display: grid;
grid-auto-flow: column;
list-style: none;
gap: 1rem;
}
}
a {
color: #fff;
padding: 0.5rem;
&:hover {
background-color: #fff;
color: #a00;
}
font-weight: bold;
font-size: 22px;
border-radius: 2px;
}
h1 > a {
font-size: 42px;
}
}
main {
width: 50rem;
max-width: 100%;
background-color: #fff;
border: 4px solid #a00;
border-radius: 2px;
padding: 2rem;
place-self: center;
box-shadow: 0 0 2rem rgba(0, 0, 0, 0.1);
text-align: justify;
hyphens: auto;
line-height: 1.65;
> * + * {
margin-top: 1rem;
}
ul {
list-style: disc;
padding-left: 2rem;
li {
margin-bottom: 1rem;
}
li + li {
margin-top: 1rem;
}
}
}
}
Loading…
Cancel
Save