initial commit

This commit is contained in:
2024-11-13 22:26:45 +01:00
commit fd466fc511
156 changed files with 13223 additions and 0 deletions

View File

@@ -0,0 +1,43 @@
:root {
color-scheme: light dark;
--surface-1-light: #fff;
--surface-2-light: #e5e5e5;
--text-1-light: #0a0a0a;
--text-2-light: #737373;
--surface-1-dark: #171717;
--surface-2-dark: #404040;
--text-1-dark: #fafafa;
--text-2-dark: #a3a3a3;
--surface-1: var(--surface-1-light);
--surface-2: var(--surface-2-light);
--text-1: var(--text-1-light);
--text-2: var(--text-2-light);
}
@media (prefers-color-scheme: dark) {
:root {
--surface-1: var(--surface-1-dark);
--surface-2: var(--surface-2-dark);
--text-1: var(--text-1-dark);
--text-2: var(--text-2-dark);
}
}
html.light {
color-scheme: light;
--surface-1: var(--surface-1-light);
--surface-2: var(--surface-2-light);
--text-1: var(--text-1-light);
--text-2: var(--text-2-light);
}
html.dark {
color-scheme: dark;
--surface-1: var(--surface-1-dark);
--surface-2: var(--surface-2-dark);
--text-1: var(--text-1-dark);
--text-2: var(--text-2-dark);
}

View File

@@ -0,0 +1,99 @@
*,
::before,
::after {
box-sizing: border-box;
border-width: 0;
}
html {
line-height: 1.5;
font-family: ui-sans-serif, system-ui, sans-serif;
-webkit-text-size-adjust: 100%;
-moz-tab-size: 4;
tab-size: 4;
}
body {
margin: 0;
}
h1,
h2,
h3,
h4,
h5,
h6 {
font-weight: inherit;
font-size: inherit;
}
a {
color: inherit;
text-decoration: inherit;
}
b,
strong {
font-weight: bolder;
}
button,
input {
font-family: inherit;
font-feature-settings: inherit;
font-variation-settings: inherit;
font-size: 100%;
font-weight: inherit;
line-height: inherit;
color: inherit;
margin: 0;
padding: 0;
}
button,
select {
text-transform: none;
}
button {
-webkit-appearance: button;
background-image: none;
background-color: transparent;
cursor: pointer;
}
:disabled {
cursor: default;
}
:-moz-focusring {
outline: 1px dotted ButtonText;
}
h1,
h2,
h3,
figure,
p {
margin: 0;
}
ul,
menu {
margin: 0;
padding: 0;
list-style: none;
}
img,
svg,
video {
display: block;
vertical-align: middle;
}
img,
video {
max-width: 100%;
height: auto;
}

View File

