Skip to content

Commit

Permalink
Add hero and fix share (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
HugoGresse authored Oct 27, 2024
1 parent 0af3125 commit 7608c3c
Show file tree
Hide file tree
Showing 9 changed files with 81 additions and 3 deletions.
Binary file added public/backgrounds/croissant2.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/backgrounds/croissant3.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/backgrounds/home.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/social-share4.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
77 changes: 77 additions & 0 deletions src/components/Hero.astro
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
---
---

<div class="container">
<div class="content">
<img src="/logos-sunnytech/logo.svg" alt="SunnyTech" loading="lazy" />

<h1>26 et 27 juin 2025 à Montpellier</h1>
<h2>#SeaTechAndSun ☀️️️</h2>

<a href="https://2024.sunny-tech.io" target="_blank">édition 2024</a>
</div>
<div class="overlay"></div>
</div>

<style>
.container {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
padding-top: 100px;
background: url('/backgrounds/home.jpg') no-repeat center center;
background-size: cover;

height: calc(100vh - 65px);
max-height: calc(100vh + 1px);
}

.overlay {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: rgba(0, 0, 0, 0.5);
z-index: 0;
}

.content {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 20px;
z-index: 1;
}

.content img {
width: 200px;
height: 200px;
}

.content h1 {
font-size: 40px;
font-weight: 700;
color: #fff;
}

.content h2 {
font-size: 20px;
font-weight: 400;
color: #fff;
}

a {
color: #fff;
text-decoration: none;
border-radius: 4px;
background-color: var(--default-primary-color);
transition: background-color var(--animation);
padding: 8px 16px;
font-weight: 600;
text-transform: uppercase;
}
</style>
2 changes: 1 addition & 1 deletion src/components/Menu.astro
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ const navigation = [

<style>
.header-toolbar {
z-index: 1;
z-index: 2;
border-bottom: 1px solid var(--divider-color);
background-color: var(--primary-background-color);
transition:
Expand Down
2 changes: 1 addition & 1 deletion src/components/footer/FooterRel.astro
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
import SubscribeFormFooter from '../SubscribeFormFooter.astro'
import SubscribeFormFooter from './SubscribeFormFooter.astro'
const footerRelBlock = [
{
title: 'A propos',
Expand Down
File renamed without changes.
3 changes: 2 additions & 1 deletion src/pages/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import Layout from '../layouts/Layout.astro'
import SponsorsBlock from '../components/SponsorsBlock.astro'
import FooterBlock from '../components/footer/FooterBlock.astro'
import Menu from '../components/Menu.astro'
import Hero from '../components/Hero.astro'
const OPENPLANNER_URL = import.meta.env.OPENPLANNER_URL
const response = await fetch(OPENPLANNER_URL)
Expand All @@ -13,7 +14,7 @@ const openPlannerData: OpenPlannerType = await response.json()
<Layout title="SunnyTech">
<Menu />
<main>
<h1>SunnyTech</h1>
<Hero />

<SponsorsBlock sponsorCategories={openPlannerData.sponsors} />
</main>
Expand Down

0 comments on commit 7608c3c

Please sign in to comment.