feat: put presentation in a card to avoid background image tampering with text
This commit is contained in:
parent
7ecd173dab
commit
9e51b514dc
|
|
@ -18,3 +18,13 @@ body {
|
||||||
max-width: 1100px;
|
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);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
|
||||||
|
|
@ -36,6 +36,7 @@ h4 {
|
||||||
}
|
}
|
||||||
|
|
||||||
p {
|
p {
|
||||||
|
margin: 0 0 var(--space-small) 0;
|
||||||
margin-bottom: var(--space-medium);
|
margin-bottom: var(--space-medium);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -29,6 +29,7 @@ $mobile-breakpoint: "max-width: 768px";
|
||||||
--border-radius-small: 3px;
|
--border-radius-small: 3px;
|
||||||
--border-radius-medium: 7px;
|
--border-radius-medium: 7px;
|
||||||
--elevation-high: 0px 5px 5px 0px rgba(22, 22, 22, 0.5);
|
--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;
|
--transitions-duration: 0.2s;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,7 @@
|
||||||
{% from "lib/section.html" import section %}
|
{% from "lib/section.html" import section %}
|
||||||
|
|
||||||
{% call section(gettext("Collective"), "/img/section-collective.png", "/img/section-collective-hover.png") %}
|
{% call section(gettext("Collective"), "/img/section-collective.png", "/img/section-collective-hover.png") %}
|
||||||
|
<div class="presentation--content">
|
||||||
<p>
|
<p>
|
||||||
{% trans %}
|
{% trans %}
|
||||||
Welcome to the cozy world of the Frog Collective, where big dreams come
|
Welcome to the cozy world of the Frog Collective, where big dreams come
|
||||||
|
|
@ -49,4 +50,5 @@
|
||||||
</div>
|
</div>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
{% endcall %}
|
{% endcall %}
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,8 @@
|
||||||
|
.presentation--content {
|
||||||
|
@extend %card;
|
||||||
|
background: white;
|
||||||
|
}
|
||||||
|
|
||||||
.members {
|
.members {
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue