Website markup and design

This commit is contained in:
Anna-Sara Sélea 2025-10-30 13:38:14 +01:00
parent 2f8554da6f
commit 5bafdd180c
37 changed files with 3298 additions and 69 deletions

848
package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -7,8 +7,11 @@
"@testing-library/react": "^13.4.0", "@testing-library/react": "^13.4.0",
"@testing-library/user-event": "^13.5.0", "@testing-library/user-event": "^13.5.0",
"react": "^18.3.1", "react": "^18.3.1",
"react-alice-carousel": "^2.9.1",
"react-dom": "^18.3.1", "react-dom": "^18.3.1",
"react-multi-carousel": "^2.8.5",
"react-scripts": "5.0.1", "react-scripts": "5.0.1",
"sass": "^1.80.6",
"web-vitals": "^2.1.4" "web-vitals": "^2.1.4"
}, },
"scripts": { "scripts": {

View file

@ -27,8 +27,11 @@
<title>React App</title> <title>React App</title>
</head> </head>
<body> <body>
<noscript>You need to enable JavaScript to run this app.</noscript> <noscript>You need to enable JavaScript to run this app.</noscript>
<div id="root"></div> <div id="root">
</div>
<!-- <!--
This HTML file is a template. This HTML file is a template.
If you open it directly in the browser, you will see an empty page. If you open it directly in the browser, you will see an empty page.

View file

@ -1,38 +0,0 @@
.App {
text-align: center;
}
.App-logo {
height: 40vmin;
pointer-events: none;
}
@media (prefers-reduced-motion: no-preference) {
.App-logo {
animation: App-logo-spin infinite 20s linear;
}
}
.App-header {
background-color: #282c34;
min-height: 100vh;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
font-size: calc(10px + 2vmin);
color: white;
}
.App-link {
color: #61dafb;
}
@keyframes App-logo-spin {
from {
transform: rotate(0deg);
}
to {
transform: rotate(360deg);
}
}

View file

@ -1,23 +1,51 @@
import logo from './logo.svg';
import './App.css'; import {useState, useEffect} from 'react';
import Navbar from './blocks/Navbar';
import Footer from './blocks/Footer';
import StartSection from './blocks/StartSection';
import AboutSection from './blocks/AboutSection';
import Glow from './components/Glow';
import InventorySection from './blocks/InventorySection';
import MemberSection from './blocks/MemberSection';
function App() { function App() {
const [opacity, setOpacity] = useState(1);
const rate = 0.5; // lower = faster fade
document.addEventListener('scroll', () => {
setOpacity(100/window.scrollY*rate);
});
//useEffect(() => {
// const svg = document.querySelector('svg#route');
// const path = svg.querySelector('#path');
// const scroll = () => {
// const distance = window.scrollY;
// const totalDistance = svg.clientHeight - window.innerHeight;
// const percentage = distance /totalDistance;
// const pathLength = path.getTotalLength();
// path.style.strokeDasharray = `${pathLength}`;
// path.style.strokeDashoffset = `${pathLength * (1 - percentage)}`;
// }
// scroll();
// window.addEventListener('scroll', scroll);
//}, []);
return ( return (
<div className="App"> <div className="App">
<header className="App-header"> <Glow opacity={opacity} />
<img src={logo} className="App-logo" alt="logo" /> <Navbar />
<p> <StartSection opacity={opacity}/>
Edit <code>src/App.js</code> and save to reload. <AboutSection />
</p> <MemberSection />
<a <InventorySection />
className="App-link" <Footer />
href="https://reactjs.org"
target="_blank"
rel="noopener noreferrer"
>
Learn React
</a>
</header>
</div> </div>
); );
} }

View file

@ -0,0 +1 @@
<?xml version="1.0" ?><svg viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg"><title/><g data-name="discord group forum message" id="discord_group_forum_message"><path d="M9.82,17.41a3.1,3.1,0,0,0,2.9,3.26,3.1,3.1,0,0,0,2.89-3.26,3.11,3.11,0,0,0-2.89-3.27A3.11,3.11,0,0,0,9.82,17.41Zm3.79,0c0,.68-.41,1.26-.89,1.26s-.9-.58-.9-1.26.41-1.27.9-1.27S13.61,16.72,13.61,17.41Z"/><path d="M19.28,14.14a3.11,3.11,0,0,0-2.89,3.27,3.1,3.1,0,0,0,2.89,3.26,3.1,3.1,0,0,0,2.9-3.26A3.11,3.11,0,0,0,19.28,14.14Zm0,4.53c-.48,0-.89-.58-.89-1.26s.41-1.27.89-1.27.9.58.9,1.27S19.77,18.67,19.28,18.67Z"/><path d="M26.63,10.53l-.07-.09s0-.07,0-.1a12.15,12.15,0,0,0-6.8-4.15,1,1,0,1,0-.48,1.94,10.19,10.19,0,0,1,5.65,3.39A24.87,24.87,0,0,1,27,21.33a10,10,0,0,1-5,2.52v-.43s0-.05,0-.08a13.48,13.48,0,0,0,3.43-1.95,1,1,0,0,0-1.25-1.57A12.83,12.83,0,0,1,16,22.42a12.83,12.83,0,0,1-8.11-2.6,1,1,0,0,0-1.25,1.57,13.36,13.36,0,0,0,3.41,1.95v.51a10,10,0,0,1-5-2.52,24.87,24.87,0,0,1,2.09-9.81,10.19,10.19,0,0,1,5.65-3.39,1,1,0,0,0-.48-1.94,12.15,12.15,0,0,0-6.8,4.15s0,.07,0,.1l-.07.09c-1.94,4-2.16,7.65-2.37,11.14a1,1,0,0,0,.29.77A12,12,0,0,0,11,26h0a1,1,0,0,0,.7-.29,1,1,0,0,0,.3-.71V24A17.56,17.56,0,0,0,20,24v1a1,1,0,0,0,.3.71A1,1,0,0,0,21,26h0a12,12,0,0,0,7.74-3.51,1,1,0,0,0,.29-.77C28.79,18.18,28.57,14.57,26.63,10.53Z"/><path d="M23.49,11.72a1,1,0,0,0-.43-1.35A15.47,15.47,0,0,0,16,8.87a15.47,15.47,0,0,0-7.06,1.5,1,1,0,0,0-.43,1.35,1,1,0,0,0,1.35.42A13.55,13.55,0,0,1,16,10.87a13.55,13.55,0,0,1,6.14,1.27,1,1,0,0,0,.46.12A1,1,0,0,0,23.49,11.72Z"/></g></svg>

After

Width:  |  Height:  |  Size: 1.5 KiB

View file

@ -0,0 +1,3 @@
<?xml version="1.0" ?><svg id="Layer_1" style="enable-background:new 0 0 64 64;" version="1.1" viewBox="0 0 64 64" xml:space="preserve" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><style type="text/css">
.st0{fill:none;stroke:#000000;stroke-width:4;stroke-linecap:round;stroke-linejoin:round;}
</style><title/><g><path class="st0" d="M36.3125,26.243055h8.625v8.625002h-8.625v20.125h-8.625v-20.125h-8.625v-8.625002h8.625V22.63493v-2.417885 c0-6.198838,5.02515-11.223989,11.223991-11.223989h0.000008H44.9375v8.625h-6.037502 c-1.429035,0-2.587498,1.158463-2.587498,2.5875V26.243055z"/></g></svg>

After

Width:  |  Height:  |  Size: 631 B

View file

@ -0,0 +1,7 @@
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<!-- Uploaded to: SVG Repo, www.svgrepo.com, Transformed by: SVG Repo Mixer Tools -->
<svg width="800px" height="800px" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" stroke="#fff">
<g id="SVGRepo_bgCarrier" stroke-width="0"/>
<g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round"/>
<g id="SVGRepo_iconCarrier"> <path fill-rule="evenodd" clip-rule="evenodd" d="M4 5C3.44772 5 3 5.44772 3 6C3 6.55228 3.44772 7 4 7H20C20.5523 7 21 6.55228 21 6C21 5.44772 20.5523 5 20 5H4ZM7 12C7 11.4477 7.44772 11 8 11H20C20.5523 11 21 11.4477 21 12C21 12.5523 20.5523 13 20 13H8C7.44772 13 7 12.5523 7 12ZM13 18C13 17.4477 13.4477 17 14 17H20C20.5523 17 21 17.4477 21 18C21 18.5523 20.5523 19 20 19H14C13.4477 19 13 18.5523 13 18Z" fill="#fff"/> </g>
</svg>

After

Width:  |  Height:  |  Size: 889 B

1
src/assets/icon/mail.svg Normal file
View file

@ -0,0 +1 @@
<?xml version="1.0" ?><svg viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg"><title/><g data-name="mail email e-mail letter" id="mail_email_e-mail_letter"><path d="M28,13a1,1,0,0,0-1,1v8a1,1,0,0,1-1,1H6a1,1,0,0,1-1-1V14a1,1,0,0,0-2,0v8a3,3,0,0,0,.88,2.12A3,3,0,0,0,6,25H26a3,3,0,0,0,2.12-.88A3,3,0,0,0,29,22V14A1,1,0,0,0,28,13Z"/><path d="M15.4,18.8a1,1,0,0,0,1.2,0L28.41,9.94a1,1,0,0,0,.3-1.23,3.06,3.06,0,0,0-.59-.83A3,3,0,0,0,26,7H6a3,3,0,0,0-2.12.88,3.06,3.06,0,0,0-.59.83,1,1,0,0,0,.3,1.23ZM6,9H26a.9.9,0,0,1,.28,0L16,16.75,5.72,9A.9.9,0,0,1,6,9Z"/></g></svg>

After

Width:  |  Height:  |  Size: 569 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 118 KiB

BIN
src/assets/img/lan.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 442 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 49 KiB

View file

@ -0,0 +1,79 @@
import Timer from '../components/Timer';
import {useEffect, useState} from 'react';
const AboutSection = () => {
const [opacity, setOpacity] = useState(0);
useEffect( () => {
let callback = (entries, observer) => {
entries.forEach(entry => {
if (entry.isIntersecting) {
setOpacity(1);
} else {
setOpacity(0);
}
});
};
const observer = new IntersectionObserver(callback);
const observed = document.getElementById("about-glow");
observer.observe(observed);
}, [])
return (
<section id="about-section" className="about-section">
<div className="about-section__container">
<div className='about-section__text-box'>
<div id="about-glow" className="about-section__glow" style={{opacity: opacity}}></div>
<h2>Om vBytes</h2>
<p>Föreningen vBytes etablerades Oktober 2020. vBytes står för Viskaforsbygdens Teknik- Elektronik och Spelförening. Vi är anslutna till SVEROK. </p>
<p>Vi vill vara en mötesplats för spel och teknikintresserade i Viskaforsbygden.
Medlemskapet är gratis och föreningen och dess verksamheter drivs ideellt.
Flera av verksamheterna riktar sig mot barn- och ungdomar, men det finns inga åldersgränser för medlemskapet i föreningen.
vBytes är till för alla som delar ett liknande intresse.</p>
<p>Vi har idag tre återkommande verksamheter:</p>
<ul>
<li>LAN</li>
<li>OpenMakers</li>
<li>Aktiviteter mötesplatsen</li>
</ul>
</div>
<div className="image-box">
<div className="box">
<div className="spin-container">
<div className="shape">
<div className="bd"> </div>
</div>
</div>
</div>
</div>
</div>
<div className='about-section__activities'>
<h2>Våra återkommande aktiviteter</h2>
<div className='activities-container'>
<div className="glowing-box"><h3>Makerspace</h3>
<p>Makerspace är en kreativ miljö, precis som en studio eller en verkstad, där man tillsammans skapar uppfinningar, plockar isär saker, löser problem eller bara skapar saker för att det är roligt. I vårt Makerspace har du tillgång till material, 3d-skrivare,
elektronik, mikrokontrollers, mätinstrument, datorer, skrivare, pyssel och varierande verktyg som gör det lättare att skapa saker.</p>
<p>Makerskvällar och kurser anordnars inom olika områden</p>
</div>
<div className="glowing-box"><h3>LAN</h3>
<p>24 timmar LAN-partys sker två gånger per år. Under LAN:et anordnas det olika former av turneringar och tävlingar. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.</p>
<p className='next-lan'>Nästa LAN</p>
<Timer />
</div>
<div className="glowing-box"><h3>Aktiviteter mötesplatsen</h3>
<p>Vår mötesplats som ligger i anslutning till Makerspace skall kunna fungera som en social träffpunkt. Mötesplatsen skall kunna användas spontant, exempelvis när du och dina kompisar vill spela ett parti roll- eller bordsspel.
Mötesplatsen kan också användas kring speciella evenemang.</p>
<p>Spelkvällar anordnas några gånger per år.</p>
</div>
</div>
</div>
</section>
);
};
export default AboutSection;

31
src/blocks/Footer.jsx Normal file
View file

@ -0,0 +1,31 @@
import Facebook from "../assets/icon/facebook.svg";
import Discord from "../assets/icon/discord.svg";
import Mail from "../assets/icon/mail.svg";
const Footer = () => {
return (
<footer id="Contact">
<div className="FooterContainer">
<div className='first'>
<h2>vBytes</h2>
<p>vBytes står för Viskaforsbygdens Teknik- Elektronik och Spelförening. </p>
<p>Vi vill vara en mötesplats för spel och teknikintresserade i Viskaforsbygden.</p>
<div className='SocialMedia'>
<a href='https://discord.gg/meEYUcmR'><img src={Discord} alt=""/></a>
<a href='https://www.facebook.com/groups/vbytes/'><img src={Facebook} alt=""/></a>
<a href='mailto:styrelsen@vbytes.se'><img src={Mail} alt=""/></a>
</div>
<p>
Varbergsvägen 79, 515 34 Viskafors
</p>
</div>
<div>
</div>
</div>
</footer>
);
};
export default Footer;

View file

@ -0,0 +1,57 @@
import {useEffect, useState} from 'react';
const InventorySection = () => {
const [opacity, setOpacity] = useState(0);
useEffect( () => {
let callback = (entries, observer) => {
entries.forEach(entry => {
if (entry.isIntersecting) {
setOpacity(1);
} else {
setOpacity(0);
}
});
};
const observer = new IntersectionObserver(callback);
const observed = document.getElementById("inventoryGlow");
observer.observe(observed);
}, [])
return (
<section id="InventorySection" className="InventorySection">
<div id="inventoryGlow" className="glow" style={{opacity: opacity}}></div>
<div className="FlexContainer">
<div className='BigDiv'>
<h2>Bibliotek för spel och litteratur</h2>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore
magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. </p>
<p>Quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.</p>
<a href="https://boka.vbytes.se/boka" target="_blank" class='glowing-btn'><span class='glowing-txt'>Låna spel</span></a>
</div>
<div class="image-box
">
<div class="box">
<div class="spin-container">
<div class="shape">
<div class="bd"> </div>
</div>
</div>
</div>
</div>
</div>
</section>
);
};
export default InventorySection;

260
src/blocks/LanForm.jsx Normal file
View file

@ -0,0 +1,260 @@
import Checkbox from '@/Components/Checkbox';
import TextInput from '@/Components/TextInput';
import { Head, useForm } from '@inertiajs/react';
import { FormEventHandler, useState } from 'react';
import Timer from "@/Components/Timer";
const LanForm = ({opacity}) => {
const [showForm, setShowForm] = useState(true)
const [type, setType] = useState();
const [member, setMember] = useState();
const { data, setData, post, processing, errors, reset } = useForm({
member: 0,
first_name: '',
surname: '',
grade: '',
phone: '',
email: '',
guardian_name: '',
guardian_phone: '',
participating_type: '',
gdpr: '',
friends: '',
special_diet: '',
});
const RadioInput = ({label, value, checked, setter}) => {
return (
<label>
<input type="radio" checked={checked == value}
onChange={() => (setter(value), setData('participating_type', value))} />
<span>{label}</span>
</label>
);
};
const RadioMember = ({label, value, checked, setter}) => {
return (
<label>
<input type="radio" checked={checked == value}
onChange={() => (setter(value), setData('member', value))} />
<span>{label}</span>
</label>
);
};
const submit = (e) => {
e.preventDefault()
post(route('register_participant'), {
onFinish: () => reset(),
});
}
return (
<section id="LanForm" className="LanForm">
<h1>
vBytes LAN
</h1>
{ ! showForm && <Timer />}
{showForm &&
<form onSubmit={submit}>
<p>Är du medlem i Vbytes? Medlemsskap krävs för att delta lanet. Är du inte medlem i föreningen blir du det www.vbytes.se</p>
<div className="field">
<label className="label">Är du medlem i vBytes?</label>
<div className="control">
<RadioMember label="Ja" value="0" checked={member} setter={setMember} />
<RadioMember label="Nej" value="1" checked={member} setter={setMember} />
</div>
</div>
<div className="field">
<label className="label">Deltagarens förnamn</label>
<div className="control">
<TextInput
required
className="input"
type="text"
name="first_name"
value={data.first_name}
//placeholder="Förnamn"
onChange={(e) => setData('first_name', e.target.value)}
/>
</div>
</div>
<div className="field">
<label className="label">Deltagarens efternamn</label>
<div className="control">
<TextInput
required
className="input"
type="text"
name="surname"
value={data.surname}
//placeholder="Namn"
onChange={(e) => setData('surname', e.target.value)}
/>
</div>
</div>
<div className="field">
<label className="label">Jag går i klass:</label>
<div className="control">
<TextInput
required
className="input"
type="text"
name="grade"
value={data.grade}
//placeholder="Namn"
onChange={(e) => setData('grade', e.target.value)}
/>
</div>
</div>
<div className="field">
<label className="label">Mobilnummer deltagare</label>
<div className="control">
<TextInput
className="input"
type="text"
name="phone"
value={data.phone}
//placeholder="Namn"
onChange={(e) => setData('phone', e.target.value)}
/>
</div>
</div>
<div className="field">
<label className="label">E-post deltagare</label>
<div className="control">
<TextInput
className="input"
type="text"
name="email"
value={data.email}
//placeholder="Namn"
onChange={(e) => setData('email', e.target.value)}
/>
</div>
</div>
<div className="field">
<label className="label">Vårnadshavares namn</label>
<div className="control">
<TextInput
required
className="input"
type="text"
name="guardian_name"
value={data.guardian_name}
//placeholder="Namn"
onChange={(e) => setData('guardian_name', e.target.value)}
/>
</div>
</div>
<div className="field">
<label className="label">Vårnadshavares epost</label>
<div className="control">
<TextInput
required
className="input"
type="text"
name="guardian_email"
value={data.guardian_email}
//placeholder="Namn"
onChange={(e) => setData('guardian_email', e.target.value)}
/>
</div>
</div>
<div className="field">
<label className="label">Vårnadshavares telefonnummer</label>
<div className="control">
<TextInput
required
className="input"
type="text"
name="guardian_phone"
value={data.guardian_phone}
//placeholder="Namn"
onChange={(e) => setData('guardian_phone', e.target.value)}
/>
</div>
</div>
<div className="field">
<label className="label">LAN-plats eller besöksplats</label>
<div className="control">
<RadioInput label="LAN" value="lan" checked={type} setter={setType} />
<RadioInput label="Besök" value="besök" checked={type} setter={setType} />
</div>
</div>
<div className="field">
<label className="label">Kompisar</label>
<div className="control">
<TextInput
className="input"
type="text"
name="friends"
value={data.friends}
//placeholder="Namn"
onChange={(e) => setData('friends', e.target.value)}
/>
</div>
</div>
<div className="field">
<label className="label">Specialkost</label>
<div className="control">
<TextInput
className="input"
type="text"
name="special_diet"
value={data.special_diet}
//placeholder="Namn"
onChange={(e) => setData('special_diet', e.target.value)}
/>
</div>
</div>
<div className="field">
<div className="control">
<label className="checkbox">
<Checkbox
required
type="checkbox"
name="gdpr"
checked={data.gdpr}
onChange={(e) =>
setData(
'gdpr',
(e.target.checked || false),
)
}
/>
<span> GDPR</span>
</label>
</div>
</div>
<div className="field">
<div className="control">
<label className="checkbox">
<Checkbox type="checkbox" required/>
<span> Jag accepterar reglerna.</span>
</label>
</div>
</div>
<div className="field is-grouped btn">
<span class="btn__inner">
<span class="btn__label" data-label="Anmäl" data-hover="Go for it 🚀">
<span class="btn__label__background"></span>
</span>
</span>
<span class="btn__background"></span>
</div>
</form>
}
</section>
);
};
export default LanForm;

View file

@ -0,0 +1,55 @@
import {useEffect, useState} from 'react';
const MemberSection = () => {
const [opacity, setOpacity] = useState(0);
useEffect( () => {
let callback = (entries, observer) => {
entries.forEach(entry => {
if (entry.isIntersecting) {
setOpacity(1);
} else {
setOpacity(0);
}
});
};
const observer = new IntersectionObserver(callback);
const observed = document.getElementById("memberGlow");
observer.observe(observed);
}, [])
return (
<section id="MemberSection" className="MemberSection">
<div id="memberGlow" className="glow" style={{opacity: opacity}}></div>
<div className="FlexContainer">
<div class="image-box">
<div class="box">
<div class="spin-container">
<div class="shape">
<div class="bd"></div>
</div>
</div>
</div>
</div>
<div className='BigDiv'>
<h2>Bli medlem</h2>
<p>Medlemskapet är gratis. För att kunna delta i våra evenemang, använda våra lokaler och
verksamheter behöver du bli medlem i föreningen. Är du omyndig måste du även ange kontaktuppgifter
till din vårdnadshavare. Medlemskapet kan avbrytas när som helst. </p>
<p>Som medlen får du tillgång till vår lokal och spel och kan delta i våra aktiviteter kring LAN, Makerskvällar,
dokumentär- och filmkvällar och utbildningstillfällen som handlar om elektronik och programmering.</p>
<p>Antalet deltagare i specifika evenemang och aktiviteter kan vara begränsade grund av utrymmes- och bemanningsskäl.
Det är en god ide att vara snabb anmälan när annonserna väl kommer ut.</p>
<a href="https://ebas.sverok.se/blimedlem/22393" target="_blank" className='glowing-btn'><span className='glowing-txt'>Bli medlem</span></a>
</div>
</div>
</section>
);
};
export default MemberSection;

60
src/blocks/Navbar.jsx Normal file
View file

@ -0,0 +1,60 @@
import { useState, useEffect } from 'react';
import Facebook from "../assets/icon/facebook.svg";
import Discord from "../assets/icon/discord.svg";
import Mail from "../assets/icon/mail.svg";
import Logo from "../assets/img/vbytes-logo.png";
const Navbar = () => {
const [isOpen, setIsOpen] = useState(false);
const [scrollPosition, setScrollPosition] = useState(0);
const toggleNavbar = () => {
setIsOpen((prevState) => !prevState);
};
const handleScroll = () => {
const position = window.pageYOffset;
setScrollPosition(position);
};
useEffect(() => {
window.addEventListener('scroll', handleScroll, { passive: true });
return () => {
window.removeEventListener('scroll', handleScroll);
};
}, []);
return (
<>
<nav>
<div className='navContainer'>
<div className='SocialMedia'>
<a href='https://discord.gg/meEYUcmR'><img src={Discord} alt=""/></a>
<a href='https://www.facebook.com/groups/vbytes/'><img src={Facebook} alt=""/></a>
<a href='mailto:styrelsen@vbytes.se'><img src={Mail} alt=""/></a>
</div>
<a href='/'><img className={ scrollPosition < 500 ? "hidden AppLogo" : "visible AppLogo"} src={Logo} id="AppLogo" alt="logo" /></a>
<div className="navbar-container">
<div onClick={toggleNavbar} className={`hamburger ${isOpen ? 'open' : ''}`}>
<div class="line-menu half start"></div>
<div class="line-menu"></div>
<div class="line-menu half end"></div>
</div>
<ul className={`navbar navbar-mobile ${isOpen ? 'opened' : 'closed'}`}>
<li><a href="/#about-section">Om vBytes</a></li>
<li><a href="/#MemberSection">Bli medlem</a></li>
<li><a href="/#InventorySection">Låna spel</a></li>
<li><a href="/#Contact">Kontakta</a></li>
</ul>
</div>
</div>
</nav>
</>
);
};
export default Navbar;

View file

@ -0,0 +1,22 @@
import Logo from "../assets/img/vbytes-logo.png";
const StartSection = ({opacity}) => {
return (
<section id="StartSection" className="StartSection">
<img src={Logo} id="AppLogo" className="AppLogo" alt="logo" />
<p>
ViskaforsBygdens Teknik-, Elektronik- och Spelförening
</p>
<a href="#AboutSection" className="arrow" style={{opacity: opacity}}>
<div class="chevron"></div>
<div class="chevron"></div>
<div class="chevron"></div>
</a>
</section>
);
};
export default StartSection;

11
src/components/Glow.jsx Normal file
View file

@ -0,0 +1,11 @@
const Glow = ({opacity}) => {
return (
<div className="glow-container" style={{opacity: opacity}}>
<div className="glow" style={{opacity: opacity}}>
</div>
</div>
)
}
export default Glow

46
src/components/Timer.jsx Normal file
View file

@ -0,0 +1,46 @@
import React from "react";
class Timer extends React.Component {
state = {
minutes: 0,
seconds: 0,
hours: 0,
days: 0
};
componentDidMount() {
let date = new Date();
date.setDate(date.getDate() + 2);
let countDownDate = new Date(date).getTime();
setInterval(() => {
let now = new Date().getTime();
let distance = countDownDate - now;
let days = Math.floor(distance / (1000 * 60 * 60 * 24));
let hours = Math.floor(
(distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60)
);
let minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60));
let seconds = Math.floor((distance % (1000 * 60)) / 1000);
this.setState({
minutes: minutes,
days: days,
hours: hours,
seconds: seconds
});
}, 1000);
}
render() {
const { minutes, seconds, hours, days } = this.state;
return (
<div className="timer">
<p>
{days < 10 ? `0${days}` : days}:{hours < 10 ? `0${hours}` : hours}:
{minutes}:{seconds < 10 ? `0${seconds}` : seconds}
</p>
</div>
);
}
}
export default Timer;

88
src/css/Footer.scss Normal file
View file

@ -0,0 +1,88 @@
footer {
position: relative;
bottom: 0;
left: 0;
right: 0;
z-index: 6;
min-height: 30vh;
padding: 50px 0;
background-color: #222;
box-shadow: 0px -1px 2px rgba(0, 128, 189,0.5),
0px -2px 4px rgba(0, 128, 189,0.5),
0px -4px 8px rgba(0, 128, 189,0.5),
0px -8px 16px rgba(0, 128, 189,0.5);
.FooterContainer {
max-width: 1440px;
margin: 0 auto;
display: flex;
justify-content: space-between;
color: white;
width: 90%;
.first {
display: flex;
flex-direction: column;
justify-content: space-between;
}
p {
margin-top: 0;
}
}
.footer-address{
font-family: 'Jersey-Regular';
letter-spacing: 0.1em;
text-transform: uppercase;
}
.SocialMedia {
display: flex;
flex-direction: row;
height: 100%;
align-items: center;
padding: 10px 0;
gap: 20px;
margin-top: 20px;
img {
height: 40px;
width: auto;
filter: invert(100%) sepia(0%) saturate(2%) hue-rotate(324deg) brightness(104%) contrast(101%);
transition: unset;
&:hover {
filter: invert(41%) sepia(71%) saturate(5637%) hue-rotate(179deg) brightness(92%) contrast(101%);
}
}
}
ul {
display: flex;
list-style: none;
height: 100%;
padding-right: 20px;
li {
height: 100%;
padding: 0 10px;
a {
text-decoration: none;
color: white;
font-size: 20px;
font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
letter-spacing: 1.3px;
}
a:active {
text-decoration: none;
color: white;
}
}
}
}

44
src/css/Glow.scss Normal file
View file

@ -0,0 +1,44 @@
@keyframes rotate {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
}
.glow-container {
width: 100vw;
height: 100vh;
z-index: 4;
position: fixed;
display: flex;
justify-content: center;
align-items: center;
}
.glow {
--size: 300px;
--speed: 50s;
--easing: cubic-bezier(0.8, 0.2, 0.2, 0.8);
width: var(--size);
height: var(--size);
filter: blur(calc(var(--size) / 5));
background-image: linear-gradient(hsl(222, 84, 60, 100%), hsl(164, 79, 71));
animation: rotate var(--speed) var(--easing) alternate infinite;
border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
}
@media (min-width: 720px) {
.glow {
--size: 600px;
}
}
/* This is just to transition when you change the viewport size. */
* {
transition: all 0.5s ease-out;
}

View file

@ -0,0 +1,84 @@
.InventorySection {
background-color: transparent;
font-size: calc(10px + 2vmin);
color: white;
position: relative;
z-index: unset;
padding: 50px 0;
margin-bottom: 150px;
scroll-margin-top: 200px;
@keyframes rotate {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
}
.glow {
z-index: 2;
position: absolute;
left: 20px;
top: 40px;
--size: 170px;
--speed: 20s;
--easing: cubic-bezier(0.8, 0.2, 0.2, 0.8);
width: var(--size);
height: var(--size);
filter: blur(calc(var(--size) / 4));
background-image: linear-gradient(hsl(222, 84, 60, 100%), hsl(164, 79, 71));
animation: rotate var(--speed) var(--easing) alternate infinite;
border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
transition: all 2.5s ease-in-out;
}
@media (min-width: 720px) {
.glow {
left: 150px;
top: 0px;
--size: 200px;
}
}
.FlexContainer {
z-index: 5;
margin: 0 auto;
width: 100%;
max-width: 1440px;
display:flex;
flex-direction: column;
grid-template-columns: 1fr;
width: 90%;
gap: 40px;
@media screen and (min-width: 900px) {
display: grid;
grid-template-columns: 1fr 1fr;
}
.BigDiv {
display: flex;
flex-direction: column;
z-index: 20;
@media screen and (min-width: 1200px) {
padding: 50px;
}
}
}
.image-box {
.bd {
background: url(../assets/img/Board-Games.jpg);
}
}
}

219
src/css/LanForm.scss Normal file
View file

@ -0,0 +1,219 @@
.LanForm {
background-color: #222;
min-height: 100vh;
display: flex;
flex-direction: column;
align-items: center;
//justify-content: center;
font-size: calc(10px + 2vmin);
color: white;
overflow: visible;
position: relative;
padding: 40px 20px 40px;
margin-top: 60px;
h1 {
font-size: 48px;
z-index: 5;
font-family: monospace;
text-align: center;
font-family: 'Jersey-Regular';
margin-top: 15px;
}
.timer {
z-index: 20;
p {
font-size: 140px;
z-index: 5;
font-family: monospace;
text-align: center;
font-family: 'Jersey-Regular';
margin-top: 170px;
}
}
label {
font-size: 14px;
}
.control {
margin-bottom: 20px;
display: flex;
gap: 10px
}
label.checkbox {
display: flex;
align-items: center;
}
form {
max-width: 500px;
margin: 0 auto;
z-index: 20
}
input {
width: 100%;
color: black;
}
input[type=checkbox],
input[type=radio] {
width: 16px;
margin-right: 10px;
}
.btn {
margin: 0 auto;
margin-top: 30px;
position: relative;
display: block;
border-radius: 999em;
color: white;
max-width: 250px;
height: 45px;
font-size: 20px;
letter-spacing: 0.075em;
text-decoration: none;
text-transform: uppercase;
font-family: monospace;
font-family: 'Jersey-Regular';
span {
font-family: 'Jersey-Regular';
font-size: 24px;
}
&__inner {
height: 45px;
padding: 1px;
position: relative;
z-index: 2;
display: block;
overflow: hidden;
border-radius: inherit;
text-align: center;
font-family: monospace;
&:before {
height: 45px;
position: absolute;
inset: 4px;
z-index: 1;
display: block;
opacity: 0;
transition: opacity 0.2s linear 0.1s;
content: "";
}
}
&__label {
height: 100%;
position: relative;
display: block;
overflow: hidden;
padding: 0.35em 0em 0.35em;
border-radius: inherit;
color: transparent;
white-space: nowrap;
font-family: monospace;
&:before,
&:after {
position: absolute;
top: -2px;
left: 0;
z-index: 2;
display: block;
padding: inherit;
width: 100%;
color: white;
white-space: nowrap;
transition: transform 0.3s cubic-bezier(1, 0, 0, 1) 0s;
}
&:before {
transform: translate3d(0, 0, 0);
content: attr(data-label);
}
&:after {
transform: translate3d(0, -100%, 0);
content: attr(data-hover);
}
&__background {
position: absolute;
inset: -100px;
display: block;
background: #222;
background-blend-mode: overlay;
}
}
&__background {
position: absolute;
top: 0;
left: 0;
z-index: 1;
display: block;
width: 100%;
height: 100%;
border-radius: inherit;
&:before,
&:after {
position: absolute;
inset: 0;
display: block;
border-radius: inherit;
content: "";
}
&:before {
background: white;
}
}
&:hover {
.btn__background {
&:before {
background: #0080bd;
}
&:after {
opacity: 1;
transition: opacity 0.4s cubic-bezier(0.55, 0.085, 0.68, 0.53) 0s;
}
}
.btn__label {
&:before,
&:after {
transition-duration: 0.6s;
transition-timing-function: cubic-bezier(1, -0.6, 0, 1.6);
}
&:before {
transform: translate3d(0, 100%, 0);
}
&:after {
transform: translate3d(0, 0, 0);
}
}
}
}
}

249
src/css/MemberSection.scss Normal file
View file

@ -0,0 +1,249 @@
.MemberSection {
background-color: #222;
font-size: calc(10px + 2vmin);
color: white;
position: relative;
z-index: unset;
margin-bottom: 300px;
scroll-margin-top: 200px;
@keyframes rotate {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
}
.glow {
z-index: 2;
position: absolute;
right: 140px;
top: 40px;
--size: 300px;
--speed: 20s;
--easing: cubic-bezier(0.8, 0.2, 0.2, 0.8);
width: var(--size);
height: var(--size);
filter: blur(calc(var(--size) / 4));
background-image: linear-gradient(hsl(222, 84, 60, 100%), hsl(164, 79, 71));
animation: rotate var(--speed) var(--easing) alternate infinite;
border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
transition: all 2.5s ease-in-out;
}
@media (min-width: 720px) {
.glow {
--size: 250px;
}
}
/* This is just to transition when you change the viewport size. */
* {
transition: all 0.5s ease-out;
}
.FlexContainer {
z-index: 5;
width: 90%;
max-width: 1440px;
display: flex;
gap: 40px;
flex-direction: column-reverse;
margin: 0 auto;
@media screen and (min-width: 900px) {
display: grid;
grid-template-columns: 1fr 1fr;
}
.BigDiv {
display: flex;
flex-direction: column;
justify-content: center;
//border: 2px solid rgba(0, 128, 189,0.5);
//-webkit-box-shadow:0px 0px 15px 1px rgba(0,126,189,0.9);
//-moz-box-shadow: 0px 0px 15px 1px rgba(0,126,189,0.9);
//box-shadow: 0px 0px 15px 1px rgba(0,126,189,0.9);
//padding: 50px;
z-index: 20;
/* Button */
@keyframes btn-glow {
0% {
background-position: 0 100%;
}
100% {
background-position: 0 300%;
}
}
.btn {
margin-top: 30px;
position: relative;
display: block;
border-radius: 999em;
color: white;
max-width: 250px;
height: 45px;
font-size: 20px;
letter-spacing: 0.075em;
text-decoration: none;
text-transform: uppercase;
font-family: monospace;
font-family: 'Jersey-Regular';
&__inner {
height: 45px;
padding: 1px;
position: relative;
z-index: 2;
display: block;
overflow: hidden;
border-radius: inherit;
text-align: center;
font-family: monospace;
font-family: 'Jersey-Regular';
&:before {
height: 45px;
position: absolute;
inset: 4px;
z-index: 1;
display: block;
opacity: 0;
transition: opacity 0.2s linear 0.1s;
content: "";
}
}
&__label {
height: 100%;
position: relative;
display: block;
overflow: hidden;
padding: 0.55em 0em 0.55em;
border-radius: inherit;
color: transparent;
white-space: nowrap;
font-family: monospace;
font-family: 'Jersey-Regular';
&:before,
&:after {
position: absolute;
top: -2px;
left: 0;
z-index: 2;
display: block;
padding: inherit;
width: 100%;
color: white;
white-space: nowrap;
transition: transform 0.3s cubic-bezier(1, 0, 0, 1) 0s;
}
&:before {
transform: translate3d(0, 0, 0);
content: attr(data-label);
}
&:after {
transform: translate3d(0, -100%, 0);
content: attr(data-hover);
}
&__background {
position: absolute;
inset: -100px;
display: block;
background: #222;
background-blend-mode: overlay;
}
}
&__background {
position: absolute;
top: 0;
left: 0;
z-index: 1;
display: block;
width: 100%;
height: 100%;
border-radius: inherit;
&:before,
&:after {
position: absolute;
inset: 0;
display: block;
border-radius: inherit;
content: "";
}
&:before {
background: white;
}
}
&:hover {
.btn__background {
&:before {
background: #0080bd;
}
&:after {
opacity: 1;
transition: opacity 0.4s cubic-bezier(0.55, 0.085, 0.68, 0.53) 0s;
}
}
.btn__label {
&:before,
&:after {
transition-duration: 0.6s;
transition-timing-function: cubic-bezier(1, -0.6, 0, 1.6);
}
&:before {
transform: translate3d(0, 100%, 0);
}
&:after {
transform: translate3d(0, 0, 0);
}
}
}
}
}
.GridContainer {
display: flex;
justify-content: center;
align-items: center ;
//background-image: url(/images/technology-8346311_640.png);
background-repeat: none;
background-size: cover;
background-position: center;
-webkit-box-shadow:0px 0px 15px 1px rgba(0,126,189,0.9);
-moz-box-shadow: 0px 0px 15px 1px rgba(0,126,189,0.9);
box-shadow: 0px 0px 15px 1px rgba(0,126,189,0.9);
}
}
}

210
src/css/Navbar.scss Normal file
View file

@ -0,0 +1,210 @@
nav {
z-index: 21;
position: fixed;
background-color: #222;
top: 0;
left: 0;
right: 0;
width: 100%;
box-shadow: 0px 1px 2px rgba(0, 128, 189,0.5),
0px 2px 4px rgba(0, 128, 189,0.5),
0px 4px 8px rgba(0, 128, 189,0.5),
0px 8px 16px rgba(0, 128, 189,0.5);
.navContainer {
margin: 0 auto;
display: flex;
width:95%;
justify-content: space-between;
align-items: center;
color: white;
overflow: hidden;
z-index: 21;
@media screen and (min-width: 800px) {
display: grid;
grid-template-columns: 1fr 60px 1fr;
}
.hamburger{
width: 35px;
height: 35px;
display: flex;
flex-direction: column;
justify-content: space-between;
cursor: pointer;
transition: transform 330ms ease-out;
&.open {
transform: rotate(-45deg);
.line-menu.start {
transform: rotate(-90deg) translateX(3px);
}
.line-menu.end {
transform: rotate(-90deg) translateX(-3px);
}
}
.line-menu {
background-color: #fff;
border-radius: 5px;
width: 100%;
height: 4px;
}
.line-menu.half {
width: 50%;
}
.line-menu.start {
transition: transform 330ms cubic-bezier(0.54, -0.81, 0.57, 0.57);
transform-origin: right;
}
.line-menu.end {
align-self: flex-end;
transition: transform 330ms cubic-bezier(0.54, -0.81, 0.57, 0.57);
transform-origin: left;
}
}
.AppLogo {
width: 40px;
height: auto;
filter: drop-shadow(0 0 0.75rem rgba(0, 128, 189,1));
&.visible {
visibility:visibility;
opacity:1;
transition:visibility 0.3s linear,opacity 0.3s linear;
}
&.hidden {
visibility:hidden;
opacity:0;
}
@media screen and (max-width: 800px) {
display: none;
}
}
.navbar-container {
display: flex;
justify-content: flex-end;
}
.navbar {
background-color: transparent;
position: absolute;
top: 64px;
right: 0;
width: 0;
height: 0;
overflow: hidden;
transition: all 0.6s ease-in-out;
visibility: hidden;
//transform: translateX(105%);
background: linear-gradient(#222, #222222a6);
border-radius: 0 0 0 600px;
box-shadow: 0px 1px 2px rgba(0, 128, 189,0),
0px 2px 4px rgba(0, 128, 189,0),
0px 4px 8px rgba(0, 128, 189,0),
0px 12px 16px rgba(0, 128, 189,0.5);
}
.navbar.opened {
//transform: translateX(0);
visibility: visible;
height: 40vh;
width: 400px;
}
ul {
padding: 0;
list-style-type: none;
text-align: right;
display: flex;
flex-direction: column;
gap: 10px;
margin-top: 0;
padding-top: 50px;
padding-right: 50px;
}
li {
margin: 15px 0;
height: unset;
}
a {
color: #fff;
text-decoration: none;
font-size: 1.5rem;
font-family: 'Jersey-Regular';
text-transform: uppercase;
&:hover {
text-decoration: underline solid rgba(0, 128, 189,0.7) 4px;
text-underline-offset: 8px;
transition: none;
}
}
}
.SocialMedia {
display: flex;
height: 100%;
align-items: center;
padding: 10px 0;
gap: 20px;
img {
height: 40px;
width: auto;
filter: invert(100%) sepia(0%) saturate(2%) hue-rotate(324deg) brightness(104%) contrast(101%);
transition: unset;
&:hover {
filter: invert(41%) sepia(71%) saturate(5637%) hue-rotate(179deg) brightness(92%) contrast(101%);
}
}
}
ul {
display: flex;
list-style: none;
height: 100%;
padding-right: 20px;
li {
height: 100%;
padding: 0 10px;
a {
text-decoration: none;
color: white;
font-size: 20px;
font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
letter-spacing: 1.3px;
}
a:active {
text-decoration: none;
color: white;
}
a:hover {
//text-shadow: 0 0 3px #fff, 0 0 5px #fff, 0 0 8px #00ff33, 0 0 10px #00ff33, 0 0 15px #00ff33, 0 0 20px #00ff33, 0 0 25px #00ff33, 0 0 30px #00ff33;
}
}
}
}

148
src/css/StartSection.scss Normal file
View file

@ -0,0 +1,148 @@
.StartSection {
background-color: #222;
min-height: calc(100vh - 80px);
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
font-size: calc(10px + 2vmin);
color: white;
overflow: visible;
position: relative;
padding: 40px 20px;
margin-bottom: 150px;
.AppLogo {
z-index: 5;
}
p {
font-size: 24px;
z-index: 5;
font-family: monospace;
text-align: center;
font-family: 'Jersey-Regular';
margin-top: 15px;
}
$base: 0.6rem;
.arrow {
z-index: 5;
position: absolute;
bottom: 50px;
display: flex;
justify-content: center;
align-items: center;
width:100px;
height: 100px;
}
.chevron {
position: absolute;
width: $base * 3.5;
height: $base * 0.8;
opacity: 0;
transform: scale(0.3);
animation: move-chevron 3s ease-out infinite, glowing 3s reverse infinite ease-in-out;
}
.chevron:first-child {
animation: move-chevron 3s ease-out 1s infinite, glowing 3s reverse infinite 1s ease-in-out;
}
.chevron:nth-child(2) {
animation: move-chevron 3s ease-out 2s infinite, glowing 3s reverse infinite 2s ease-in-out;
}
.chevron:before,
.chevron:after {
content: '';
position: absolute;
top: 0;
height: 100%;
width: 50%;
background: rgba(0, 128, 189,0.5);
}
.chevron:before {
left: 0;
transform: skewY(30deg);
}
.chevron:after {
right: 0;
width: 50%;
transform: skewY(-30deg);
}
@keyframes move-chevron {
25% {
opacity: 1;
}
33.3% {
opacity: 1;
transform: translateY($base * 3.8);
}
66.6% {
opacity: 1;
transform: translateY($base * 5.2);
}
100% {
opacity: 0;
transform: translateY($base * 8) scale(0.5);
}
}
}
@keyframes glowing {
0% {
opacity: 0;
}
100% {
opacity: 1;
filter: drop-shadow(0 0 0 #ffffff) drop-shadow(0 0 1px #ffffff)
drop-shadow(0 0 2px rgba(0, 128, 189,0.5)) drop-shadow(0 0 3px rgba(0, 128, 189,0.5))
drop-shadow(0 0 4px rgba(0, 128, 189,0.5)) drop-shadow(0 0 5px rgba(0, 128, 189,0.5));
}
}
html {
scroll-behavior: smooth;
}
body {
margin: 0;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
background-color: #222;
}
code {
font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',
monospace;
}
h2 {
font-size: 32px;
}
h1,h2,h3,h4,h5,h6 {
font-family: 'Jersey-Regular';
}
p, li {
font-size: 16px;
line-height: 24px;
}
a {
cursor: pointer;
}
.App {
position: relative;
}

146
src/css/_about-section.scss Normal file
View file

@ -0,0 +1,146 @@
.about-section {
background-color: transparent;
font-size: calc(10px + 2vmin);
color: white;
position: relative;
z-index: unset;
padding: 50px 0;
margin-bottom: 150px;
scroll-margin-top: 100px;
@keyframes rotate {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
}
&__glow {
z-index: 2;
position: absolute;
left: 150px;
top: 300px;
--size: 170px;
--speed: 20s;
--easing: cubic-bezier(0.8, 0.2, 0.2, 0.8);
width: var(--size);
height: var(--size);
filter: blur(calc(var(--size) / 3));
background-image: linear-gradient(hsl(222, 84, 60, 100%), hsl(164, 79, 71));
//animation: rotate var(--speed) var(--easing) alternate infinite;
border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
transition: all 2.5s ease-in-out;
@media (min-width: 720px) {
left: 150px;
top: 0px;
--size: 200px;
}
}
&__container {
//position: absolute;
z-index: 5;
width: 100%;
max-width: 1440px;
display: grid;
grid-template-columns: 1fr;
width: 90%;
gap: 40px;
margin: 0 auto;
@media screen and (min-width: 900px) {
grid-template-columns: 1fr 1fr;
//max-height: 60vh;
}
}
&__text-box {
display: flex;
flex-direction: column;
h2 {
margin: 0;
z-index: 20;
text-align: left;
}
ul {
padding-top: 0;
margin-top: 0;
}
@media screen and (min-width: 1200px) {
padding: 50px;
}
}
&__activities {
h2 {
text-align: center;
margin: 0 auto;
margin-top: 150px;
margin-bottom: 50px;
width: 90%;
}
.activities-container {
display: grid;
grid-template-columns: 100%;
max-width: 1440px;
margin: 0 auto;
justify-content: center;
width: 90%;
max-width: 1440px;
@media screen and (min-width: 1200px) {
grid-template-columns: 33% 33% 33%;
}
}
.glowing-box {
min-height: 150px;
width: auto;
background: #222;
border-radius: 15px;
margin: 20px;
transition: all ease 0.2s;
border: 1px solid #333;
box-shadow: 0px 1px 2px 0px rgba(0,126,189,0.7),
1px 2px 4px 0px rgba(0,126,189,0.7),
2px 4px 8px 0px rgba(0,126,189,0.7),
2px 4px 16px 0px rgba(0,126,189,0.7);
padding: 1.5em;
display: flex;
flex-direction: column;
h3 {
margin: 0;
text-transform: uppercase;
}
.next-lan {
text-align: center;
}
.timer {
p {
text-align: center;
font-size:50px;
font-family: 'Jersey-Regular';
letter-spacing: 7px;
margin: 0;
margin-bottom: 20px;
}
}
}
}
}

6
src/css/_fonts.scss Normal file
View file

@ -0,0 +1,6 @@
@font-face {
font-family: 'Jersey-Regular';
src: url('../fonts/Jersey_15/Jersey15-Regular.ttf') format('truetype');
font-style: normal;
font-weight: 400;
}

8
src/css/app.css Normal file
View file

@ -0,0 +1,8 @@
@tailwind base;
@tailwind components;
@tailwind utilities;
.fi-ta-cell .maybe {
background-color: red !important;
}

10
src/css/app.scss Normal file
View file

@ -0,0 +1,10 @@
@use './about-section.scss';
@use './Footer.scss';
@use './Glow.scss';
@use './MemberSection.scss';
@use './Navbar.scss';
@use './StartSection.scss';
@use './_fonts.scss';
@use './LanForm.scss';
@use './InventorySection.scss';
@use './base.scss';

460
src/css/base.scss Normal file
View file

@ -0,0 +1,460 @@
p {
font-size: 16px;
}
h2 {
font-size: 48px;
font-family: 'Jersey-Regular';
letter-spacing: 0.1em;
text-transform: uppercase;
overflow-wrap: break-word;
}
h3 {
font-family: 'Jersey-Regular';
letter-spacing: 0.1em;
text-transform: uppercase;
}
.glowing-btn {
position: relative;
color: rgba(0,126,189,0.9);
cursor: pointer;
padding: 0.6em 1em;
border: 0.15em solid rgba(0,126,189,0.9);
border-radius: 0.45em;
background: none;
perspective: 2em;
text-align: center;
text-decoration: none;
font-size: 18px;
font-weight: 900;
//letter-spacing: 0.6em;
margin-top: 30px;
text-transform: uppercase;
//align-self: center;
width: 200px;
font-family: 'Jersey-Regular';
letter-spacing: 0.1em;
-webkit-box-shadow: inset 0px 0px 0.5em 0px rgba(0,126,189,0.9),
0px 0px 0.5em 0px rgba(0,126,189,0.9);
-moz-box-shadow: inset 0px 0px 0.5em 0px rgba(0,126,189,0.9),
0px 0px 0.5em 0px rgba(0,126,189,0.9);
box-shadow: inset 0px 0px 0.5em 0px rgba(0,126,189,0.9),
0px 0px 0.5em 0px rgba(0,126,189,0.9);
//animation: border-flicker 2s linear infinite;
}
.glowing-txt {
//float: left;
//margin-right: -0.8em;
color: white;
// -webkit-text-shadow: 0 0 0.125em hsl(0 0% 100% / 0.3),
// 0 0 0.45em rgba(0,126,189,0.9);
// -moz-text-shadow: 0 0 0.125em hsl(0 0% 100% / 0.3),
// 0 0 0.45em rgba(0,126,189,0.9);
// text-shadow: 0 0 0.125em hsl(0 0% 100% / 0.3), 0 0 0.45em rgba(0,126,189,0.9);
//animation: text-flicker 3s linear infinite;
}
.faulty-letter {
opacity: 1;
//animation: faulty-flicker 2s linear infinite;
}
//.glowing-btn::before {
// content: "";
// position: absolute;
// top: 0;
// bottom: 0;
// left: 0;
// right: 0;
// opacity: 0.7;
// filter: blur(1em);
// transform: translateY(120%) rotateX(95deg) scale(1, 0.35);
// background: rgba(0,126,189,0.9);
// pointer-events: none;
//}
//.glowing-btn::after {
// content: "";
// position: absolute;
// top: 0;
// left: 0;
// right: 0;
// bottom: 0;
// opacity: 0;
// z-index: -1;
// background-color: rgba(0,126,189,0.9);
// box-shadow: 0 0 2em 0.2em rgba(0,126,189,0.9);
// transition: opacity 100ms linear;
//}
.glowing-btn:hover {
background-color: rgba(0,126,189,0.9);
text-shadow: none;
animation: none;
}
.glowing-btn:hover .glowing-txt {
animation: none;
}
.glowing-btn:hover .faulty-letter {
animation: none;
text-shadow: none;
opacity: 1;
}
.glowing-btn:hover:before {
filter: blur(1.5em);
opacity: 1;
}
.glowing-btn:hover:after {
opacity: 1;
}
@keyframes faulty-flicker {
0% {
opacity: 0.1;
}
2% {
opacity: 0.1;
}
4% {
opacity: 0.5;
}
19% {
opacity: 0.5;
}
21% {
opacity: 0.1;
}
23% {
opacity: 1;
}
80% {
opacity: 0.5;
}
83% {
opacity: 0.4;
}
87% {
opacity: 1;
}
}
@keyframes text-flicker {
0% {
opacity: 0.1;
}
2% {
opacity: 1;
}
8% {
opacity: 0.1;
}
9% {
opacity: 1;
}
12% {
opacity: 0.1;
}
20% {
opacity: 1;
}
25% {
opacity: 0.3;
}
30% {
opacity: 1;
}
70% {
opacity: 0.7;
}
72% {
opacity: 0.2;
}
77% {
opacity: 0.9;
}
100% {
opacity: 0.9;
}
}
@keyframes border-flicker {
0% {
opacity: 0.1;
}
2% {
opacity: 1;
}
4% {
opacity: 0.1;
}
8% {
opacity: 1;
}
70% {
opacity: 0.7;
}
100% {
opacity: 1;
}
}
@keyframes morph {
0% {border-radius: 40% 60% 60% 40% / 60% 30% 70% 40%;}
100% {border-radius: 40% 60%;}
}
@keyframes spin {
to {
transform: rotate(1turn);
}
}
/* This is just to transition when you change the viewport size. */
* {
transition: all 0.5s ease-out;
}
.image-box {
min-height: 60vmin;
display: flex;
align-items: center;
justify-content: center;
overflow: hidden;
.box {
width: 40vmin;
height: 40vmin;
border: 1px dashed rgba(0, 128, 189,0.8);
position: relative;
@media screen and (min-width: 900px) {
width: 40vmin;
height: 40vmin;
}
&::before {
content: "";
position: absolute;
top: 0;
left: 0;
bottom: 0;
right: 0;
border-radius: 50%;
border: 1px dashed rgba(0, 128, 189,0.8);
transform: scale(1.42);
}
}
.spin-container {
width: 100%;
height: 100%;
animation: spin 12s ease-in-out infinite alternate;
position: relative;
}
.shape {
width: 100%;
height: 100%;
transition: border-radius 1s ease-out;
border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
animation: morph 8s ease-in-out infinite both alternate;
position: absolute;
overflow: hidden;
z-index: 5;
}
.bd {
width: 142%;
height: 142%;
position: absolute;
left: -21%;
top: -21%;
background: url(../assets/img/lan.jpg);
background-size: 100%;
background-position: center center;
display: flex;
color: #003;
font-size: 5vw;
font-weight: bold;
align-items: center;
justify-content: center;
text-align: center;
text-transform: uppercase;
animation: spin 12s ease-in-out infinite alternate-reverse;
opacity: 1;
z-index: 2;
}
}
.btn {
margin: 0 auto;
margin-top: 30px;
position: relative;
display: block;
border-radius: 999em;
color: white;
max-width: 250px;
height: 45px;
font-size: 20px;
letter-spacing: 0.075em;
text-decoration: none;
text-transform: uppercase;
font-family: monospace;
font-family: 'Jersey-Regular';
span {
font-family: 'Jersey-Regular';
font-size: 24px;
}
&__inner {
height: 45px;
padding: 1px;
position: relative;
z-index: 2;
display: block;
overflow: hidden;
border-radius: inherit;
text-align: center;
font-family: monospace;
&:before {
height: 45px;
position: absolute;
inset: 4px;
z-index: 1;
display: block;
opacity: 0;
transition: opacity 0.2s linear 0.1s;
content: "";
}
}
&__label {
height: 100%;
position: relative;
display: block;
overflow: hidden;
padding: 0.35em 0em 0.35em;
border-radius: inherit;
color: transparent;
white-space: nowrap;
font-family: monospace;
&:before,
&:after {
position: absolute;
top: -2px;
left: 0;
z-index: 2;
display: block;
padding: inherit;
width: 100%;
color: white;
white-space: nowrap;
transition: transform 0.3s cubic-bezier(1, 0, 0, 1) 0s;
}
&:before {
transform: translate3d(0, 0, 0);
content: attr(data-label);
}
&:after {
transform: translate3d(0, -100%, 0);
content: attr(data-hover);
}
&__background {
position: absolute;
inset: -100px;
display: block;
background: #222;
background-blend-mode: overlay;
}
}
&__background {
position: absolute;
top: 0;
left: 0;
z-index: 1;
display: block;
width: 100%;
height: 100%;
border-radius: inherit;
&:before,
&:after {
position: absolute;
inset: 0;
display: block;
border-radius: inherit;
content: "";
}
&:before {
background: white;
}
}
&:hover {
.btn__background {
&:before {
background: #0080bd;
}
&:after {
opacity: 1;
transition: opacity 0.4s cubic-bezier(0.55, 0.085, 0.68, 0.53) 0s;
}
}
.btn__label {
&:before,
&:after {
transition-duration: 0.6s;
transition-timing-function: cubic-bezier(1, -0.6, 0, 1.6);
}
&:before {
transform: translate3d(0, 100%, 0);
}
&:after {
transform: translate3d(0, 0, 0);
}
}
}
}

Binary file not shown.

View file

@ -0,0 +1,93 @@
Copyright 2023 The Soft Type Project Authors (https://github.com/scfried/soft-type-jersey)
This Font Software is licensed under the SIL Open Font License, Version 1.1.
This license is copied below, and is also available with a FAQ at:
https://openfontlicense.org
-----------------------------------------------------------
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
-----------------------------------------------------------
PREAMBLE
The goals of the Open Font License (OFL) are to stimulate worldwide
development of collaborative font projects, to support the font creation
efforts of academic and linguistic communities, and to provide a free and
open framework in which fonts may be shared and improved in partnership
with others.
The OFL allows the licensed fonts to be used, studied, modified and
redistributed freely as long as they are not sold by themselves. The
fonts, including any derivative works, can be bundled, embedded,
redistributed and/or sold with any software provided that any reserved
names are not used by derivative works. The fonts and derivatives,
however, cannot be released under any other type of license. The
requirement for fonts to remain under this license does not apply
to any document created using the fonts or their derivatives.
DEFINITIONS
"Font Software" refers to the set of files released by the Copyright
Holder(s) under this license and clearly marked as such. This may
include source files, build scripts and documentation.
"Reserved Font Name" refers to any names specified as such after the
copyright statement(s).
"Original Version" refers to the collection of Font Software components as
distributed by the Copyright Holder(s).
"Modified Version" refers to any derivative made by adding to, deleting,
or substituting -- in part or in whole -- any of the components of the
Original Version, by changing formats or by porting the Font Software to a
new environment.
"Author" refers to any designer, engineer, programmer, technical
writer or other person who contributed to the Font Software.
PERMISSION & CONDITIONS
Permission is hereby granted, free of charge, to any person obtaining
a copy of the Font Software, to use, study, copy, merge, embed, modify,
redistribute, and sell modified and unmodified copies of the Font
Software, subject to the following conditions:
1) Neither the Font Software nor any of its individual components,
in Original or Modified Versions, may be sold by itself.
2) Original or Modified Versions of the Font Software may be bundled,
redistributed and/or sold with any software, provided that each copy
contains the above copyright notice and this license. These can be
included either as stand-alone text files, human-readable headers or
in the appropriate machine-readable metadata fields within text or
binary files as long as those fields can be easily viewed by the user.
3) No Modified Version of the Font Software may use the Reserved Font
Name(s) unless explicit written permission is granted by the corresponding
Copyright Holder. This restriction only applies to the primary font name as
presented to the users.
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
Software shall not be used to promote, endorse or advertise any
Modified Version, except to acknowledge the contribution(s) of the
Copyright Holder(s) and the Author(s) or with their explicit written
permission.
5) The Font Software, modified or unmodified, in part or in whole,
must be distributed entirely under this license, and must not be
distributed under any other license. The requirement for fonts to
remain under this license does not apply to any document created
using the Font Software.
TERMINATION
This license becomes null and void if any of the above conditions are
not met.
DISCLAIMER
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
OTHER DEALINGS IN THE FONT SOFTWARE.

View file

@ -1,13 +0,0 @@
body {
margin: 0;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
code {
font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',
monospace;
}

View file

@ -1,6 +1,6 @@
import React from 'react'; import React from 'react';
import ReactDOM from 'react-dom/client'; import ReactDOM from 'react-dom/client';
import './index.css'; import './css/app.scss';
import App from './App'; import App from './App';
import reportWebVitals from './reportWebVitals'; import reportWebVitals from './reportWebVitals';