diff --git a/src/components/photo/AlbumHeader.astro b/src/components/photo/AlbumHeader.astro index 6b6e051..9b86945 100644 --- a/src/components/photo/AlbumHeader.astro +++ b/src/components/photo/AlbumHeader.astro @@ -1,6 +1,6 @@ --- import { Picture } from 'astro:assets'; -import ScrollIndicator from './ScrollIndicator.astro'; +import HeroViewport from './HeroViewport.astro'; interface Props { title: string; @@ -15,25 +15,26 @@ const { title, description, date, tags, coverImage, scrollTarget = '.info-sectio --- {coverImage && ( -
- -
-
-

{title}

- {description &&

{description}

} - {date && ( - - )} + +
+ +
+
+

{title}

+ {description &&

{description}

} + {date && ( + + )} +
-
-
+ )} {tags && tags.length > 0 && ( @@ -47,10 +48,13 @@ const { title, description, date, tags, coverImage, scrollTarget = '.info-sectio )} diff --git a/src/components/photo/HeroViewport.astro b/src/components/photo/HeroViewport.astro new file mode 100644 index 0000000..837d025 --- /dev/null +++ b/src/components/photo/HeroViewport.astro @@ -0,0 +1,33 @@ +--- +import ScrollIndicator from './ScrollIndicator.astro'; + +interface Props { + targetSelector?: string; + transparent?: boolean; +} + +const { targetSelector = '#content', transparent = false } = Astro.props; +--- + +
+ + +
+ + diff --git a/src/pages/photo.astro b/src/pages/photo.astro index 049e393..5eee272 100644 --- a/src/pages/photo.astro +++ b/src/pages/photo.astro @@ -1,10 +1,14 @@ --- import PhotoLayout from '../layouts/PhotoLayout.astro'; import PhotoGallery from '../components/photo/PhotoGallery.astro'; +import HeroViewport from '../components/photo/HeroViewport.astro'; +import ExploreSection from '../components/photo/ExploreSection.astro'; const title = "Galerie Photo - Jalil Arfaoui"; --- - + - \ No newline at end of file + + +