miglioramenti stilistici
This commit is contained in:
+38
-19
@@ -1,5 +1,14 @@
|
||||
---
|
||||
import { getCollection } from 'astro:content'
|
||||
|
||||
import PageLayout from '../layouts/PageLayout.astro'
|
||||
import NewsCard from '@/components/NewsCard.astro'
|
||||
|
||||
const posts = await getCollection('posts')
|
||||
|
||||
// posts.push(...posts)
|
||||
// posts.push(...posts)
|
||||
// posts.push(...posts)
|
||||
---
|
||||
|
||||
<PageLayout pageName="homepage">
|
||||
@@ -62,8 +71,22 @@ import PageLayout from '../layouts/PageLayout.astro'
|
||||
<div class="title">Ultime Notizie</div>
|
||||
|
||||
<div class="news-list">
|
||||
{
|
||||
posts.map(post => (
|
||||
<NewsCard
|
||||
id={post.slug}
|
||||
title={post.data.title}
|
||||
description={post.data.description}
|
||||
tags={post.data.tags}
|
||||
image={post.data.image}
|
||||
date={post.data.publishDate}
|
||||
author={post.data.author}
|
||||
/>
|
||||
))
|
||||
}
|
||||
<!--
|
||||
<div class="news-item">
|
||||
<div class="title">Nuovo Sito!</div>
|
||||
<a href="#" class="title">Nuovo Sito!</a>
|
||||
<div class="abstract">
|
||||
<p>Questo è il nuovo sito del PHC, realizzato con Astro e</p>
|
||||
<p>
|
||||
@@ -122,7 +145,7 @@ import PageLayout from '../layouts/PageLayout.astro'
|
||||
cumque. Nemo obcaecati eaque recusandae fugit sed!
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div> -->
|
||||
</div>
|
||||
|
||||
<a class="primary" href="#" role="button">Vai all'Archivio</a>
|
||||
@@ -179,19 +202,19 @@ import PageLayout from '../layouts/PageLayout.astro'
|
||||
</div>
|
||||
</div>
|
||||
</a> -->
|
||||
<a target="_blank" href="https://lab.phc.dm.unipi.it/orario/" style="--masonry-height: 2;">
|
||||
<a target="_blank" href="https://lab.phc.dm.unipi.it/orario/" style="--masonry-height: 1;">
|
||||
<div class="project" style="--card-bg: #75ca75;">
|
||||
<div class="image">
|
||||
<div class="box"></div>
|
||||
</div>
|
||||
<div class="title">Orario</div>
|
||||
<div class="description">
|
||||
Questo sito permette di visualizzare il proprio orario delle lezioni,
|
||||
con informazioni sui docenti e le aule.
|
||||
Questo sito permette di visualizzare il proprio orario delle lezioni, con informazioni
|
||||
sui docenti e le aule.
|
||||
</div>
|
||||
</div>
|
||||
</a>
|
||||
<a target="_blank" href="https://lab.phc.dm.unipi.it/problemi/" style="--masonry-height: 1;">
|
||||
<a target="_blank" href="https://lab.phc.dm.unipi.it/problemi/" style="--masonry-height: 2;">
|
||||
<div class="project" style="--card-bg: #aa88c0;">
|
||||
<div class="image">
|
||||
<img
|
||||
@@ -201,26 +224,21 @@ import PageLayout from '../layouts/PageLayout.astro'
|
||||
</div>
|
||||
<div class="title">Problemi</div>
|
||||
<div class="description">
|
||||
<p>
|
||||
Bacheca con problemi di Matematica da risolvere
|
||||
inviando soluzioni in LaTeX.
|
||||
</p>
|
||||
<p>Bacheca con problemi di Matematica da risolvere inviando soluzioni in LaTeX.</p>
|
||||
|
||||
<p>
|
||||
La sera i problemi compaiono sullo schermo in atrio.
|
||||
</p>
|
||||
<p>La sera i problemi compaiono sullo schermo in atrio.</p>
|
||||
</div>
|
||||
</div>
|
||||
</a>
|
||||
<a href="#" style="--masonry-height: 3;">
|
||||
<a href="http://steffe.cs.dm.unipi.it/" style="--masonry-height: 2;">
|
||||
<div class="project">
|
||||
<div class="image">
|
||||
<div class="box"></div>
|
||||
</div>
|
||||
<div class="title">Cluster "Steffè"</div>
|
||||
<div class="description">
|
||||
Lorem ipsum dolor, sit amet consectetur adipisicing elit. Voluptatibus quam iure
|
||||
dolor. Excepturi facere, ipsa accusantium labore explicabo quaerat incidunt.
|
||||
Cluster progettato ed assemblato durante il progetto speciale per la didattica
|
||||
"Calcolo Parallelo dall'Infrastruttura alla Matematica".
|
||||
</div>
|
||||
</div>
|
||||
</a>
|
||||
@@ -261,7 +279,8 @@ import PageLayout from '../layouts/PageLayout.astro'
|
||||
<p>
|
||||
Se sei uno studente del Dipartimento di Matematica e vuoi diventare un macchinista del PHC,
|
||||
vieni a trovarci in Dipartimento o scrivici a <a href="mailto:macchinisti@lists.dm.unipi.it">
|
||||
|
||||
</a>
|
||||
</p>
|
||||
</div>
|
||||
</section>
|
||||
</PageLayout>
|
||||
</section></PageLayout
|
||||
>
|
||||
|
||||
@@ -3,6 +3,14 @@ import { getCollection } from 'astro:content'
|
||||
|
||||
import ArticleLayout from '../../layouts/ArticleLayout.astro'
|
||||
|
||||
export async function getStaticPaths() {
|
||||
const guides = await getCollection('posts')
|
||||
return guides.map(entry => ({
|
||||
params: { id: entry.slug },
|
||||
props: { entry },
|
||||
}))
|
||||
}
|
||||
|
||||
const { entry } = Astro.props
|
||||
const { Content } = await entry.render()
|
||||
---
|
||||
@@ -14,6 +22,8 @@ const { Content } = await entry.render()
|
||||
image={entry.data.image}
|
||||
date={entry.data.publishDate}
|
||||
author={entry.data.author}
|
||||
|
||||
pageName={['notizia']}
|
||||
>
|
||||
<Content />
|
||||
</ArticleLayout>
|
||||
@@ -12,6 +12,7 @@ const posts = await getCollection('posts')
|
||||
{
|
||||
posts.map(post => (
|
||||
<NewsCard
|
||||
id={post.slug}
|
||||
title={post.data.title}
|
||||
description={post.data.description}
|
||||
tags={post.data.tags}
|
||||
|
||||
@@ -0,0 +1,16 @@
|
||||
---
|
||||
import BaseLayout from '../layouts/BaseLayout.astro'
|
||||
|
||||
import Header from '../components/Header.astro'
|
||||
import Footer from '../components/Footer.astro'
|
||||
---
|
||||
|
||||
<BaseLayout {...Astro.props}>
|
||||
<Header />
|
||||
<main class="text-content center">
|
||||
<p>
|
||||
Bla bla bla la storia del PHC con tutti i macchinisti che ci sono mai stati su una timeline carina
|
||||
</p>
|
||||
</main>
|
||||
<Footer />
|
||||
</BaseLayout>
|
||||
Reference in New Issue
Block a user