diff --git a/public/backgrounds/team2.jpg b/public/backgrounds/team2.jpg new file mode 100644 index 0000000..e98f9fc Binary files /dev/null and b/public/backgrounds/team2.jpg differ diff --git a/src/components/footer/FooterRel.astro b/src/components/footer/FooterRel.astro index f52cd7c..d8fcefe 100644 --- a/src/components/footer/FooterRel.astro +++ b/src/components/footer/FooterRel.astro @@ -11,6 +11,7 @@ const footerRelBlock = [ { title: 'Voir les éditions antérieures', links: [ + { name: 'Sunny Tech 2024', url: 'https://2024.sunny-tech.io', newTab: true }, { name: 'Sunny Tech 2023', url: 'https://2023.sunny-tech.io', newTab: true }, { name: 'Sunny Tech 2022', url: 'https://2022.sunny-tech.io', newTab: true }, { name: 'Sunny Tech 2019', url: 'https://2019.sunny-tech.io', newTab: true }, diff --git a/src/components/Hero.astro b/src/components/home/Hero.astro similarity index 98% rename from src/components/Hero.astro rename to src/components/home/Hero.astro index 227e791..f795550 100644 --- a/src/components/Hero.astro +++ b/src/components/home/Hero.astro @@ -25,7 +25,7 @@ background-size: cover; text-align: center; - height: 100vh; + height: calc(100vh + 1px); max-height: calc(100vh + 1px); position: relative; margin-top: -65px; diff --git a/src/components/HomeAboutBlock.astro b/src/components/home/HomeAboutBlock.astro similarity index 98% rename from src/components/HomeAboutBlock.astro rename to src/components/home/HomeAboutBlock.astro index d8fe141..4f7543e 100644 --- a/src/components/HomeAboutBlock.astro +++ b/src/components/home/HomeAboutBlock.astro @@ -1,5 +1,5 @@ --- -import ButtonLink from './ui-elements/ButtonLink.astro' +import ButtonLink from '../ui-elements/ButtonLink.astro' const blocks = [ { diff --git a/src/components/HomeContentBlock.astro b/src/components/home/HomeContentBlock.astro similarity index 100% rename from src/components/HomeContentBlock.astro rename to src/components/home/HomeContentBlock.astro diff --git a/src/components/home/HomeGalleryBlock.astro b/src/components/home/HomeGalleryBlock.astro new file mode 100644 index 0000000..8257214 --- /dev/null +++ b/src/components/home/HomeGalleryBlock.astro @@ -0,0 +1,144 @@ +--- +import ButtonLink from '../ui-elements/ButtonLink.astro' + +const gallery = [ + 'https://firebasestorage.googleapis.com/v0/b/sunnytech-2024.appspot.com/o/miniature-gallerie-site%2FIMG_1125.jpg?alt=media&token=c3f9c4d6-10d3-42da-a739-123726d0b109', + 'https://firebasestorage.googleapis.com/v0/b/sunnytech-2024.appspot.com/o/miniature-gallerie-site%2F20240704_185656(1).jpg?alt=media&token=ef0a68d2-14ae-49d0-b79b-18971ddb04cf', + 'https://firebasestorage.googleapis.com/v0/b/sunnytech-2024.appspot.com/o/miniature-gallerie-site%2FIMG_1192.jpg?alt=media&token=9aab2010-91bb-4f21-9ff2-2d36d7007634', + 'https://firebasestorage.googleapis.com/v0/b/sunnytech-2024.appspot.com/o/miniature-gallerie-site%2FIMG_1300.jpg?alt=media&token=c828cba9-1708-45e3-a4c9-62335d2c1e05', + 'https://firebasestorage.googleapis.com/v0/b/sunnytech-2024.appspot.com/o/miniature-gallerie-site%2FIMG_1268.jpg?alt=media&token=7d6516b0-ea0c-4699-bcbe-673c7a1b5b02', + 'https://firebasestorage.googleapis.com/v0/b/sunnytech-2024.appspot.com/o/miniature-gallerie-site%2FIMG_1185.jpg?alt=media&token=ca7b7e77-9de3-4de0-991a-7eec38ffc1cd', + 'https://firebasestorage.googleapis.com/v0/b/sunnytech-2024.appspot.com/o/miniature-gallerie-site%2FIMG_1230.jpg?alt=media&token=1886b50e-012e-45de-8a7a-a078f6434641', + 'https://firebasestorage.googleapis.com/v0/b/sunnytech-2024.appspot.com/o/miniature-gallerie-site%2FIMG_1193.jpg?alt=media&token=a0ad5ae0-e318-42f0-bf32-837604852ffe', +] +--- + +
+ {gallery.map((photo) => gallery photo)} + + +
+ + diff --git a/src/components/SponsorsBlock.astro b/src/components/home/SponsorsBlock.astro similarity index 96% rename from src/components/SponsorsBlock.astro rename to src/components/home/SponsorsBlock.astro index 42e48e8..053ee1f 100644 --- a/src/components/SponsorsBlock.astro +++ b/src/components/home/SponsorsBlock.astro @@ -1,6 +1,6 @@ --- -import type { OpenPlannerType } from '../type' -import ButtonLink from './ui-elements/ButtonLink.astro' +import type { OpenPlannerType } from '../../type' +import ButtonLink from '../ui-elements/ButtonLink.astro' interface Props { sponsorCategories: OpenPlannerType['sponsors'] diff --git a/src/components/ui-elements/ButtonLink.astro b/src/components/ui-elements/ButtonLink.astro index eeb8fd9..84b6e94 100644 --- a/src/components/ui-elements/ButtonLink.astro +++ b/src/components/ui-elements/ButtonLink.astro @@ -3,20 +3,29 @@ interface Props { href: string target?: string rel?: string + variant?: 'primary' | 'transparent' } -const { href, target = '', rel = '' } = Astro.props +const { href, target = '', rel = '', variant = 'primary' } = Astro.props --- - + - - + diff --git a/src/pages/index.astro b/src/pages/index.astro index f0867ac..81db926 100644 --- a/src/pages/index.astro +++ b/src/pages/index.astro @@ -1,10 +1,11 @@ --- import type { OpenPlannerType } from '../type' import Layout from '../layouts/Layout.astro' -import SponsorsBlock from '../components/SponsorsBlock.astro' -import Hero from '../components/Hero.astro' -import HomeContentBlock from '../components/HomeContentBlock.astro' -import HomeAboutBlock from '../components/HomeAboutBlock.astro' +import SponsorsBlock from '../components/home/SponsorsBlock.astro' +import Hero from '../components/home/Hero.astro' +import HomeContentBlock from '../components/home/HomeContentBlock.astro' +import HomeAboutBlock from '../components/home/HomeAboutBlock.astro' +import HomeGalleryBlock from '../components/home/HomeGalleryBlock.astro' const OPENPLANNER_URL = import.meta.env.OPENPLANNER_URL const response = await fetch(OPENPLANNER_URL) @@ -15,6 +16,7 @@ const openPlannerData: OpenPlannerType = await response.json() +