1
0

refactor: Move old components to old folders, start new website impl

This commit is contained in:
2025-12-15 17:56:59 +01:00
parent 8e736906c1
commit 8ccad90484
21 changed files with 561 additions and 2120 deletions
+73
View File
@@ -0,0 +1,73 @@
<div class="cursor">
<div class="ball ball--small">
<svg height="10" width="10">
<circle cx="5" cy="5" r="4" stroke-width="0"></circle>
</svg>
</div>
<div class="ball ball--big">
<svg height="30" width="30">
<circle cx="15" cy="15" r="12" stroke-width="0"></circle>
</svg>
</div>
</div>
<script>
import { gsap } from "gsap";
const smallBall = document.querySelector(".cursor > .ball--small");
const bigBall = document.querySelector(".cursor >.ball--big");
const hoverables = document.querySelectorAll(".hoverable");
// Listeners
document.body.addEventListener("mousemove", onMouseMove);
for (let i = 0; i < hoverables.length; i++) {
hoverables[i].addEventListener("mouseenter", onMouseHover);
hoverables[i].addEventListener("mouseleave", onMouseHoverOut);
}
// Move the cursor
function onMouseMove(event: MouseEvent) {
gsap.to(bigBall, {
duration: 0.4,
y: event.clientY - 15,
x: event.clientX - 15,
});
gsap.to(smallBall, {
duration: 0.1,
x: event.clientX - 5,
y: event.clientY - 7,
});
}
// Hover an element
function onMouseHover() {
gsap.to(bigBall, {
duration: 0.3,
scale: 5,
});
}
function onMouseHoverOut() {
gsap.to(bigBall, {
duration: 0.3,
scale: 1,
});
}
</script>
<style>
.cursor {
pointer-events: none;
}
.ball {
position: fixed;
top: 0;
left: 0;
mix-blend-mode: difference;
/* z-index: -1; */
& circle {
fill: var(--clr-ts-warm-red);
}
}
</style>
+86
View File
@@ -0,0 +1,86 @@
<style is:global>
@import url("../styles/archivo.css");
@import url("../styles/clash-display.css");
:root {
--clr-ts-warm-red: hsl(3, 94%, 60%);
--clr-ts-dark: hsl(7, 18%, 10%);
--clr-ts-dark-logo: hsl(7, 18%, 13%);
--clr-ts-light: hsl(349, 57%, 91%);
--ff-heading: "Clash Display", sans-serif;
--ff-body: "Archivo", sans-serif;
--fs-xl: clamp(2.125rem, 5vw + 1rem, 6rem);
--fs-600: clamp(1.125rem, 1.5vw + 0.5rem, 1.25rem);
--fs-500: 1.125rem;
--fs-400: 1rem;
--fs-300: 0.75rem;
}
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
body {
width: 100%;
height: 100%;
margin: 0;
font-family: var(--ff-body);
font-size: var(--fs-400);
background-color: var(--clr-ts-dark);
color: var(--clr-ts-light);
-webkit-font-smoothing: antialiased;
}
.sr-only {
position: absolute !important;
overflow: hidden !important;
white-space: nowrap !important;
width: 1px !important;
height: 1px !important;
margin: -1px !important;
padding: 0 !important;
border: 0 !important;
clip: rect(1px 1px 1px 1px) !important;
-webkit-clip-path: inset(50%) !important;
clip-path: inset(50%) !important;
}
.content {
max-width: 82ch;
& > * + * {
margin-top: 0.25em;
}
& a {
display: inline-block;
width: max-content;
position: relative;
font-weight: 500;
color: var(--clr-ts-warm-red);
}
}
h1,
h2,
h3,
h4,
h5,
h6 {
font-family: var(--ff-heading);
}
h1 {
max-width: 16ch;
font-size: var(--fs-xl);
font-weight: 700c;
text-transform: uppercase;
line-height: 1.1;
letter-spacing: 0.0333em;
}
</style>
+74
View File
@@ -0,0 +1,74 @@
---
import { Image } from "astro:assets";
import { getRelativeLocaleUrl } from "astro:i18n";
import logo from "../assets/ci/icon-only.svg";
const isEnglish = Astro.currentLocale === "en";
---
<header>
<a href="/" class="hoverable hoverable--diff">
<span class="sr-only">Back to home</span>
<Image
class="icon"
src={logo}
loading="eager"
alt="Tideshift Digital logo mark"
/>
</a>
<nav>
<ul>
<li>
<a class="hoverable" href="/blog">Blog</a>
</li>
<li>
<a class="hoverable" href="/imprint">Imprint</a>
</li>
<li>
<a class="hoverable" href="/privacy">Privacy policy</a>
</li>
<!-- <li>
<a
class:list={['hoverable', { active: isEnglish }]}
href={getRelativeLocaleUrl("en", "")}>EN</a
>
</li>
<li>
<a
class:list={['hoverable',{ active: !isEnglish }]}
href={getRelativeLocaleUrl("de", "")}>DE</a
>
</li> -->
</ul>
</nav>
</header>
<style>
header {
display: flex;
justify-content: space-between;
}
.icon {
width: 60px;
height: auto;
}
ul {
display: flex;
list-style: none;
gap: 1em;
}
ul {
& a {
color: var(--clr-ts-light);
text-decoration: none;
&.active {
text-decoration: underline;
}
}
}
</style>
+129
View File
@@ -0,0 +1,129 @@
---
import Typemark from "../assets/ci/typemark.svg";
import Logo from "../assets/ci/icon-only.svg";
---
<main class="inner">
<div class="text">
<h1>Smart websites for bold ideas.</h1>
<p>
From concept to launch - websites, apps, and digital solutions that
work hard, so you can play hard. Whether it's a personal site, an
e-commerce platform, or a custom web app, we bring your ideas to
life.
</p>
<a
href="mailto:hello@tideshiftdigital.com?subject=Anfrage"
class="hoverable">Get in touch</a
>
</div>
<p class="copyright">
<span>&copy; 2025</span>
<span>Tideshift Digital e.U.</span>
</p>
<Typemark class="typemark" />
</main>
<Logo class="logo" />
<style is:global>
.inner {
height: 100dvh;
}
</style>
<style>
.inner {
display: grid;
height: 100%;
grid-template-columns: 1fr 1fr;
grid-template-rows: 1fr 1fr;
gap: 1rem;
}
.text {
display: flex;
flex-direction: column;
justify-content: center;
gap: 2em;
grid-column: 1 / -1;
grid-row: 1 / -1;
}
h1 {
max-width: 16ch;
font-family: var(--ff-heading);
font-size: var(--fs-xl);
font-weight: 700;
text-transform: uppercase;
line-height: 1.1;
letter-spacing: 0.0333em;
}
.text {
& p {
max-width: 50ch;
line-height: 1.5;
font-size: var(--fs-600);
}
}
a {
display: inline-block;
width: max-content;
text-decoration: none;
position: relative;
font-size: var(--fs-600);
font-weight: 600;
color: var(--clr-ts-light);
}
a:after {
content: "";
display: block;
width: 100%;
height: 3px;
background-color: var(--clr-ts-warm-red);
position: absolute;
left: 0;
bottom: -0.05rem;
}
.copyright {
margin-top: auto;
grid-row: 2;
grid-column: 1;
font-size: var(--fs-300);
& > * {
display: inline-block;
}
}
.typemark {
margin: auto 0 0 auto;
grid-row: 2;
grid-column: 2;
fill: var(--clr-ts-warm-red) !important;
width: auto;
max-width: 100%;
height: auto;
max-height: 3.125rem;
}
.logo {
width: auto;
margin-left: auto;
height: 95vh;
fill: var(--clr-ts-dark-logo) !important;
z-index: -10;
position: absolute;
right: 0;
bottom: 0;
transform: translate3d(10vw, 10vh, 0);
}
</style>