nfp_sites/filadelfia_web/public/index.html

498 lines
8.2 KiB
HTML
Raw Normal View History

2023-11-09 09:44:04 +00:00
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Filadelfia web portal</title>
<base href="/">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="icon" type="image/png" href="/favicon.png">
<style>
[hidden] { display: none !important; }
:root {
--bg: #fff;
--bg-component: #f3f7ff;
2023-11-14 07:27:04 +00:00
--bg-component-half: #f3f7ff77;
2023-11-09 09:44:04 +00:00
--bg-component-alt: #ffd99c;
--color: #031131;
2023-11-20 07:12:08 +00:00
--color-alt: #7a9ad3;
2023-11-09 09:44:04 +00:00
--main: #1066ff;
--main-fg: #fff;
--error: red;
--error-bg: hsl(0, 75%, 80%);
}
/* Box sizing rules */
*, *::before, *::after { box-sizing: border-box;
}
/* Remove default margin */
body, h1, h2, h3, h4, p, figure, blockquote, dl, dd {
margin: 0;
}
body {
min-height: 100vh;
text-rendering: optimizeSpeed;
line-height: 1.5;
font-size: 16px;
font-family: 'Inter var', Helvetica, Arial, sans-serif;
font-variation-settings: "slnt" 0;
font-feature-settings: "case", "frac", "tnum", "ss02", "calt", "ccmp", "kern";
background: var(--bg);
color: var(--color);
display: flex;
flex-direction: column;
}
.italic { font-variation-settings: "slnt" 10deg; }
input, button, textarea, select {
font: inherit;
}
h1 {
font-size: 1.88rem;
}
h2 {
font-size: 1.66rem;
}
h3 {
font-size: 1.44rem;
}
h4 {
font-size: 1.22rem;
}
h5 {
font-size: 1.0rem;
}
a, a:visited, button {
text-decoration: underline;
border: none;
padding: 0;
margin: 0;
font-weight: bold;
cursor: pointer;
color: var(--main);
background: transparent;
}
input[type=text],
2023-11-15 04:43:05 +00:00
input[type=password],
input[type=datetime] {
2023-11-09 09:44:04 +00:00
border: 1px solid var(--main);
background: #fff;
color: var(--color);
border-radius: 0;
padding: 0.25rem;
line-height: 1rem;
outline: none;
width: 100%;
}
2023-11-20 07:12:08 +00:00
input[type=text]:disabled,
input[type=password]:disabled,
input[type=datetime]:disabled {
background: var(--bg-component);
border-color: var(--color-alt);
color: var(--color-alt);
}
.form-row input:disabled + button {
border-color: var(--color-alt);
}
.form-row {
display: flex;
position: relative;
}
.form-row input {
flex: 2 1 auto;
}
.form-row button {
min-width: 30px;
text-align: center;
border: 1px solid var(--main);
border-left: none;
background: var(--bg-component);
text-decoration: none;
}
.form-row .cover {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
opacity: 0;
cursor: pointer;
}
2023-11-09 09:44:04 +00:00
.button, input[type=submit] {
background: var(--main);
color:var(--main-fg);
border-radius: 10px;
padding: 0.25rem 1rem;
border: none;
margin: 1rem 0 2rem;
align-self: center;
cursor: pointer;
2023-11-20 07:12:08 +00:00
text-decoration: none;
2023-11-09 09:44:04 +00:00
}
.button.spinner, input[type=submit].spinner {
height: 2rem;
2023-11-20 07:12:08 +00:00
margin-top: 2rem;
2023-11-09 09:44:04 +00:00
margin-bottom: 1.5rem;
}
2023-11-20 07:12:08 +00:00
.button-alert {
background: var(--error-bg);
color: var(--color);
}
.loading-bar {
border: 1px solid var(--main);
background: var(--bg-component);
}
.loading-bar::after {
height: 1rem;
background: var(--main);
min-width: 1px;
content: '';
display: block;
width: var(--progress);
transition: width 3s;
}
2023-11-15 04:43:05 +00:00
input[type=text]:focus,
input[type=password]:focus,
input[type=datetime]:focus {
outline: 1px solid var(--main);
2023-11-09 09:44:04 +00:00
}
h1 {
margin-bottom: 1rem;
}
#main {
flex: 2 1 auto;
display: flex;
flex-direction: column;
}
2023-11-14 07:27:04 +00:00
.page {
flex: 2 1 auto;
display: flex;
flex-direction: column;
}
2023-11-09 09:44:04 +00:00
.modal {
flex: 2 1 auto;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
}
.modal h3 {
text-align: center;
margin-bottom: 1rem;
}
form p, label {
font-size: 0.75rem;
font-weight: 500;
2023-11-20 07:12:08 +00:00
margin: 0.75rem 0 0.5rem 0;
2023-11-09 09:44:04 +00:00
display: block;
}
2023-11-20 07:12:08 +00:00
form p.separator {
color: var(--color-alt);
margin-top: 1.5rem;
padding-bottom: 0.5rem;
border-bottom: 1px solid var(--color-alt);
}
2023-11-09 09:44:04 +00:00
.error {
color: var(--error);
}
.modal form {
background: var(--bg-component);
border-radius: 20px;
width: 100%;
max-width: 500px;
margin: 2rem;
padding: 1rem;
display: flex;
flex-direction: column;
}
.loading-spinner {
display: inline-block;
width: 80px;
height: 80px;
2023-11-20 07:12:08 +00:00
margin-top: 0.5rem;
2023-11-09 09:44:04 +00:00
align-self: center;
}
.loading-spinner:after {
content: " ";
display: block;
width: 64px;
height: 64px;
margin: 8px;
border-radius: 50%;
border: 6px solid var(--main);
border-color: var(--main) transparent var(--main) transparent;
animation: loading-spinner 1.2s linear infinite;
}
@keyframes loading-spinner {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
}
2023-11-20 07:12:08 +00:00
.page-upload {
background-repeat: no-repeat;
background-position: center;
background-size: cover;
}
.page-upload footer {
backdrop-filter: blur(10px);
background: var(--bg-component-half);
align-self: center;
padding: 0.25rem 2rem;
border-radius: 1rem;
margin-bottom: 1rem;
}
.avifsupport .page-upload {
background-image: url('./assets/bg_admin.avif');
}
.jpegonly .page-upload {
background-image: url('./assets/bg_admin.jpg');
}
2023-11-09 09:44:04 +00:00
/* Nav */
2023-11-20 07:12:08 +00:00
#header {
2023-11-09 09:44:04 +00:00
background: var(--bg-component);
2023-11-20 07:12:08 +00:00
}
#header nav,
#header .nav {
display: flex;
2023-11-09 09:44:04 +00:00
padding: 0.5rem 1rem 0.5rem 0;
}
#header nav a,
#header nav button {
margin-left: 1rem;
}
#header h4 {
flex: 2 1 auto;
}
#header h4 a,
#header h4 a:visited {
color: var(--color);
}
2023-11-15 04:43:05 +00:00
#header .change {
font-size: 1.2rem;
line-height: 2rem;
font-weight: normal;
padding: 0 0.5rem;
}
2023-11-09 09:44:04 +00:00
#header .logout,
#header .upload {
padding: 0.25rem 1.5rem;
border-radius: 2rem;
text-decoration: none;
}
#header .logout {
background: var(--bg-component-alt);
color: var(--color);
}
#header .upload {
background: var(--main);
color: var(--main-fg);
}
2023-11-20 07:12:08 +00:00
#header .nav {
overflow-x: hidden;
padding: 0.75rem 1rem 0.25rem;
min-height: 4rem;
align-items: flex-start;
border-bottom: 1px solid #0001;
}
#header .nav:hover {
overflow-x: auto;
}
#header .nav .inner {
flex: 2 1 auto;
display: flex;
justify-content: center;
}
#header .nav a {
margin: 0 0.25rem;
padding: 0.25rem 1.5rem;
border-radius: 3rem;
}
#header .nav a.empty {
opacity: 0.5;
}
#header .nav a.active {
background: var(--bg-component-alt);
color: var(--color);
text-decoration: none;
}
#header .error {
background: var(--error-bg);
color: var(--color);
font-size: 0.8rem;
text-align: center;
padding: 0.25rem;
cursor: pointer;
}
2023-11-09 09:44:04 +00:00
/* Main */
.full-error {
background: var(--error-bg);
color: var(--color);
font-size: 0.8rem;
text-align: center;
padding: 0.25rem;
cursor: pointer;
flex: 2 1 auto;
display: flex;
justify-content: center;
align-items: center;
}
2023-11-14 07:27:04 +00:00
footer {
text-align: center;
padding: 1rem;
}
footer a {
font-size: 0.8rem;
}
/* login */
2023-11-15 04:43:05 +00:00
.page-login form a {
text-align: center;
font-weight: normal;
}
2023-11-14 07:27:04 +00:00
.page-login {
background-repeat: no-repeat;
background-position: center;
background-size: cover;
}
.page-login .modal form {
backdrop-filter: blur(10px);
background: var(--bg-component-half);
}
.avifsupport .page-login {
background-image: url('./assets/bg.avif');
}
.jpegonly .page-login {
background-image: url('./assets/bg.jpg');
}
2023-11-20 07:12:08 +00:00
/* browse */
.gallery {
margin: 1rem;
display: flex;
flex-direction: column;
}
.gallery-year {
margin: 1rem;
padding: 0 0 1rem;
border-bottom: 1px solid var(--main);
text-align: center;
font-size: 2rem;
}
.gallery-month {
margin: 0rem 1rem 1rem;
font-size: 1.2rem;
border-bottom: 1px solid #0003;
}
.gallery .group {
display: flex;
flex-wrap: wrap;
}
.gallery .group a {
width: 40vw;
max-width: 320px;
aspect-ratio: 16 / 9;
display: flex;
flex-direction: column;
justify-content: flex-end;
background: url('./assets/placeholder.avif') center no-repeat;
background-size: cover;
padding: 1rem;
margin: 0 1rem 1rem;
text-align: center;
border: 1px solid var(--main);
text-shadow: 2px 0 10px #fffc, -2px 0 10px #fffc, 0 2px 10px #fffc, 0 -2px 10px #fffc,
1px 1px 10px #fffc, -1px -1px 10px #fffc, 1px -1px 10px #fffc, -1px 1px 10px #fffc;
}
/* Player */
.player {
background: black;
text-align: center;
margin-bottom: 1rem;
}
.player video {
margin: 0 auto;
width: 1280px;
max-width: 100vw;
aspect-ratio: 16 / 9;
}
2023-11-14 07:27:04 +00:00
2023-11-09 09:44:04 +00:00
</style>
</head>
<body>
<div id="header"></div>
<main id="main"></main>
<script type="text/javascript" src="/assets/app.js?v=2"></script>
</body>
</html>