miglioramenti stilistici
parent
8f1d6cfff1
commit
ce42b2bf15
File diff suppressed because it is too large
Load Diff
@ -1,22 +1,25 @@
|
||||
---
|
||||
const { title, tags, description, image, date, author } = Astro.props
|
||||
const { id, title, tags, description, image, date, author } = Astro.props
|
||||
---
|
||||
|
||||
<div class="news-item">
|
||||
<div class="title">
|
||||
<a href={`/notizie/${id}`} class="title">
|
||||
{title}
|
||||
</a>
|
||||
<div class="content">
|
||||
<div class="date">
|
||||
{
|
||||
new Date(date).toLocaleDateString('it-IT', {
|
||||
year: 'numeric',
|
||||
month: 'long',
|
||||
day: 'numeric',
|
||||
})
|
||||
}
|
||||
</div>
|
||||
<div class="description">{description}</div>
|
||||
<div class="tags">
|
||||
{tags.map(tag => <a href={`/notizie/tags/${tag}`}>#{tag}</a>)}
|
||||
</div>
|
||||
{image && <img src={image} alt={title} />}
|
||||
</div>
|
||||
<div class="description">{description}</div>
|
||||
<div class="tags">
|
||||
{tags.map(tag => <a href={`/notizie/tags/${tag}`}>#{tag}</a>)}
|
||||
</div>
|
||||
{image && <img src={image} alt={title} />}
|
||||
<div class="date">{
|
||||
new Date(date).toLocaleDateString('it-IT', {
|
||||
year: 'numeric',
|
||||
month: 'long',
|
||||
day: 'numeric'
|
||||
})
|
||||
}</div>
|
||||
<div class="author">{author}</div>
|
||||
</div>
|
||||
|
@ -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>
|
Loading…
Reference in New Issue