feat: integrate content sections

This commit is contained in:
Corentin 2024-05-19 16:46:51 +02:00
parent efecd75247
commit c78670b118
13 changed files with 200 additions and 95 deletions

46
css/content.css Normal file
View File

@ -0,0 +1,46 @@
.section {
margin-bottom: var(--space-xlarge);
display: flex;
flex-direction: column;
}
.section--title {
display: flex;
flex-direction: column;
align-items: center;
}
.section--title::before {
width: 150px;
height: 150px;
background: center / contain no-repeat var(--image);
content: "";
}
.section--title:hover::before {
background-image: var(--hover-image);
}
.section--content {
}
@media (max-width: 768px) {
.section {
margin-bottom: var(--space-large);
}
.section--title {
flex-direction: row;
}
.section--title::before {
width: 50px;
height: 50px;
margin-right: var(--space-small);
}
.section--content {
grid-area: 2 / 1 / 3 / 4;
}
}

View File

@ -51,7 +51,7 @@
padding: var(--space-large) var(--space-small); padding: var(--space-large) var(--space-small);
font-family: Knewave; font-family: Knewave;
font-size: var(--fz-3); font-size: var(--fz-4);
color: var(--primary-color); color: var(--primary-color);
text-transform: uppercase; text-transform: uppercase;
text-align: center; text-align: center;

37
css/typo.css Normal file
View File

@ -0,0 +1,37 @@
h1, h2, h3 {
font-family: Knewave;
margin: 0 0 var(--space-medium) 0;
}
h1 {
margin: var(--space-xsmall);
font-family: "Knewave", system-ui;
font-size: var(--fz-1);
text-transform: uppercase;
text-align: center;
}
h2 {
font-family: "Knewave", system-ui;
font-size: var(--fz-2);
text-transform: uppercase;
}
h3 {
font-family: "Knewave", system-ui;
font-size: var(--fz-3);
}
p {
margin-bottom: var(--space-medium);
}
@media (max-width: 768px) {
h1, h2, h3 {
margin: 0 0 var(--space-small) 0;
}
}

22
css/variables.css Normal file
View File

@ -0,0 +1,22 @@
:root {
--color: #161616;
--primary-color: #E04855;
--on-primary: white;
--dark: #161616;
--on-dark: #E04855;
--space-xsmall: 5px;
--space-small: 10px;
--space-medium: 20px;
--space-large: 30px;
--space-xlarge: 60px;
--width: 1100px;
--fz-1: 2rem;
--fz-2: 2rem;
--fz-3: 1.5rem;
--fz-4: 1.125rem;
}

View File

Before

Width:  |  Height:  |  Size: 6.8 KiB

After

Width:  |  Height:  |  Size: 6.8 KiB

View File

Before

Width:  |  Height:  |  Size: 6.9 KiB

After

Width:  |  Height:  |  Size: 6.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.8 KiB

BIN
img/section-contact.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.9 KiB

BIN
img/section-games.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.0 KiB

BIN
img/section-news.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

View File

