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,33 +50,64 @@
</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');
--hover-image:url('/img/section-collective-hover.png');
"
>
<h2 class="section--title">Frog Collective</h2>
<div class="section--content">
<p> <p>
Welcome to the cozy world of the Frog Collective, where big dreams come in small packages! We're not your typical gaming behemoth Welcome to the cozy world of the Frog Collective, where big
with a massive team and towering office buildings. Nope, we're just two passionate souls huddled around a couple of computers, dreams come in small packages! We're not your typical
fueled by an insatiable love for crafting little nuggets of joy that won't break the bank. 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>
<p> <p>
Here we specialize in creating bite-sized adventures that anyone can pick up and play, but only the true gaming aficionados Here we specialize in creating bite-sized adventures that
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 anyone can pick up and play, but only the true gaming
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? aficionados can conquer. Think of us as the David to the
Well, let me tell you, it's all about that sweet, sweet collective decision-making magic. We're like yin and yang, balancing each Goliaths of the gaming industry. Our games might be small,
other's quirks and strengths as we navigate the treacherous waters of game development. 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>
<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 Whether it's brainstorming ideas over a late-night pizza
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 session or duking it out over the perfect shade of blue for
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, our protagonist's cape, every decision is a team effort.
strap in and join us on this wild ride through the pixelated cosmos. Who knows, you might just discover your new favorite addiction And hey, when you've only got two heads in the game, you
in the unlikeliest of places. Welcome to Frog Collective where small is mighty, and fun knows no bounds! 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> </p>
<div class="news">
<h3 class="news--title">
News Title
</div> </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"> <div class="news--date">
02/05/2024 02/05/2024
</div> </div>
@ -93,9 +127,7 @@
</div> </div>
<div class="news"> <div class="news">
<h3 class="news--title"> <h3 class="news--title">News Title</div>
News Title
</div>
<div class="news--date"> <div class="news--date">
02/05/2024 02/05/2024
</div> </div>
@ -114,5 +146,7 @@
</div> </div>
</div> </div>
</div> </div>
</div>
</div>
</body> </body>
</html> </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 { 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;