parent
22d64b0b09
commit
b985744971
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
|
@ -1,11 +1,5 @@
|
||||||
body {
|
body {
|
||||||
background-image: url(img/background.jpg);
|
background-image: url(img/background.jpg);
|
||||||
font-family: "Montserrat", sans-serif;
|
|
||||||
font-optical-sizing: auto;
|
|
||||||
text-align: justify;
|
|
||||||
line-height: 25px;
|
|
||||||
color: var(--color);
|
|
||||||
font-weight: 300;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
* {
|
* {
|
||||||
|
|
|
||||||
|
|
@ -1,46 +1,65 @@
|
||||||
h1, h2, h3, h4 {
|
@font-face {
|
||||||
font-family: Knewave;
|
font-family: 'Knewave';
|
||||||
|
font-style: normal;
|
||||||
|
font-weight: 400;
|
||||||
|
src: url(/fonts/Knewave.woff) format('woff');
|
||||||
|
}
|
||||||
|
|
||||||
|
@mixin montserrat($style, $weight, $file) {
|
||||||
|
@font-face {
|
||||||
|
font-family: 'Montserrat';
|
||||||
|
font-style: $style;
|
||||||
|
font-weight: $weight;
|
||||||
|
src: url(/fonts/#{$file}.woff2) format('woff2');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@include montserrat(normal, 700, "Montserrat-Bold");
|
||||||
|
@include montserrat(italic, 700, "Montserrat-BoldItalic");
|
||||||
|
@include montserrat(normal, 400, "Montserrat-Regular");
|
||||||
|
@include montserrat(italic, 400, "Montserrat-Italic");
|
||||||
|
@include montserrat(normal, 300, "Montserrat-Light");
|
||||||
|
@include montserrat(italic, 300, "Montserrat-LightItalic");
|
||||||
|
|
||||||
|
body {
|
||||||
|
font-family: "Montserrat", sans-serif;
|
||||||
|
color: var(--color-text);
|
||||||
}
|
}
|
||||||
|
|
||||||
h1 {
|
h1 {
|
||||||
margin: 0 0 var(--space-medium) 0;
|
margin: 0 0 var(--space-medium) 0;
|
||||||
|
|
||||||
font-family: "Knewave", system-ui;
|
font-family: 'Knewave';
|
||||||
font-size: var(--fz-1);
|
font-size: var(--fz-1);
|
||||||
|
|
||||||
text-transform: uppercase;
|
text-transform: uppercase;
|
||||||
text-align: center;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
h2 {
|
h2 {
|
||||||
margin: 0 0 var(--space-medium) 0;
|
margin: 0 0 var(--space-medium) 0;
|
||||||
|
|
||||||
font-family: "Knewave", system-ui;
|
font-family: 'Knewave';
|
||||||
font-size: var(--fz-2);
|
font-size: var(--fz-2);
|
||||||
|
|
||||||
text-transform: uppercase;
|
text-transform: uppercase;
|
||||||
}
|
}
|
||||||
|
|
||||||
h3 {
|
h3 {
|
||||||
margin: 0 0 var(--space-small) 0;
|
margin: 0 0 var(--space-small) 0;
|
||||||
|
|
||||||
font-family: "Knewave", system-ui;
|
|
||||||
font-size: var(--fz-3);
|
font-size: var(--fz-3);
|
||||||
}
|
}
|
||||||
|
|
||||||
h4 {
|
h4 {
|
||||||
margin: 0 0 var(--space-small) 0;
|
margin: 0 0 var(--space-small) 0;
|
||||||
|
|
||||||
font-family: "Knewave", system-ui;
|
|
||||||
font-size: var(--fz-4);
|
font-size: var(--fz-4);
|
||||||
}
|
}
|
||||||
|
|
||||||
p {
|
p {
|
||||||
margin: 0 0 var(--space-small) 0;
|
margin: 0 0 var(--space-small) 0;
|
||||||
|
|
||||||
margin-bottom: var(--space-medium);
|
margin-bottom: var(--space-medium);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@media ($mobile-breakpoint) {
|
@media ($mobile-breakpoint) {
|
||||||
h1, h2, h3 {
|
h1, h2, h3 {
|
||||||
margin: 0 0 var(--space-small) 0;
|
margin: 0 0 var(--space-small) 0;
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@ $mobile-breakpoint: "max-width: 768px";
|
||||||
:root {
|
:root {
|
||||||
--color-text: #161616;
|
--color-text: #161616;
|
||||||
|
|
||||||
--color-primary: #aa1d29;
|
--color-primary: #DB2937;
|
||||||
--color-on-primary: white;
|
--color-on-primary: white;
|
||||||
|
|
||||||
--color-accent: #161616;
|
--color-accent: #161616;
|
||||||
|
|
@ -21,8 +21,8 @@ $mobile-breakpoint: "max-width: 768px";
|
||||||
|
|
||||||
--width: 1100px;
|
--width: 1100px;
|
||||||
|
|
||||||
--fz-1: 2rem;
|
--fz-1: 4rem;
|
||||||
--fz-2: 2rem;
|
--fz-2: 3rem;
|
||||||
--fz-3: 1.5rem;
|
--fz-3: 1.5rem;
|
||||||
--fz-4: 1.125rem;
|
--fz-4: 1.125rem;
|
||||||
|
|
||||||
|
|
@ -32,4 +32,11 @@ $mobile-breakpoint: "max-width: 768px";
|
||||||
--elevation-medium: 0px 2px 7px 0px rgba(22, 22, 22, 0.3);
|
--elevation-medium: 0px 2px 7px 0px rgba(22, 22, 22, 0.3);
|
||||||
|
|
||||||
--transitions-duration: 0.2s;
|
--transitions-duration: 0.2s;
|
||||||
|
|
||||||
|
@media ($mobile-breakpoint) {
|
||||||
|
--fz-1: 2.8rem;
|
||||||
|
--fz-2: 2.5rem;
|
||||||
|
--fz-3: 1.5rem;
|
||||||
|
--fz-4: 1.125rem;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -25,10 +25,6 @@
|
||||||
box-shadow: var(--elevation-high);
|
box-shadow: var(--elevation-high);
|
||||||
background: var(--color-dark-gradient);
|
background: var(--color-dark-gradient);
|
||||||
|
|
||||||
@media ($mobile-breakpoint) {
|
|
||||||
margin-bottom: 65px;
|
|
||||||
}
|
|
||||||
|
|
||||||
&--content {
|
&--content {
|
||||||
grid-area: 1 / 2 / 2 / 3;
|
grid-area: 1 / 2 / 2 / 3;
|
||||||
height: var(--desktop-height);
|
height: var(--desktop-height);
|
||||||
|
|
|
||||||
|
|
@ -1,11 +1,22 @@
|
||||||
{% macro section(title, title_image, title_image_hover) -%}
|
{% macro section(
|
||||||
<div class="section"
|
title,
|
||||||
|
title_picture,
|
||||||
|
title_picture_hover = None,
|
||||||
|
title_picture_offset = "20px",
|
||||||
|
title_color = "var(--color-text)")
|
||||||
|
-%}
|
||||||
|
<div class="section">
|
||||||
|
<h1
|
||||||
|
class="section--title"
|
||||||
style="
|
style="
|
||||||
--image:url('{{ title_image }}');
|
color: {{ title_color }};
|
||||||
--hover-image:url('{{ title_image_over or title_image }}');
|
--picture-url:url('{{ title_picture }}');
|
||||||
|
--picture-hover-url:url('{{ title_picture_hover or title_picture }}');
|
||||||
|
--picture-offset: {{ title_picture_offset }};
|
||||||
"
|
"
|
||||||
>
|
>
|
||||||
<h2 class="section--title">{{ title }}</h2>
|
{{ title }}
|
||||||
|
</h1>
|
||||||
{{ caller() }}
|
{{ caller() }}
|
||||||
</div>
|
</div>
|
||||||
{%- endmacro -%}
|
{%- endmacro -%}
|
||||||
|
|
|
||||||
|
|
@ -2,36 +2,44 @@
|
||||||
margin-bottom: var(--space-xlarge);
|
margin-bottom: var(--space-xlarge);
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
|
align-items: center;
|
||||||
|
|
||||||
@media ($mobile-breakpoint) {
|
@media ($mobile-breakpoint) {
|
||||||
margin-bottom: var(--space-large);
|
margin-bottom: var(--space-large);
|
||||||
}
|
}
|
||||||
|
|
||||||
&--title {
|
&--title {
|
||||||
display: flex;
|
background: transparent;
|
||||||
flex-direction: column;
|
position: relative;
|
||||||
align-items: center;
|
margin-top: 110px;
|
||||||
|
|
||||||
@media ($mobile-breakpoint) {
|
|
||||||
flex-direction: row;
|
|
||||||
justify-content: center;
|
|
||||||
}
|
|
||||||
|
|
||||||
&::before {
|
&::before {
|
||||||
width: 150px;
|
z-index: -1;
|
||||||
height: 150px;
|
|
||||||
background: center / contain no-repeat var(--image);
|
|
||||||
content: "";
|
|
||||||
|
|
||||||
@media ($mobile-breakpoint) {
|
position: absolute;
|
||||||
width: 50px;
|
top: -110px;
|
||||||
height: 50px;
|
left: var(--picture-offset);
|
||||||
margin-right: var(--space-small);
|
width: 150px;
|
||||||
}
|
height: 125px;
|
||||||
|
|
||||||
|
background: center / contain no-repeat var(--picture-url);
|
||||||
|
content: "";
|
||||||
}
|
}
|
||||||
|
|
||||||
&:hover::before {
|
&:hover::before {
|
||||||
background-image: var(--hover-image);
|
background-image: var(--picture-hover-url);
|
||||||
|
}
|
||||||
|
|
||||||
|
@media ($mobile-breakpoint) {
|
||||||
|
margin-top: 75px;
|
||||||
|
|
||||||
|
&::before {
|
||||||
|
top: -75px;
|
||||||
|
left: calc(var(--picture-offset) * 0.8);
|
||||||
|
|
||||||
|
width: 90px;
|
||||||
|
height: 90px;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -2,11 +2,7 @@
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
||||||
<meta name="description" content="A set of horizontal menus that switch to vertical and which hide at small window widths.">
|
|
||||||
<title>Frog Collective</title>
|
<title>Frog Collective</title>
|
||||||
<link href="https://fonts.googleapis.com/css2?family=Knewave&display=swap" rel="stylesheet">
|
|
||||||
<link rel="stylesheet" href="//brick.freetls.fastly.net/Montserrat:400,300">
|
|
||||||
<link rel="stylesheet" href="/style.css"/>
|
<link rel="stylesheet" href="/style.css"/>
|
||||||
<script type="module" src="/js/index.js"></script>
|
<script type="module" src="/js/index.js"></script>
|
||||||
</head>
|
</head>
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,10 @@
|
||||||
{% from "lib/section.html" import section %}
|
{% from "lib/section.html" import section %}
|
||||||
|
|
||||||
{% call section(gettext("Games"), "/img/section-games.png") %}
|
{% call section(gettext("Games"),
|
||||||
|
"/img/section-games.png",
|
||||||
|
title_picture_offset = "-20px",
|
||||||
|
title_color = "var(--color-primary)"
|
||||||
|
) %}
|
||||||
{% for game in glob("games/*.md") | map('markdown') %}
|
{% for game in glob("games/*.md") | map('markdown') %}
|
||||||
<div class="game">
|
<div class="game">
|
||||||
<div class="game--picture-wrapper">
|
<div class="game--picture-wrapper">
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,11 @@
|
||||||
{% from "lib/section.html" import section %}
|
{% from "lib/section.html" import section %}
|
||||||
|
|
||||||
{% call section(gettext("News"), "/img/section-news.png") %}
|
{% call section(
|
||||||
|
gettext("News"),
|
||||||
|
"/img/section-news.png",
|
||||||
|
title_picture_offset="60px",
|
||||||
|
title_color = "var(--color-primary)"
|
||||||
|
) %}
|
||||||
{% for news in glob("news/*.md") | map('markdown') %}
|
{% for news in glob("news/*.md") | map('markdown') %}
|
||||||
<div class="news">
|
<div class="news">
|
||||||
<div class="news--title">
|
<div class="news--title">
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,12 @@
|
||||||
</div>
|
</div>
|
||||||
{% endmacro %}
|
{% endmacro %}
|
||||||
|
|
||||||
{% call section(gettext("Collective"), "/img/section-collective.png", "/img/section-collective-hover.png") %}
|
{% call section(
|
||||||
|
gettext("Collective"),
|
||||||
|
"/img/section-collective.png",
|
||||||
|
title_picture_hover = "/img/section-collective-hover.png",
|
||||||
|
title_picture_offset = "170px"
|
||||||
|
) %}
|
||||||
<div class="presentation--content">
|
<div class="presentation--content">
|
||||||
<p>
|
<p>
|
||||||
{% trans %}
|
{% trans %}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue