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);
font-family: Knewave;
font-size: var(--fz-3);
font-size: var(--fz-4);
color: var(--primary-color);
text-transform: uppercase;
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 rel="stylesheet" href="//brick.freetls.fastly.net/Montserrat:300">
<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/content.css"/>
<script type="module" src="index.js"></script>
</head>
<body>
@ -47,33 +50,64 @@
</nav>
<div class="content">
<div class="separator"></div>
<h1>Frog Collective</h1>
<div class="section"
style="
--image:url('/img/section-collective.png');
--hover-image:url('/img/section-collective-hover.png');
"
>
<h2 class="section--title">Frog Collective</h2>
<div class="section--content">
<p>
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.
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.
</p>
<p>
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.
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.
</p>
<p>
Whether it's brainstorming ideas over a late-night pizza session or duking it out over the perfect shade of blue for our
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
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,
strap in and join us on this wild ride through the pixelated cosmos. Who knows, you might just discover your new favorite addiction
in the unlikeliest of places. Welcome to Frog Collective where small is mighty, and fun knows no bounds!
Whether it's brainstorming ideas over a late-night pizza
session or duking it out over the perfect shade of blue for
our 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 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, strap in and join us on this
wild ride through the pixelated cosmos. Who knows, you
might just discover your new favorite addiction in the
unlikeliest of places. Welcome to Frog Collective where
small is mighty, and fun knows no bounds!
</p>
<div class="news">
<h3 class="news--title">
News Title
</div>
</div>
<div class="section"
style="
--image:url('/img/section-news.png');
--hover-image:url('/img/section-news.png');
"
>
<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>
@ -93,9 +127,7 @@
</div>
<div class="news">
<h3 class="news--title">
News Title
</div>
<h3 class="news--title">News Title</div>
<div class="news--date">
02/05/2024
</div>
@ -114,5 +146,7 @@
</div>
</div>
</div>
</div>
</div>
</body>
</html>

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 {
background-image: url(img/background.jpg);
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 {
margin: 2em auto 0 auto;
max-width: 1100px;