@@ -0,0 +1,428 @@
html {
height: 100%;
}
body {
display: flex;
flex-direction: column;
width: 100%;
min-height: 100%;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
background-color: var(--surface-1);
color: var(--text-1);
}
body > header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 0.5rem;
width: 100%;
min-height: 4rem;
ul {
display: inline-flex;
}
.btn {
display: inline-flex;
justify-content: center;
align-items: center;
border-radius: 0.5rem;
padding-right: 1rem;
padding-left: 1rem;
height: 3rem;
font-weight: 600;
font-size: 1.25rem;
user-select: none;
}
.btn-square {
padding: 0;
width: 3rem;
}
}
body > menu {
margin: 3rem auto 4rem;
padding-right: 1.5rem;
padding-left: 1.5rem;
width: 100%;
max-width: 768px;
color: var(--text-2);
font-weight: 600;
font-size: 1.125rem;
line-height: 1.75rem;
user-select: none;
text-align: center;
a {
display: block;
padding-top: 0.5rem;
padding-bottom: 0.5rem;
&:hover,
&[aria-current="true"] {
color: var(--text-1);
}
}
}
body > main {
flex-grow: 1;
width: 100%;
height: 100%;
}
main > section {
margin: 3rem auto 4rem;
padding-right: 1.5rem;
padding-left: 1.5rem;
}
body > footer {
margin-right: auto;
margin-left: auto;
color: var(--text-2);
font-size: 0.875rem;
line-height: 1.25rem;
section:last-of-type {
display: flex;
flex-flow: row wrap;
justify-content: center;
gap: 1rem;
padding: 2.5rem;
a:hover {
text-decoration-line: underline;
}
}
}
hgroup {
display: flex;
flex-direction: column;
align-items: center;
gap: 1.5rem;
margin: 3rem auto 4rem;
padding-right: 1.5rem;
padding-left: 1.5rem;
max-width: 1024px;
text-align: center;
h1 {
font-weight: 700;
font-size: 1.875rem;
line-height: 2.25rem;
}
h2 {
font-weight: 700;
font-size: 1.5rem;
line-height: 2rem;
}
p {
color: var(--text-2);
text-wrap: balance;
}
@media (min-width: 640px) {
width: 83.3333%;
}
@media (min-width: 768px) {
h1 {
font-size: 2.25rem;
line-height: 2.5rem;
}
h2 {
font-size: 1.875rem;
line-height: 2.25rem;
}
p {
font-size: 1.125rem;
line-height: 1.75rem;
}
}
}
section.galleries {
display: grid;
grid-template-columns: repeat(1, minmax(0, 1fr));
gap: 2rem 1.5rem;
max-width: 1280px;
@media (min-width: 640px) {
grid-template-columns: repeat(2, minmax(0, 1fr));
row-gap: 3rem;
}
@media (min-width: 1024px) {
grid-template-columns: repeat(3, minmax(0, 1fr));
}
}
section.gallery {
padding-right: 0;
padding-left: 0;
max-width: 1536px;
@media (min-width: 640px) {
padding-right: 1.5rem /* 24px */;
padding-left: 1.5rem /* 24px */;
}
}
.prose {
max-width: 768px;
color: var(--text-1);
font-size: 1rem;
line-height: 1.75;
a {
color: var(--text-1);
font-weight: 500;
text-decoration: underline;
}
p {
margin-top: 1.25em;
margin-bottom: 1.25em;
}
img {
margin-top: 2em;
margin-bottom: 2em;
}
h3 {
margin-top: 1.6em;
margin-bottom: 0.6em;
color: var(--text-1);
font-weight: 600;
font-size: 1.25em;
line-height: 1.6;
}
ul {
margin-top: 1.25em;
margin-bottom: 1.25em;
padding-left: 1.625em;
list-style-type: disc;
& > li {
margin-top: 0.5em;
margin-bottom: 0.5em;
padding-left: 0.375em;
}
li::marker {
color: var(--text-2);
font-variant-numeric: tabular-nums;
unicode-bidi: isolate;
text-align: start !important;
text-align-last: start !important;
text-indent: 0 !important;
text-transform: none;
}
}
h3 + * {
margin-top: 0;
}
figure {
margin-top: 2em;
margin-bottom: 2em;
}
figure > * {
margin-top: 0;
margin-bottom: 0;
}
> :first-child {
margin-top: 0;
}
> :last-child {
margin-bottom: 0;
}
}
.card {
display: flex;
flex-direction: column;
border-radius: 1rem;
& > figure {
aspect-ratio: 3/2;
width: 100%;
border-radius: 1rem;
}
& > img, & figure > img {
transition-duration: 150ms;
transition-property: all;
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
border-radius: 1rem;
aspect-ratio: 3/2;
width: 100%;
overflow: hidden;
object-fit: cover;
&:hover {
box-shadow:
0 10px 15px -3px rgba(0, 0, 0, 0.1),
0 4px 6px -4px rgba(0, 0, 0, 0.1);
}
}
& > div {
display: flex;
flex: 1 1 auto;
flex-direction: column;
gap: 0.75rem;
padding: 1rem;
& > h2 {
font-weight: 600;
font-size: 1.125rem;
line-height: 1.375;
}
& > p {
color: var(--text-2);
font-size: 0.875rem;
line-height: 1.25rem;
}
}
}
.gallery-item {
cursor: zoom-in;
}
.hidden {
display: none;
}
.group[aria-expanded="true"] {
.group-aria-expanded\:block {
display: block;
}
.group-aria-expanded\:hidden {
display: none;
}
}
section.social-icons {
display: flex;
flex-wrap: wrap;
gap: 1.5rem;
justify-content: center;
margin-top: 2rem;
padding-right: 1.5rem;
padding-left: 1.5rem;
}
section.featured {
margin: 3rem auto 4rem;
padding-right: 1.5rem;
padding-left: 1.5rem;
max-width: 1280px;
color: var(--text-1-dark);
}
.featured-card {
display: flex;
box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
border-radius: 1rem;
background-position: center;
background-size: cover;
aspect-ratio: 1 / 1;
width: 100%;
overflow: hidden;
transition-duration: 150ms;
transition-property: all;
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
@media (min-width: 640px) {
aspect-ratio: 16/9;
}
& > div {
display: flex;
flex-direction: column;
justify-content: flex-end;
gap: 1rem;
background-image: linear-gradient(to top, RGB(0 0 0 / 0.8) 10%, transparent 50%);
padding: 1.5rem;
width: 100%;
height: 100%;
& > h2 {
font-weight: 700;
font-size: 1.5rem;
line-height: 1.25;
@media (min-width: 768px) {
font-size: 1.875rem;
line-height: 2.25rem;
}
}
& > p {
font-size: 0.875rem;
line-height: 1.25rem;
}
}
&:hover {
box-shadow:
0 10px 15px -3px rgba(0, 0, 0, 0.1),
0 4px 6px -4px rgba(0, 0, 0, 0.1);
}
}
nav.categories {
padding-right: 1.5rem;
padding-left: 1.5rem;
margin-top: 2rem;
& > ul {
display: flex;
flex-direction: row;
justify-content: center;
gap: 0.75rem;
flex-wrap: wrap;
li {
max-width: 100%;
& > a {
display: block;
padding: 0.5rem 0.75rem;
border-radius: 9999px;
border: 1px solid var(--text-2);
font-size: 0.875rem;
line-height: 1.25rem;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
@media (min-width: 640px) {
padding: 0.75rem 1rem;
font-size: 1rem;
}
}
}
}
}

