feat: put presentation in a card to avoid background image tampering with text

This commit is contained in:
Corentin 2024-05-22 19:19:49 +02:00
parent 7ecd173dab
commit 9e51b514dc
5 changed files with 63 additions and 44 deletions

View File

@ -18,3 +18,13 @@ body {
max-width: 1100px;
}
%card {
background: white;
box-shadow: var(--elevation-medium);
padding: var(--space-large) var(--space-xlarge);
border-radius: var(--border-radius-medium);
@media($mobile-breakpoint) {
padding: var(--space-medium) var(--space-large);
}
}

View File

@ -36,6 +36,7 @@ h4 {
}
p {
margin: 0 0 var(--space-small) 0;
margin-bottom: var(--space-medium);
}

View File

@ -29,6 +29,7 @@ $mobile-breakpoint: "max-width: 768px";
--border-radius-small: 3px;
--border-radius-medium: 7px;
--elevation-high: 0px 5px 5px 0px rgba(22, 22, 22, 0.5);
--elevation-medium: 0px 2px 7px 0px rgba(22, 22, 22, 0.3);
--transitions-duration: 0.2s;
}

View File

@ -1,52 +1,54 @@
{% from "lib/section.html" import section %}
{% call section(gettext("Collective"), "/img/section-collective.png", "/img/section-collective-hover.png") %}
<p>
{% trans %}
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.
{% endtrans %}
</p>
<p>
{% trans %}
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.
{% endtrans %}
</p>
<div class="presentation--content">
<p>
{% trans %}
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.
{% endtrans %}
</p>
<p>
{% trans %}
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!
{% endtrans %}
</p>
{% trans %}
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.
{% endtrans %}
</p>
<h3>{{ gettext('Members') }}</h3>
<div class="members">
{% for member in load("presentation/members.yaml") | yaml %}
<div class="member">
<img class="member--avatar" src="{{ member.avatar | load | write }}"></img>
<h4 class="member--name">{{ member.name }}</h4>
<div class="member--description">{{ member.description }}</div>
</div>
{% endfor %}
<p>
{% trans %}
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!
{% endtrans %}
</p>
<h3>{{ gettext('Members') }}</h3>
<div class="members">
{% for member in load("presentation/members.yaml") | yaml %}
<div class="member">
<img class="member--avatar" src="{{ member.avatar | load | write }}"></img>
<h4 class="member--name">{{ member.name }}</h4>
<div class="member--description">{{ member.description }}</div>
</div>
{% endfor %}
</div>
</div>
{% endcall %}

View File

@ -1,3 +1,8 @@
.presentation--content {
@extend %card;
background: white;
}
.members {
display: flex;
justify-content: center;