|
|
@ -2,10 +2,11 @@
|
|
|
|
import { getCollection } from 'astro:content'
|
|
|
|
import { getCollection } from 'astro:content'
|
|
|
|
import PageLayout from '../layouts/PageLayout.astro'
|
|
|
|
import PageLayout from '../layouts/PageLayout.astro'
|
|
|
|
import { Content as WhatPhcContent, frontmatter as whatsPhcFrontmatter } from '../content/meta/whats-phc.md'
|
|
|
|
import { Content as WhatPhcContent, frontmatter as whatsPhcFrontmatter } from '../content/meta/whats-phc.md'
|
|
|
|
|
|
|
|
import { Image } from 'astro:assets'
|
|
|
|
|
|
|
|
|
|
|
|
const news = await getCollection('news')
|
|
|
|
const news = await getCollection('news')
|
|
|
|
|
|
|
|
|
|
|
|
const galleryCollage = (await Astro.glob('@/assets/gallery/*.jpg')).map(({ default: { src } }) => src)
|
|
|
|
const galleryCollage = await Astro.glob('@/assets/gallery/*.jpg')
|
|
|
|
---
|
|
|
|
---
|
|
|
|
|
|
|
|
|
|
|
|
<PageLayout pageTags="homepage">
|
|
|
|
<PageLayout pageTags="homepage">
|
|
|
@ -117,19 +118,19 @@ const galleryCollage = (await Astro.glob('@/assets/gallery/*.jpg')).map(({ defau
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</a>
|
|
|
|
</a>
|
|
|
|
<!-- <a href="#" style="--masonry-height: 2;">
|
|
|
|
<!-- <a href="#" style="--masonry-height: 2;">
|
|
|
|
<div class="project">
|
|
|
|
<div class="project">
|
|
|
|
<div class="image">
|
|
|
|
<div class="image">
|
|
|
|
<div class="box"></div>
|
|
|
|
<div class="box"></div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="title">PHC-Bot</div>
|
|
|
|
<div class="title">PHC-Bot</div>
|
|
|
|
<div class="description">
|
|
|
|
<div class="description">
|
|
|
|
Un bot con cui chattare per chiedere informazioni o supporto tecnico.
|
|
|
|
Un bot con cui chattare per chiedere informazioni o supporto tecnico.
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</a> -->
|
|
|
|
</a> -->
|
|
|
|
|
|
|
|
<a target="_blank" href="https://lab.phc.dm.unipi.it/orario/" style="--masonry-height: 1;">
|
|
|
|
<a target="_blank" href="https://lab.phc.dm.unipi.it/orario/" style="--masonry-height: 1;">
|
|
|
|
<div class="project" style="--card-bg: #75ca75;">
|
|
|
|
<div class="project" style="--card-bg: #75ca75;">
|
|
|
|
<div class="image auto">
|
|
|
|
<div class="image">
|
|
|
|
<img src="https://lab.phc.dm.unipi.it/orario/icon.png" alt="Logo Orario" />
|
|
|
|
<img src="https://lab.phc.dm.unipi.it/orario/icon.png" alt="Logo Orario" />
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="title">Orario</div>
|
|
|
|
<div class="title">Orario</div>
|
|
|
@ -234,11 +235,24 @@ const galleryCollage = (await Astro.glob('@/assets/gallery/*.jpg')).map(({ defau
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="gallery-collage">
|
|
|
|
<div class="gallery-collage">
|
|
|
|
{
|
|
|
|
{
|
|
|
|
galleryCollage.map((src, i) => (
|
|
|
|
galleryCollage.map((module, i) => {
|
|
|
|
<div class="card">
|
|
|
|
const src = module.default.src
|
|
|
|
<img src={src} alt={`gallery image ${i}`} />
|
|
|
|
const filename = src.split('/').at(-1).split('?').at(0).split('.').at(0)
|
|
|
|
</div>
|
|
|
|
|
|
|
|
))
|
|
|
|
const [rows, cols] = filename.includes('@')
|
|
|
|
|
|
|
|
? filename
|
|
|
|
|
|
|
|
.split('@')
|
|
|
|
|
|
|
|
.at(-1)
|
|
|
|
|
|
|
|
.split('x')
|
|
|
|
|
|
|
|
.map(s => parseInt(s))
|
|
|
|
|
|
|
|
: [1, 1]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return (
|
|
|
|
|
|
|
|
<div class="card" style={`--rows: ${rows}; --cols: ${cols};`}>
|
|
|
|
|
|
|
|
<Image src={module.default} alt={`gallery image ${i}`} />
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
)
|
|
|
|
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="card large" style="--card-base: #ddd;">
|
|
|
|
<div class="card large" style="--card-base: #ddd;">
|
|
|
|