View File

@@ -0,0 +1 @@
/* custom.css */

View File

@@ -0,0 +1,20 @@
@import "normalize";
@import "colors";
@import "styles";
@import "photoswipe/photoswipe";
@import "photoswipe/photoswipe-dynamic-caption-plugin";
@import "custom";
.lazyload,
.lazyloading {
opacity: 0;
}
.lazyloaded {
opacity: 1;
transition: opacity 300ms;
}
img.lazyload:not([src]) {
visibility: hidden;
}

View File

@@ -0,0 +1,52 @@
.pswp__dynamic-caption {
color: #fff;
position: absolute;
width: 100%;
left: 0;
top: 0;
transition: opacity 120ms linear !important; /* override default */
}
.pswp-caption-content {
display: none;
}
.pswp__dynamic-caption a {
color: #fff;
}
.pswp__dynamic-caption--faded {
opacity: 0 !important;
}
.pswp__dynamic-caption--aside {
width: auto;
max-width: 300px;
padding: 20px 15px 20px 20px;
margin-top: 70px;
}
.pswp__dynamic-caption--below {
width: auto;
max-width: 700px;
padding: 15px 0 0;
}
.pswp__dynamic-caption--on-hor-edge {
padding-left: 15px;
padding-right: 15px;
}
.pswp__dynamic-caption--mobile {
width: 100%;
background: rgba(0,0,0,0.5);
padding: 10px 15px;
right: 0;
bottom: 0;
/* override styles that were set via JS.
as they interfere with size measurement */
top: auto !important;
left: 0 !important;
}

View File