@ -9,7 +9,10 @@
<link href="https://fonts.googleapis.com/css2?family=Knewave&display=swap" rel="stylesheet"> <link href="https://fonts.googleapis.com/css2?family=Knewave&display=swap" rel="stylesheet">
<link rel="stylesheet" href="//brick.freetls.fastly.net/Montserrat:300"> <link rel="stylesheet" href="//brick.freetls.fastly.net/Montserrat:300">
<link rel="stylesheet" href="stylesheet.css"/> <link rel="stylesheet" href="stylesheet.css"/>
<link rel="stylesheet" href="css/variables.css"/>
<link rel="stylesheet" href="css/typo.css"/>
<link rel="stylesheet" href="css/nav.css"/> <link rel="stylesheet" href="css/nav.css"/>
<link rel="stylesheet" href="css/content.css"/>
<script type="module" src="index.js"></script> <script type="module" src="index.js"></script>
</head> </head>
<body> <body>
@ -47,70 +50,101 @@
</nav> </nav>
<div class="content"> <div class="content">
<div class="separator"></div> <div class="section"
<h1>Frog Collective</h1> style="
--image:url('/img/section-collective.png');
<p> --hover-image:url('/img/section-collective-hover.png');
Welcome to the cozy world of the Frog Collective, where big dreams come in small packages! We're not your typical gaming behemoth "
with a massive team and towering office buildings. Nope, we're just two passionate souls huddled around a couple of computers, >
fueled by an insatiable love for crafting little nuggets of joy that won't break the bank. <h2 class="section--title">Frog Collective</h2>
</p> <div class="section--content">
<p> <p>
Here we specialize in creating bite-sized adventures that anyone can pick up and play, but only the true gaming aficionados Welcome to the cozy world of the Frog Collective, where big
can conquer. Think of us as the David to the Goliaths of the gaming industry. Our games might be small, but they will keep you dreams come in small packages! We're not your typical
coming back for more. Now, you might be wondering, how on earth do two people manage to steer the ship in this vast ocean of pixels? gaming behemoth with a massive team and towering office
Well, let me tell you, it's all about that sweet, sweet collective decision-making magic. We're like yin and yang, balancing each buildings. Nope, we're just two passionate souls huddled
other's quirks and strengths as we navigate the treacherous waters of game development. around a couple of computers, fueled by an insatiable love
</p> for crafting little nuggets of joy that won't break the
<p> bank.
Whether it's brainstorming ideas over a late-night pizza session or duking it out over the perfect shade of blue for our </p>
protagonist's cape, every decision is a team effort. And hey, when you've only got two heads in the game, you learn to trust <p>
each other's instincts real quick. So, if you're tired of the same old cookie-cutter games and fancy a little dose of indie charm, Here we specialize in creating bite-sized adventures that
strap in and join us on this wild ride through the pixelated cosmos. Who knows, you might just discover your new favorite addiction anyone can pick up and play, but only the true gaming
in the unlikeliest of places. Welcome to Frog Collective where small is mighty, and fun knows no bounds! aficionados can conquer. Think of us as the David to the
</p> Goliaths of the gaming industry. Our games might be small,
but they will keep you coming back for more. Now, you might
<div class="news"> be wondering, how on earth do two people manage to steer
<h3 class="news--title"> the ship in this vast ocean of pixels? Well, let me tell
News Title you, it's all about that sweet, sweet collective
</div> decision-making magic. We're like yin and yang, balancing
<div class="news--date"> each other's quirks and strengths as we navigate the
02/05/2024 treacherous waters of game development.
</div> </p>
<p>
<div class="news--content"> Whether it's brainstorming ideas over a late-night pizza
Here we specialize in creating bite-sized adventures that anyone session or duking it out over the perfect shade of blue for
can pick up and play, but only the true gaming aficionados can our protagonist's cape, every decision is a team effort.
conquer. Think of us as the David to the Goliaths of the gaming And hey, when you've only got two heads in the game, you
industry. Our games might be small, but they will keep you coming learn to trust each other's instincts real quick. So, if
back for more. Now, you might be wondering, how on earth do two you're tired of the same old cookie-cutter games and fancy
people manage to steer the ship in this vast ocean of pixels? Well, a little dose of indie charm, strap in and join us on this
let me tell you, it's all about that sweet, sweet collective wild ride through the pixelated cosmos. Who knows, you
decision-making magic. We're like yin and yang, balancing each might just discover your new favorite addiction in the
other's quirks and strengths as we navigate the treacherous waters unlikeliest of places. Welcome to Frog Collective where
of game development. small is mighty, and fun knows no bounds!
</p>
</div> </div>
</div> </div>
<div class="news"> <div class="section"
<h3 class="news--title"> style="
News Title --image:url('/img/section-news.png');
</div> --hover-image:url('/img/section-news.png');
<div class="news--date"> "
02/05/2024 >
</div> <h2 class="section--title">
News
</h2>
<div class="section--content">
<div class="news">
<h3 class="news--title">News Title</h3>
<div class="news--date">
02/05/2024
</div>
<div class="news--content"> <div class="news--content">
Here we specialize in creating bite-sized adventures that anyone Here we specialize in creating bite-sized adventures that anyone
can pick up and play, but only the true gaming aficionados can can pick up and play, but only the true gaming aficionados can
conquer. Think of us as the David to the Goliaths of the gaming conquer. Think of us as the David to the Goliaths of the gaming
industry. Our games might be small, but they will keep you coming industry. Our games might be small, but they will keep you coming
back for more. Now, you might be wondering, how on earth do two back for more. Now, you might be wondering, how on earth do two
people manage to steer the ship in this vast ocean of pixels? Well, people manage to steer the ship in this vast ocean of pixels? Well,
let me tell you, it's all about that sweet, sweet collective let me tell you, it's all about that sweet, sweet collective
decision-making magic. We're like yin and yang, balancing each decision-making magic. We're like yin and yang, balancing each
other's quirks and strengths as we navigate the treacherous waters other's quirks and strengths as we navigate the treacherous waters
of game development. of game development.
</div>
</div>
<div class="news">
<h3 class="news--title">News Title</div>
<div class="news--date">
02/05/2024
</div>
<div class="news--content">
Here we specialize in creating bite-sized adventures that anyone
can pick up and play, but only the true gaming aficionados can
conquer. Think of us as the David to the Goliaths of the gaming
industry. Our games might be small, but they will keep you coming
back for more. Now, you might be wondering, how on earth do two
people manage to steer the ship in this vast ocean of pixels? Well,
let me tell you, it's all about that sweet, sweet collective
decision-making magic. We're like yin and yang, balancing each
other's quirks and strengths as we navigate the treacherous waters
of game development.
</div>
</div>
</div> </div>
</div> </div>
</div> </div>

View File

@ -22,4 +22,3 @@ class ToggleMenuButton extends HTMLElement {
} }
} }
window.customElements.define('toggle-menu-button', ToggleMenuButton)

View File

@ -1,24 +1,3 @@
:root {
--color: #161616;
--primary-color: #E04855;
--on-primary: white;
--dark: #161616;
--on-dark: #E04855;
--space-xsmall: 5px;
--space-small: 10px;
--space-medium: 20px;
--space-large: 30px;
--width: 1100px;
--fz-1: 2rem;
--fz-2: 1.5rem;
--fz-3: 1.125rem;
}
body { body {
background-image: url(img/background.jpg); background-image: url(img/background.jpg);
font-family: "Montserrat", sans-serif; font-family: "Montserrat", sans-serif;
@ -29,18 +8,6 @@ body {
} }
h1{
font-family: "Knewave", system-ui;
text-transform: uppercase;
text-align: center;
margin: var(--space-xsmall);
}
p {
margin-bottom: var(--space-medium);
}
.content { .content {
margin: 2em auto 0 auto; margin: 2em auto 0 auto;
max-width: 1100px; max-width: 1100px;