1
0

Continue Header, Footer, add SkipNavLink

This commit is contained in:
2026-02-18 15:51:43 +01:00
parent 21d5e9eb5e
commit cb5c5613a4
24 changed files with 609 additions and 613 deletions
+56 -24
View File
@@ -1,4 +1,6 @@
---
// import Logo from "../assets/ci/side-gradient.svg";
function getCurrentYear() {
return new Date().getFullYear();
}
@@ -9,35 +11,39 @@ function getCurrentYear() {
<nav>
{/* Explore */}
<div class="explore">
<span>Explore</span>
<span class="list-title">Explore</span>
<ul>
<li>Home</li>
<li>Blog</li>
<li><a href="/">Home</a></li>
<li><a href="/blog">Blog</a></li>
</ul>
</div>
{/* Follow us */}
<div class="follow">
<span>Reach out to us</span>
<span class="list-title">Reach out to us</span>
<ul>
<li>+43 670 4011 885</li>
<li>office@tideshiftdigital.com</li>
<li><a href="tel:+436704011885">+43 670 4011 885</a></li>
<li>
<a href="mailto:office@tideshiftdigital.com"
>office@tideshiftdigital.com</a
>
</li>
</ul>
{/* Socials */}
<ul class="socials">
{/*<ul class="socials">
<li>icon</li>
<li>icon</li>
<li>icon</li>
</ul>
</ul> */}
</div>
{/* Legal */}
<div class="legal">
<span>Legal</span>
<span class="list-title">Legal</span>
<ul>
<li>Privacy Policy</li>
<li>Imprint</li>
<li><a href="/privacy-policy">Privacy Policy</a></li>
<li><a href="/imprint">Imprint</a></li>
</ul>
</div>
</nav>
@@ -46,16 +52,13 @@ function getCurrentYear() {
<div class="info">
<span>&copy; {getCurrentYear()} Tideshift Digital e.U.</span>
<span>Made with ❤️ in Vienna</span>
<span class="made">Made with ❤️ in Vienna.</span>
<div>
<span>Vienna, 12:09 CET</span>
<span>⛅ 12C</span>
</div>
<div class="no-ai">All content made by humans.</div>
</div>
{/* Typemark */}
<div></div>
{/* Logo, commented out because of gradient issues */}
{/* <Logo class="logo"/> */}
</footer>
<style>
@@ -66,35 +69,64 @@ function getCurrentYear() {
padding-inline: 5rem;
}
nav, .info {
display: flex;
justify-content: space-between;
nav,
.info {
display: grid;
grid-template-columns: 1fr 1fr 1fr;
gap: 2remm;
font-size: 0.875rem;
line-height: var(--leading-title);
}
ul {
list-style: none;
& * {
margin-top: 0.75rem;
}
}
.explore {
}
.follow {
text-align: center;
}
.socials {
display: flex;
justify-content: center;
align-items: center;
gap: 2rem;
margin-top: 2rem;
}
.legal {
text-align: end;
}
.list-title {
color: var(--clr-light-600);
}
.info {
align-items: center;
justify-content: center;
margin-top: 3.5rem;
color: var(--clr-light-600);
& .made {
text-align: center;
}
& .no-ai {
text-align: end;
}
}
.logo {
width: 100%;
height: auto;
margin-top: 8rem;
}
</style>
+28 -33
View File
@@ -14,7 +14,8 @@
--fs-page-title: clamp(3rem, 5.5vw + 1rem, 8rem);
--leading-title: 1.1;
--ledaing-subtitle: 1.2;
--leading-subtitle: 1.2;
--leading-tightest: 0.8;
--leading-paragraph: 1.5;
--tracking-tight: -0.0625rem;
--tracking-narrow: -0.09375rem;
@@ -22,36 +23,37 @@
--base-grid: repeat(12, 1fr);
--max-content-width: 1920px;
--clr-light-400: hsl(0 10% 100%);
--clr-light-500: hsl(from var(--clr-light-400) h s calc(l - 10));
--clr-dark-400: hsl(0 17.6% 3.3%);
--clr-ts-warm-red-400: hsl(3 94% 60%);
--clr-light-400: oklch(100% 0.00011 271.152);
--clr-light-500: oklch(from var(--clr-light-400) calc(l - 0.1) c h);
--clr-light-600: oklch(from var(--clr-light-400) calc(l - 0.3) c h);
--clr-dark-400: oklch(13.306% 0.006 17.794);
--clr-ts-red-400: oklch(65.135% 0.21964 28.111);
--gradient-page-title: linear-gradient(
to bottom,
hsl(from var(--clr-light-400) h s l),
hsl(from var(--clr-light-400) h s calc(l - 10)),
hsl(from var(--clr-light-400) h s calc(l - 20)),
hsl(from var(--clr-light-400) h s calc(l - 20)),
hsl(from var(--clr-light-400) h s calc(l - 20)),
hsl(from var(--clr-light-400) h s calc(l - 40)),
hsl(from var(--clr-light-400) h s calc(l - 80))
oklch(from var(--clr-light-400) l c h),
oklch(from var(--clr-light-400) calc(l - 0.05) c h),
oklch(from var(--clr-light-400) calc(l - 0.15) c h),
oklch(from var(--clr-light-400) calc(l - 0.15) c h),
oklch(from var(--clr-light-400) calc(l - 0.15) c h),
oklch(from var(--clr-light-400) calc(l - 0.35) c h),
oklch(from var(--clr-light-400) calc(l - 0.75) c h)
);
--gradient-heading: linear-gradient(
to bottom,
hsl(from var(--clr-light-400) h s l),
hsl(from var(--clr-light-400) h s calc(l - 10)),
hsl(from var(--clr-light-400) h s calc(l - 30)),
hsl(from var(--clr-light-400) h s calc(l - 80)),
hsl(from var(--clr-light-400) h s calc(l - 90))
oklch(from var(--clr-light-400) calc(l - 0.05) c h),
oklch(from var(--clr-light-400) calc(l - 0.1) c h) 30%,
oklch(from var(--clr-light-400) calc(l - 0.1) c h) 70%,
/* oklch(from var(--clr-light-400) calc(l - 0.5) c h) 80%, */
oklch(from var(--clr-light-400) calc(l - 0.7) c h) 100%
);
--gradient-overlay: linear-gradient(
to bottom,
rgba(0, 0, 0, 0.3) 0%,
rgba(0, 0, 0, 0) 40%,
rgba(0, 0, 0, 0.3) 100%
oklch(0% 0 0 / 0.3) 0%,
oklch(0% 0 0 / 0) 40%,
oklch(0% 0 0 / 0.3) 100%
);
}
@@ -74,20 +76,8 @@
font-weight: 600;
}
h1 {
background: var(--gradient-page-title);
background-clip: text;
color: transparent;
}
h2 {
background: var(--gradient-heading);
background-clip: text;
color: transparent;
}
.heading-gradient {
background: var(--gradient-page-title);
background: var(--gradient-heading);
background-clip: text;
color: transparent;
}
@@ -95,4 +85,9 @@
p {
color: var(--clr-light-500);
}
a {
color: var(--clr-light-400);
text-decoration: none;
}
</style>
+20 -23
View File
@@ -1,22 +1,24 @@
---
import ArrowUpRight from "./icons/ArrowUpRight.astro";
import MenuIcon from "./icons/MenuIcon.astro";
import Logo from "../assets/ci/side-light.svg";
import Menu from "./Menu.astro";
import SkipNavLink from "./SkipNavLink.astro";
---
<header>
<SkipNavLink contentId="main-content" />
{/* Logo */}
<div class="logo"></div>
<Logo class="logo" />
{/* Contact Link */}
<a class="contact">
<span>Contact us</span>
<span class="heading-gradient">Contact us</span>
<ArrowUpRight class="icon" />
</a>
{/* Menu Button */}
<button>
<MenuIcon class="menu-icon" />
</button>
<Menu class="menu" />
</header>
<style>
@@ -24,16 +26,18 @@ import MenuIcon from "./icons/MenuIcon.astro";
display: grid;
grid-template-columns: var(--base-grid);
align-items: center;
padding: 2.5rem;
padding-inline: 5rem;
padding-block: 1rem;
max-width: var(--max-content-width);
margin-inline: auto;
position: fixed;
top: 0;
inset-inline: 0;
}
.logo {
width: 200px;
height: 50px;
background-color: salmon;
width: 12.5rem;
transform: translate3d(-0.75rem, 0, 0);
grid-column: 1 / 3;
}
@@ -44,28 +48,21 @@ import MenuIcon from "./icons/MenuIcon.astro";
gap: 0.5rem;
grid-column: -2 / -4;
justify-self: end;
font-size: 1.5rem;
font-size: 1.25rem;
font-weight: 600;
text-transform: uppercase;
letter-spacing: var(--tracking-tight);
line-height: var(--leading-title);
}
.icon {
display: inline-block;
width: 2rem;
height: 2rem;
width: 1.5rem;
height: 1.5rem;
}
button {
.menu {
grid-column: -1 / -2;
background-color: transparent;
border: none;
}
.menu-icon {
display: inline-block;
width: 3.125rem:
height: 3.125rem:
justify-self: end;
}
</style>
+90
View File
@@ -0,0 +1,90 @@
---
import MenuIcon from "./icons/MenuIcon.astro";
const { class: classname, ...rest } = Astro.props;
---
<tsd-menu class={classname} {...rest}>
<button>
<MenuIcon class="icon" />
</button>
<div class="menu-content">
<p>Hallon</p>
</div>
</tsd-menu>
<script>
class Menu extends HTMLElement {
connectedCallback() {
const body = document.body;
const button = this.querySelector("button");
if (!button) return;
button.addEventListener("click", () => {
if (!body.classList.contains("menu-open")) {
console.log("Open menu");
body.classList.add("menu-open");
} else {
console.log("Close menu");
body.classList.remove("menu-open");
}
});
}
}
customElements.define("tsd-menu", Menu);
</script>
<style is:global>
body.menu-open {
height: 100%;
overflow: hidden;
}
</style>
<style>
tsd-menu {
display: inline-block;
width: max-content;
}
button {
background-color: transparent;
border: none;
width: max-content;
position: relative;
z-index: 2;
}
.menu-icon {
display: inline-block;
width: 2.5rem;
height: 2.5rem;
& * {
fill: white;
}
}
.menu-content {
display: none;
opacity: 0;
width: 100%;
height: 100dvh;
position: absolute;
inset: 0;
z-index: 1;
background-color: salmon;
transition-property: opacity, display;
transition-duration: 0.25s;
transition-behavior: allow-discrete;
body.menu-open & {
display: flex;
opacity: 1;
}
}
</style>
+41
View File
@@ -0,0 +1,41 @@
---
interface Props {
contentId: string;
}
const { contentId } = Astro.props;
---
<a href={`#${contentId}`}>Skip to main content</a>
<style>
a {
position: fixed;
left: -10000px;
top: 1.35rem;
width: 1px;
height: 1px;
overflow: hidden;
padding: 0.5rem 0.75rem;
border-radius: 0.5rem;
background-color: oklch(from var(--clr-ts-red-400) calc(l - 0.05) c h);
font-weight: 600;
z-index: 10;
opacity: 0;
@media (prefers-reduced-motion: no-preference) {
transition: opacity 250ms;
}
}
a:focus {
left: 5rem;
width: auto;
height: auto;
opacity: 1;
border: 2px solid var(--clr-light-400);
}
</style>
+4 -4
View File
@@ -4,11 +4,11 @@ import { Picture } from "astro:assets";
---
<Fragment>
<div class="about">
<div class="about" aria-label="About section">
<h2>
<span>Creative.</span>
<span>Innovative.</span>
<span>Authentic.</span>
<span class="heading-gradient">Creative.</span>
<span class="heading-gradient">Innovative.</span>
<span class="heading-gradient">Authentic.</span>
</h2>
<div class="text">
+7 -5
View File
@@ -4,7 +4,7 @@ import { Picture } from "astro:assets";
import ArrowUpRight from "../icons/ArrowUpRight.astro";
---
<div class="contact">
<div class="contact" aria-label="Contact section">
<Picture
class="image"
src={ContactImage}
@@ -39,12 +39,10 @@ import ArrowUpRight from "../icons/ArrowUpRight.astro";
picture {
display: block;
width: 100%;
/* height: 100%; */
max-height: 500px;
width: calc(100% + 5rem);
grid-column: 1 / 5;
/* TODO substitute horizontal spacing with var */
transform: translate3d(calc(-1 * 5rem), 0, 0);
transform: translate3d(-5rem, 0, 0);
z-index: -1;
}
@@ -85,5 +83,9 @@ import ArrowUpRight from "../icons/ArrowUpRight.astro";
font-size: 6.25rem;
font-weight: 600;
text-transform: uppercase;
span {
line-height: var(--leading-tightest);
}
}
</style>
+2 -2
View File
@@ -4,7 +4,7 @@ import HeroImage from "../../assets/img/hero.jpg";
import ArrowDown from "../icons/ArrowDown.astro";
---
<div class="hero">
<div class="hero" aria-label="Hero section">
<div class="image-wrapper">
<Picture
class="image"
@@ -15,7 +15,7 @@ import ArrowDown from "../icons/ArrowDown.astro";
</div>
<div class="content">
<h1>
<h1 class="heading-gradient">
<span>Your Partner </span>
<span>For A Better Web</span>
</h1>
+14 -2
View File
@@ -16,7 +16,7 @@ const { title, image, items } = Astro.props;
<div class="card">
<Picture class="image" src={image.src} alt={image.alt} />
<h3>{title}</h3>
<h3 class="heading-gradient">{title}</h3>
{
!!items.length ? (
@@ -41,6 +41,14 @@ const { title, image, items } = Astro.props;
}
}
@media (prefers-reduced-motion: no-preference) and (hover: hover) {
.card:hover {
& picture:after {
backdrop-filter: blur(12px);
}
}
}
picture {
display: block;
grid-row: 1 / -1;
@@ -58,6 +66,9 @@ const { title, image, items } = Astro.props;
top: 0;
left: 0;
z-index: 1;
transition: all;
transition-duration: 300ms;
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}
.image {
@@ -72,7 +83,8 @@ const { title, image, items } = Astro.props;
grid-row: 1;
font-size: 2.25rem;
line-height: var(--leading-title);
padding: 2.5rem;
padding-block: 2.5rem 1rem;
padding-inline: 2.5rem;
max-width: 10ch;
}
+3 -2
View File
@@ -37,9 +37,9 @@ const services: Array<ComponentProps<typeof ServicesCard>> = [
];
---
<div class="services">
<div class="services" aria-label="Services section">
<div class="heading">
<h2>Our Services.</h2>
<h2 class="heading-gradient">Our Services.</h2>
<p>
Together as partners, we will tackle your digital challenge and turn
@@ -69,6 +69,7 @@ const services: Array<ComponentProps<typeof ServicesCard>> = [
& h2 {
grid-column: 1 / 6;
height: max-content;
font-size: 4.75rem;
line-height: var(--leading-title);
+3 -3
View File
@@ -19,7 +19,7 @@ function formatIndex(index: number) {
}
---
<div class="values">
<div class="values" aria-label="Values section">
<h2 class="heading-gradient">Our Values.</h2>
<ul>
@@ -73,7 +73,7 @@ function formatIndex(index: number) {
li {
display: grid;
grid-template-columns: var(--base-grid);
padding-block: 4.625rem;
padding-block: 6rem;
}
.content {
@@ -98,6 +98,6 @@ function formatIndex(index: number) {
font-size: 15.625rem;
font-weight: 600;
line-height: 0.9;
line-height: var(--leading-tightest);
}
</style>
-73
View File
@@ -1,73 +0,0 @@
<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
@@ -1,86 +0,0 @@
<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
@@ -1,74 +0,0 @@
---
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
@@ -1,129 +0,0 @@
---
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>