@@ -0,0 +1,420 @@
/*! PhotoSwipe main CSS by Dmytro Semenov | photoswipe.com */
.pswp {
--pswp-bg: #000;
--pswp-placeholder-bg: #222;
--pswp-root-z-index: 100000;
--pswp-preloader-color: rgba(79, 79, 79, 0.4);
--pswp-preloader-color-secondary: rgba(255, 255, 255, 0.9);
/* defined via js:
--pswp-transition-duration: 333ms; */
--pswp-icon-color: #fff;
--pswp-icon-color-secondary: #4f4f4f;
--pswp-icon-stroke-color: #4f4f4f;
--pswp-icon-stroke-width: 2px;
--pswp-error-text-color: var(--pswp-icon-color);
}
/*
Styles for basic PhotoSwipe (pswp) functionality (sliding area, open/close transitions)
*/
.pswp {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: var(--pswp-root-z-index);
display: none;
touch-action: none;
outline: 0;
opacity: 0.003;
contain: layout style size;
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}
/* Prevents focus outline on the root element,
(it may be focused initially) */
.pswp:focus {
outline: 0;
}
.pswp * {
box-sizing: border-box;
}
.pswp img {
max-width: none;
}
.pswp--open {
display: block;
}
.pswp,
.pswp__bg {
transform: translateZ(0);
will-change: opacity;
}
.pswp__bg {
opacity: 0.005;
background: var(--pswp-bg);
}
.pswp,
.pswp__scroll-wrap {
overflow: hidden;
}
.pswp__scroll-wrap,
.pswp__bg,
.pswp__container,
.pswp__item,
.pswp__content,
.pswp__img,
.pswp__zoom-wrap {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
}
.pswp__img,
.pswp__zoom-wrap {
width: auto;
height: auto;
}
.pswp--click-to-zoom.pswp--zoom-allowed .pswp__img {
cursor: -webkit-zoom-in;
cursor: -moz-zoom-in;
cursor: zoom-in;
}
.pswp--click-to-zoom.pswp--zoomed-in .pswp__img {
cursor: move;
cursor: -webkit-grab;
cursor: -moz-grab;
cursor: grab;
}
.pswp--click-to-zoom.pswp--zoomed-in .pswp__img:active {
cursor: -webkit-grabbing;
cursor: -moz-grabbing;
cursor: grabbing;
}
/* :active to override grabbing cursor */
.pswp--no-mouse-drag.pswp--zoomed-in .pswp__img,
.pswp--no-mouse-drag.pswp--zoomed-in .pswp__img:active,
.pswp__img {
cursor: -webkit-zoom-out;
cursor: -moz-zoom-out;
cursor: zoom-out;
}
/* Prevent selection and tap highlights */
.pswp__container,
.pswp__img,
.pswp__button,
.pswp__counter {
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
.pswp__item {
/* z-index for fade transition */
z-index: 1;
overflow: hidden;
}
.pswp__hidden {
display: none !important;
}
/* Allow to click through pswp__content element, but not its children */
.pswp__content {
pointer-events: none;
}
.pswp__content > * {
pointer-events: auto;
}
/*
PhotoSwipe UI
*/
/*
Error message appears when image is not loaded
(JS option errorMsg controls markup)
*/
.pswp__error-msg-container {
display: grid;
}
.pswp__error-msg {
margin: auto;
font-size: 1em;
line-height: 1;
color: var(--pswp-error-text-color);
}
/*
class pswp__hide-on-close is applied to elements that
should hide (for example fade out) when PhotoSwipe is closed
and show (for example fade in) when PhotoSwipe is opened
*/
.pswp .pswp__hide-on-close {
opacity: 0.005;
will-change: opacity;
transition: opacity var(--pswp-transition-duration) cubic-bezier(0.4, 0, 0.22, 1);
z-index: 10; /* always overlap slide content */
pointer-events: none; /* hidden elements should not be clickable */
}
/* class pswp--ui-visible is added when opening or closing transition starts */
.pswp--ui-visible .pswp__hide-on-close {
opacity: 1;
pointer-events: auto;
}
/* <button> styles, including css reset */
.pswp__button {
position: relative;
display: block;
width: 50px;
height: 60px;
padding: 0;
margin: 0;
overflow: hidden;
cursor: pointer;
background: none;
border: 0;
box-shadow: none;
opacity: 0.85;
-webkit-appearance: none;
-webkit-touch-callout: none;
}
.pswp__button:hover,
.pswp__button:active,
.pswp__button:focus {
transition: none;
padding: 0;
background: none;
border: 0;
box-shadow: none;
opacity: 1;
}
.pswp__button:disabled {
opacity: 0.3;
cursor: auto;
}
.pswp__icn {
fill: var(--pswp-icon-color);
color: var(--pswp-icon-color-secondary);
}
.pswp__icn {
position: absolute;
top: 14px;
left: 9px;
width: 32px;
height: 32px;
overflow: hidden;
pointer-events: none;
}
.pswp__icn-shadow {
stroke: var(--pswp-icon-stroke-color);
stroke-width: var(--pswp-icon-stroke-width);
fill: none;
}
.pswp__icn:focus {
outline: 0;
}
/*
div element that matches size of large image,
large image loads on top of it,
used when msrc is not provided
*/
div.pswp__img--placeholder,
.pswp__img--with-bg {
background: var(--pswp-placeholder-bg);
}
.pswp__top-bar {
position: absolute;
left: 0;
top: 0;
width: 100%;
height: 60px;
display: flex;
flex-direction: row;
justify-content: flex-end;
z-index: 10;
/* allow events to pass through top bar itself */
pointer-events: none !important;
}
.pswp__top-bar > * {
pointer-events: auto;
/* this makes transition significantly more smooth,
even though inner elements are not animated */
will-change: opacity;
}
/*
Close button
*/
.pswp__button--close {
margin-right: 6px;
}
/*
Arrow buttons
*/
.pswp__button--arrow {
position: absolute;
top: 0;
width: 75px;
height: 100px;
top: 50%;
margin-top: -50px;
}
.pswp__button--arrow:disabled {
display: none;
cursor: default;
}
.pswp__button--arrow .pswp__icn {
top: 50%;
margin-top: -30px;
width: 60px;
height: 60px;
background: none;
border-radius: 0;
}
.pswp--one-slide .pswp__button--arrow {
display: none;
}
/* hide arrows on touch screens */
.pswp--touch .pswp__button--arrow {
visibility: hidden;
}
/* show arrows only after mouse was used */
.pswp--has_mouse .pswp__button--arrow {
visibility: visible;
}
.pswp__button--arrow--prev {
right: auto;
left: 0px;
}
.pswp__button--arrow--next {
right: 0px;
}
.pswp__button--arrow--next .pswp__icn {
left: auto;
right: 14px;
/* flip horizontally */
transform: scale(-1, 1);
}
/*
Zoom button
*/
.pswp__button--zoom {
display: none;
}
.pswp--zoom-allowed .pswp__button--zoom {
display: block;
}
/* "+" => "-" */
.pswp--zoomed-in .pswp__zoom-icn-bar-v {
display: none;
}
/*
Loading indicator
*/
.pswp__preloader {
position: relative;
overflow: hidden;
width: 50px;
height: 60px;
margin-right: auto;
}
.pswp__preloader .pswp__icn {
opacity: 0;
transition: opacity 0.2s linear;
animation: pswp-clockwise 600ms linear infinite;
}
.pswp__preloader--active .pswp__icn {
opacity: 0.85;
}
@keyframes pswp-clockwise {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}
/*
"1 of 10" counter
*/
.pswp__counter {
height: 30px;
margin-top: 15px;
margin-inline-start: 20px;
font-size: 14px;
line-height: 30px;
color: var(--pswp-icon-color);
text-shadow: 1px 1px 3px var(--pswp-icon-color-secondary);
opacity: 0.85;
}
.pswp--one-slide .pswp__counter {
display: none;
}