Compare commits

...

10 Commits
0.1.3 ... 0.2.0

Author SHA1 Message Date
b8efef1a00 polishing pass 2024-08-23 20:46:46 -05:00
ad88da00e6 enable hyrbide rendering 2024-08-23 00:13:47 -05:00
ff50ff7e9a remove main release 2024-08-19 21:57:31 -05:00
a37da0c6ed add gitignore 2024-08-19 21:49:57 -05:00
5dfe806e6b remove default content and replace with myself 2024-08-19 21:47:37 -05:00
7ef4b48b18 add directus
Some checks failed
release-image / release-image (push) Has been cancelled
2024-08-19 21:31:24 -05:00
d321c805e1 bump version 2024-08-19 17:21:25 -05:00
ba28de9f61 change tags in release workflow 2024-08-19 17:19:56 -05:00
29bdf18fd6 change release workflow 2024-08-19 17:17:33 -05:00
3d5a1e12c0 bump docker tag 2024-08-19 17:15:19 -05:00
23 changed files with 51 additions and 90 deletions

View File

@@ -2,10 +2,8 @@ name: release-image
on: on:
push: push:
branches:
- main
tags: tags:
- 6.* - 0.*
env: env:
REGISTRY: ghcr.io REGISTRY: ghcr.io

3
.gitignore vendored
View File

@@ -22,3 +22,6 @@ pnpm-debug.log*
# jetbrains setting folder # jetbrains setting folder
.idea/ .idea/
# vscode workspace
site-profile.code-workspace

View File

@@ -1,6 +1,6 @@
FROM node:20.16.0-alpine3.20 AS base FROM node:20.16.0-alpine3.20 AS base
LABEL version="0.1.2" LABEL version="0.2.0"
LABEL description="Astro based website to use as a profile" LABEL description="Astro based website to use as a profile"
ENV PNPM_HOME="/pnpm" ENV PNPM_HOME="/pnpm"

View File

@@ -2,9 +2,8 @@ import { defineConfig } from 'astro/config';
import node from "@astrojs/node"; import node from "@astrojs/node";
// https://astro.build/config
export default defineConfig({ export default defineConfig({
output: "server", output: "hybrid",
adapter: node({ adapter: node({
mode: "standalone" mode: "standalone"
}) })

View File

@@ -1,7 +1,7 @@
{ {
"name": "", "name": "site-profile",
"type": "module", "type": "module",
"version": "0.0.1", "version": "0.2.0",
"scripts": { "scripts": {
"dev": "astro dev", "dev": "astro dev",
"start": "astro dev", "start": "astro dev",
@@ -12,6 +12,7 @@
"dependencies": { "dependencies": {
"@astrojs/check": "^0.9.3", "@astrojs/check": "^0.9.3",
"@astrojs/node": "^8.3.3", "@astrojs/node": "^8.3.3",
"@directus/sdk": "^17.0.0",
"astro": "^4.14.2", "astro": "^4.14.2",
"typescript": "^5.5.4" "typescript": "^5.5.4"
} }

9
pnpm-lock.yaml generated
View File

@@ -14,6 +14,9 @@ importers:
'@astrojs/node': '@astrojs/node':
specifier: ^8.3.3 specifier: ^8.3.3
version: 8.3.3(astro@4.14.2(rollup@4.21.0)(typescript@5.5.4)) version: 8.3.3(astro@4.14.2(rollup@4.21.0)(typescript@5.5.4))
'@directus/sdk':
specifier: ^17.0.0
version: 17.0.0
astro: astro:
specifier: ^4.14.2 specifier: ^4.14.2
version: 4.14.2(rollup@4.21.0)(typescript@5.5.4) version: 4.14.2(rollup@4.21.0)(typescript@5.5.4)
@@ -161,6 +164,10 @@ packages:
resolution: {integrity: sha512-YTnYtra7W9e6/oAZEHj0bJehPRUlLH9/fbpT5LfB0NhQXyALCRkRs3zH9v07IYhkgpqX6Z78FnuccZr/l4Fs4Q==} resolution: {integrity: sha512-YTnYtra7W9e6/oAZEHj0bJehPRUlLH9/fbpT5LfB0NhQXyALCRkRs3zH9v07IYhkgpqX6Z78FnuccZr/l4Fs4Q==}
engines: {node: '>=6.9.0'} engines: {node: '>=6.9.0'}
'@directus/sdk@17.0.0':
resolution: {integrity: sha512-ADKoFrLjWPVVsYNK0EffVFstl/ZHVaQbiUp4NCueKfvFaOSLQ16xSVNj5O//rP5+rU8t1HkjwC6JDh02rao7ZQ==}
engines: {node: '>=18.0.0'}
'@emmetio/abbreviation@2.3.3': '@emmetio/abbreviation@2.3.3':
resolution: {integrity: sha512-mgv58UrU3rh4YgbE/TzgLQwJ3pFsHHhCLqY20aJq+9comytTXUDNGG/SMtSeMJdkpxgXSXunBGLD8Boka3JyVA==} resolution: {integrity: sha512-mgv58UrU3rh4YgbE/TzgLQwJ3pFsHHhCLqY20aJq+9comytTXUDNGG/SMtSeMJdkpxgXSXunBGLD8Boka3JyVA==}
@@ -2226,6 +2233,8 @@ snapshots:
'@babel/helper-validator-identifier': 7.24.7 '@babel/helper-validator-identifier': 7.24.7
to-fast-properties: 2.0.0 to-fast-properties: 2.0.0
'@directus/sdk@17.0.0': {}
'@emmetio/abbreviation@2.3.3': '@emmetio/abbreviation@2.3.3':
dependencies: dependencies:
'@emmetio/scanner': 1.0.4 '@emmetio/scanner': 1.0.4

Binary file not shown.

Before

Width:  |  Height:  |  Size: 98 KiB

BIN
public/assets/hiking.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.5 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 128 KiB

After

Width:  |  Height:  |  Size: 188 KiB

View File

@@ -32,7 +32,6 @@ const { href } = Astro.props;
} }
} }
/* Overlay for hover effects. */
a::after { a::after {
content: ''; content: '';
position: absolute; position: absolute;

View File

@@ -5,7 +5,7 @@ import Icon from './Icon.astro';
<aside> <aside>
<h2>Interested in working together?</h2> <h2>Interested in working together?</h2>
<CallToAction href="mailto:me@example.com"> <CallToAction href="mailto:alexander.lebens@gmail.com">
Send Me a Message Send Me a Message
<Icon icon="paper-plane-tilt" size="1.2em" /> <Icon icon="paper-plane-tilt" size="1.2em" />
</CallToAction> </CallToAction>

View File

@@ -6,17 +6,17 @@ const currentYear = new Date().getFullYear();
<footer> <footer>
<div class="group"> <div class="group">
<p> <p>
Designed & Developed in Portland with <a href="https://astro.build/">Astro</a> Designed & Developed in Minnesota with <a href="https://astro.build/">Astro</a>
<Icon icon="rocket-launch" size="1.2em" /> <Icon icon="rocket-launch" size="1.2em" />
</p> </p>
<p>&copy; {currentYear} Jeanine White</p> <p>&copy; {currentYear} Alex Lebens</p>
</div> </div>
<p class="socials"> <p class="socials">
<a href="https://twitter.com/me"> Twitter</a> <a href="https://github.com/alexlebens"> GitHub</a>
<a href="https://github.com/me"> GitHub</a> <a href="https://www.linkedin.com/in/alexanderlebens"> LinkedIn</a>
<a href="https://codepen.io/me"> CodePen</a>
</p> </p>
</footer> </footer>
<style> <style>
footer { footer {
display: flex; display: flex;

View File

@@ -24,7 +24,6 @@ const { variant } = Astro.props;
gap: 1.5rem; gap: 1.5rem;
} }
/* If last row contains only one item, make it span both columns. */
.grid.small > :global(:last-child:nth-child(odd)) { .grid.small > :global(:last-child:nth-child(odd)) {
grid-column: 1 / 3; grid-column: 1 / 3;
} }
@@ -40,12 +39,10 @@ const { variant } = Astro.props;
padding-bottom: var(--row-offset); padding-bottom: var(--row-offset);
} }
/* Shift first item in each row vertically to create staggered effect. */
.grid.offset > :global(:nth-child(odd)) { .grid.offset > :global(:nth-child(odd)) {
transform: translateY(var(--row-offset)); transform: translateY(var(--row-offset));
} }
/* If last row contains only one item, display it in the second column. */
.grid.offset > :global(:last-child:nth-child(odd)) { .grid.offset > :global(:last-child:nth-child(odd)) {
grid-column: 2 / 3; grid-column: 2 / 3;
transform: none; transform: none;

View File

@@ -7,8 +7,8 @@ interface Props {
} }
const { const {
title = 'Jeanine White: Personal Site', title = 'Alex Lebens',
description = 'The personal site of Jeanine White', description = 'The personal site of Alex Lebens',
} = Astro.props; } = Astro.props;
--- ---
@@ -26,7 +26,6 @@ const {
rel="stylesheet" rel="stylesheet"
/> />
<script is:inline> <script is:inline>
// This code is inlined in the head to make dark mode instant & blocking.
const getThemePreference = () => { const getThemePreference = () => {
if (typeof localStorage !== 'undefined' && localStorage.getItem('theme')) { if (typeof localStorage !== 'undefined' && localStorage.getItem('theme')) {
return localStorage.getItem('theme'); return localStorage.getItem('theme');
@@ -37,7 +36,6 @@ const {
document.documentElement.classList[isDark ? 'add' : 'remove']('theme-dark'); document.documentElement.classList[isDark ? 'add' : 'remove']('theme-dark');
if (typeof localStorage !== 'undefined') { if (typeof localStorage !== 'undefined') {
// Watch the document element and persist user preference when it changes.
const observer = new MutationObserver(() => { const observer = new MutationObserver(() => {
const isDark = document.documentElement.classList.contains('theme-dark'); const isDark = document.documentElement.classList.contains('theme-dark');
localStorage.setItem('theme', isDark ? 'dark' : 'light'); localStorage.setItem('theme', isDark ? 'dark' : 'light');

View File

@@ -3,21 +3,15 @@ import Icon from './Icon.astro';
import ThemeToggle from './ThemeToggle.astro'; import ThemeToggle from './ThemeToggle.astro';
import type { iconPaths } from './IconPaths'; import type { iconPaths } from './IconPaths';
/** Main menu items */
const textLinks: { label: string; href: string }[] = [ const textLinks: { label: string; href: string }[] = [
{ label: 'Home', href: '/' }, { label: 'Home', href: '/' },
{ label: 'Work', href: '/work/' }, { label: 'Work', href: '/work/' },
{ label: 'About', href: '/about/' }, { label: 'About', href: '/about/' },
]; ];
/** Icon links to social media — edit these with links to your profiles! */
const iconLinks: { label: string; href: string; icon: keyof typeof iconPaths }[] = [ const iconLinks: { label: string; href: string; icon: keyof typeof iconPaths }[] = [
{ label: 'Twitter', href: 'https://twitter.com/me', icon: 'twitter-logo' }, { label: 'GitHub', href: 'https://github.com/alexlebens', icon: 'github-logo' },
{ label: 'Twitch', href: 'https://twitch.tv/me', icon: 'twitch-logo' }, { label: 'LinkedIn', href: 'https://www.linkedin.com/in/alexanderlebens', icon: 'linkedin-logo' },
{ label: 'GitHub', href: 'https://github.com/me', icon: 'github-logo' },
{ label: 'CodePen', href: 'https://codepen.io/me', icon: 'codepen-logo' },
{ label: 'dribbble', href: 'https://dribbble.com/me', icon: 'dribbble-logo' },
{ label: 'YouTube', href: 'https://www.youtube.com/@me/', icon: 'youtube-logo' },
]; ];
--- ---
@@ -25,7 +19,7 @@ const iconLinks: { label: string; href: string; icon: keyof typeof iconPaths }[]
<div class="menu-header"> <div class="menu-header">
<a href="/" class="site-title"> <a href="/" class="site-title">
<Icon icon="terminal-window" color="var(--accent-regular)" size="1.6em" gradient /> <Icon icon="terminal-window" color="var(--accent-regular)" size="1.6em" gradient />
Jeanine White Alex Lebens
</a> </a>
<menu-button> <menu-button>
<template> <template>
@@ -121,26 +115,20 @@ const iconLinks: { label: string; href: string; icon: keyof typeof iconPaths }[]
constructor() { constructor() {
super(); super();
// Inject menu toggle button when JS runs.
this.appendChild(this.querySelector('template')!.content.cloneNode(true)); this.appendChild(this.querySelector('template')!.content.cloneNode(true));
const btn = this.querySelector('button')!; const btn = this.querySelector('button')!;
// Hide menu (shown by default to support no-JS browsers).
const menu = document.getElementById('menu-content')!; const menu = document.getElementById('menu-content')!;
menu.hidden = true; menu.hidden = true;
// Add "menu-content" class in JS to avoid covering content in non-JS browsers.
menu.classList.add('menu-content'); menu.classList.add('menu-content');
/** Set whether the menu is currently expanded or collapsed. */
const setExpanded = (expand: boolean) => { const setExpanded = (expand: boolean) => {
btn.setAttribute('aria-expanded', expand ? 'true' : 'false'); btn.setAttribute('aria-expanded', expand ? 'true' : 'false');
menu.hidden = !expand; menu.hidden = !expand;
}; };
// Toggle menu visibility when the menu button is clicked.
btn.addEventListener('click', () => setExpanded(menu.hidden)); btn.addEventListener('click', () => setExpanded(menu.hidden));
// Hide menu button for large screens.
const handleViewports = (e: MediaQueryList | MediaQueryListEvent) => { const handleViewports = (e: MediaQueryList | MediaQueryListEvent) => {
setExpanded(e.matches); setExpanded(e.matches);
btn.hidden = e.matches; btn.hidden = e.matches;

View File

@@ -74,16 +74,13 @@ import Icon from './Icon.astro';
const button = this.querySelector('button')!; const button = this.querySelector('button')!;
/** Set the theme to dark/light mode. */
const setTheme = (dark: boolean) => { const setTheme = (dark: boolean) => {
document.documentElement.classList[dark ? 'add' : 'remove']('theme-dark'); document.documentElement.classList[dark ? 'add' : 'remove']('theme-dark');
button.setAttribute('aria-pressed', String(dark)); button.setAttribute('aria-pressed', String(dark));
}; };
// Toggle the theme when a user clicks the button.
button.addEventListener('click', () => setTheme(!this.isDark())); button.addEventListener('click', () => setTheme(!this.isDark()));
// Initialize button state to reflect current theme.
setTheme(this.isDark()); setTheme(this.isDark());
} }

View File

@@ -1,8 +1,4 @@
--- ---
// Learn about using Astro layouts:
// https://docs.astro.build/en/core-concepts/layouts/
// Component Imports
import MainHead from '../components/MainHead.astro'; import MainHead from '../components/MainHead.astro';
import Nav from '../components/Nav.astro'; import Nav from '../components/Nav.astro';
import Footer from '../components/Footer.astro'; import Footer from '../components/Footer.astro';
@@ -27,7 +23,6 @@ const { title, description } = Astro.props;
</div> </div>
<script> <script>
// Add “loaded” class once the document has completely loaded.
addEventListener('load', () => document.documentElement.classList.add('loaded')); addEventListener('load', () => document.documentElement.classList.add('loaded'));
</script> </script>
@@ -54,13 +49,12 @@ const { title, description } = Astro.props;
--bg-blend-mode: lighten; --bg-blend-mode: lighten;
} }
/* These backgrounds are displayed below the fold, so we lazy load them
once the `.loaded` class has been set. */
:root.loaded { :root.loaded {
--bg-image-subtle-1: url('/assets/backgrounds/bg-subtle-1-light-800w.jpg'); --bg-image-subtle-1: url('/assets/backgrounds/bg-subtle-1-light-800w.jpg');
--bg-image-subtle-2: url('/assets/backgrounds/bg-subtle-2-light-800w.jpg'); --bg-image-subtle-2: url('/assets/backgrounds/bg-subtle-2-light-800w.jpg');
--bg-image-footer: url('/assets/backgrounds/bg-footer-light-800w.jpg'); --bg-image-footer: url('/assets/backgrounds/bg-footer-light-800w.jpg');
} }
:root.loaded.theme-dark { :root.loaded.theme-dark {
--bg-image-subtle-1: url('/assets/backgrounds/bg-subtle-1-dark-800w.jpg'); --bg-image-subtle-1: url('/assets/backgrounds/bg-subtle-1-dark-800w.jpg');
--bg-image-subtle-2: url('/assets/backgrounds/bg-subtle-2-dark-800w.jpg'); --bg-image-subtle-2: url('/assets/backgrounds/bg-subtle-2-dark-800w.jpg');
@@ -72,6 +66,7 @@ const { title, description } = Astro.props;
--bg-scale: 1; --bg-scale: 1;
--bg-image-main: url('/assets/backgrounds/bg-main-light-1440w.jpg'); --bg-image-main: url('/assets/backgrounds/bg-main-light-1440w.jpg');
} }
:root.theme-dark { :root.theme-dark {
--bg-image-main: url('/assets/backgrounds/bg-main-dark-1440w.jpg'); --bg-image-main: url('/assets/backgrounds/bg-main-dark-1440w.jpg');
} }
@@ -81,6 +76,7 @@ const { title, description } = Astro.props;
--bg-image-subtle-2: url('/assets/backgrounds/bg-subtle-2-light-1440w.jpg'); --bg-image-subtle-2: url('/assets/backgrounds/bg-subtle-2-light-1440w.jpg');
--bg-image-footer: url('/assets/backgrounds/bg-footer-light-1440w.jpg'); --bg-image-footer: url('/assets/backgrounds/bg-footer-light-1440w.jpg');
} }
:root.loaded.theme-dark { :root.loaded.theme-dark {
--bg-image-subtle-1: url('/assets/backgrounds/bg-subtle-1-dark-1440w.jpg'); --bg-image-subtle-1: url('/assets/backgrounds/bg-subtle-1-dark-1440w.jpg');
--bg-image-subtle-2: url('/assets/backgrounds/bg-subtle-2-dark-1440w.jpg'); --bg-image-subtle-2: url('/assets/backgrounds/bg-subtle-2-dark-1440w.jpg');
@@ -92,21 +88,20 @@ const { title, description } = Astro.props;
min-height: 100%; min-height: 100%;
isolation: isolate; isolation: isolate;
background: background:
/*noise*/
url('/assets/backgrounds/noise.png') top center/220px repeat, url('/assets/backgrounds/noise.png') top center/220px repeat,
/*footer*/ var(--bg-image-footer) bottom center/var(--bg-gradient-size) no-repeat, var(--bg-image-footer) bottom center/var(--bg-gradient-size) no-repeat,
/*header1*/ var(--bg-image-main-curves) top center/var(--bg-gradient-size) no-repeat, var(--bg-image-main-curves) top center/var(--bg-gradient-size) no-repeat,
/*header2*/ var(--bg-image-main) top center/var(--bg-gradient-size) no-repeat, var(--bg-image-main) top center/var(--bg-gradient-size) no-repeat,
/*base*/ var(--gray-999); var(--gray-999);
background-blend-mode: /*noise*/ background-blend-mode:
overlay, overlay,
/*footer*/ var(--bg-blend-mode), var(--bg-blend-mode),
/*header1*/ var(--bg-svg-blend-mode), var(--bg-svg-blend-mode),
/*header2*/ normal, normal,
/*base*/ normal; normal;
} }
@media (forced-colors: active) { @media (forced-colors: active) {
/* Deactivate custom backgrounds for high contrast users. */
.backgrounds { .backgrounds {
background: none; background: none;
background-blend-mode: none; background-blend-mode: none;

View File

@@ -5,7 +5,7 @@ import ContactCTA from '../components/ContactCTA.astro';
import Hero from '../components/Hero.astro'; import Hero from '../components/Hero.astro';
--- ---
<BaseLayout title="About | Jeanine White" description="About Jeanine White Lorem Ipsum"> <BaseLayout title="About | Alex Lebens" description="About Alex Lebens">
<div class="stack gap-20"> <div class="stack gap-20">
<main class="wrapper about"> <main class="wrapper about">
<Hero <Hero
@@ -15,8 +15,8 @@ import Hero from '../components/Hero.astro';
<img <img
width="1553" width="1553"
height="873" height="873"
src="/assets/at-work.jpg" src="/assets/hiking.jpg"
alt="Jeanine White at work with a colleague" alt="Alex Lebens hiking in Texas"
/> />
</Hero> </Hero>

View File

@@ -1,10 +1,8 @@
--- ---
import { getCollection } from 'astro:content'; import { getCollection } from 'astro:content';
// Layout import — provides basic page elements: <head>, <nav>, <footer> etc.
import BaseLayout from '../layouts/BaseLayout.astro'; import BaseLayout from '../layouts/BaseLayout.astro';
// Component Imports
import CallToAction from '../components/CallToAction.astro'; import CallToAction from '../components/CallToAction.astro';
import Grid from '../components/Grid.astro'; import Grid from '../components/Grid.astro';
import Hero from '../components/Hero.astro'; import Hero from '../components/Hero.astro';
@@ -12,17 +10,12 @@ import Icon from '../components/Icon.astro';
import Pill from '../components/Pill.astro'; import Pill from '../components/Pill.astro';
import PortfolioPreview from '../components/PortfolioPreview.astro'; import PortfolioPreview from '../components/PortfolioPreview.astro';
// Page section components
import ContactCTA from '../components/ContactCTA.astro'; import ContactCTA from '../components/ContactCTA.astro';
import Skills from '../components/Skills.astro'; import Skills from '../components/Skills.astro';
// Content Fetching: List four most recent work projects
const projects = (await getCollection('work')) const projects = (await getCollection('work'))
.sort((a, b) => b.data.publishDate.valueOf() - a.data.publishDate.valueOf()) .sort((a, b) => b.data.publishDate.valueOf() - a.data.publishDate.valueOf())
.slice(0, 4); .slice(0, 4);
// Full Astro Component Syntax:
// https://docs.astro.build/basics/astro-components/
--- ---
<BaseLayout> <BaseLayout>
@@ -30,8 +23,8 @@ const projects = (await getCollection('work'))
<div class="wrapper stack gap-8 lg:gap-20"> <div class="wrapper stack gap-8 lg:gap-20">
<header class="hero"> <header class="hero">
<Hero <Hero
title="Hello, my name is Jeanine White" title="Hello, my name is Alex Lebens"
tagline="I am a Creative Developer who is currently based in Portland, Oregon." tagline="I am a Cloud Engineer who is currently based in St. Paul, Minnesota."
align="start" align="start"
> >
<div class="roles"> <div class="roles">
@@ -42,7 +35,7 @@ const projects = (await getCollection('work'))
</Hero> </Hero>
<img <img
alt="Jeanine White smiling in a red plaid shirt and tortoise shell glasses" alt="Alex Lebens in Antarctica"
width="480" width="480"
height="620" height="620"
src="/assets/portrait.jpg" src="/assets/portrait.jpg"
@@ -56,7 +49,7 @@ const projects = (await getCollection('work'))
<section class="section with-background with-cta"> <section class="section with-background with-cta">
<header class="section-header stack gap-2 lg:gap-4"> <header class="section-header stack gap-2 lg:gap-4">
<h3>Selected Work</h3> <h3>Selected Work</h3>
<p>Take a look below at some of my featured work for clients from the past few years.</p> <p>Take a look below at some of my featured work from the past few years.</p>
</header> </header>
<div class="gallery"> <div class="gallery">
@@ -147,8 +140,6 @@ const projects = (await getCollection('work'))
} }
} }
/* ====================================================== */
.section { .section {
display: grid; display: grid;
gap: 2rem; gap: 2rem;
@@ -228,8 +219,6 @@ const projects = (await getCollection('work'))
} }
} }
/* ====================================================== */
.mention-card { .mention-card {
display: flex; display: flex;
height: 7rem; height: 7rem;

View File

@@ -14,8 +14,8 @@ const projects = (await getCollection('work')).sort(
--- ---
<BaseLayout <BaseLayout
title="My Work | Jeanine White" title="My Work | Alex Lebens"
description="Learn about Jeanine White's most recent projects" description="Learn about Alex Lebens's most recent projects"
> >
<div class="stack gap-20"> <div class="stack gap-20">
<main class="wrapper stack gap-8"> <main class="wrapper stack gap-8">

View File

@@ -12,9 +12,6 @@ interface Props {
entry: CollectionEntry<'work'>; entry: CollectionEntry<'work'>;
} }
// This is a dynamic route that generates a page for every Markdown file in src/content/
// Read more about dynamic routes and this `getStaticPaths` function in the Astro docs:
// https://docs.astro.build/en/core-concepts/routing/#dynamic-routes
export async function getStaticPaths() { export async function getStaticPaths() {
const work = await getCollection('work'); const work = await getCollection('work');
return work.map((entry) => ({ return work.map((entry) => ({

View File

@@ -1,6 +1,4 @@
/* Global variables */
:root { :root {
/* Colors */
--gray-0: #090b11; --gray-0: #090b11;
--gray-50: #141925; --gray-50: #141925;
--gray-100: #283044; --gray-100: #283044;
@@ -25,7 +23,6 @@
--link-color: var(--accent-regular); --link-color: var(--accent-regular);
/* Gradients */
--gradient-stop-1: var(--accent-light); --gradient-stop-1: var(--accent-light);
--gradient-stop-2: var(--accent-regular); --gradient-stop-2: var(--accent-regular);
--gradient-stop-3: var(--accent-dark); --gradient-stop-3: var(--accent-dark);
@@ -44,7 +41,6 @@
); );
--gradient-stroke: linear-gradient(180deg, var(--gray-900), var(--gray-700)); --gradient-stroke: linear-gradient(180deg, var(--gray-900), var(--gray-700));
/* Shadows */
--shadow-sm: 0px 6px 3px rgba(9, 11, 17, 0.01), 0px 4px 2px rgba(9, 11, 17, 0.01), --shadow-sm: 0px 6px 3px rgba(9, 11, 17, 0.01), 0px 4px 2px rgba(9, 11, 17, 0.01),
0px 2px 2px rgba(9, 11, 17, 0.02), 0px 0px 1px rgba(9, 11, 17, 0.03); 0px 2px 2px rgba(9, 11, 17, 0.02), 0px 0px 1px rgba(9, 11, 17, 0.03);
--shadow-md: 0px 28px 11px rgba(9, 11, 17, 0.01), 0px 16px 10px rgba(9, 11, 17, 0.03), --shadow-md: 0px 28px 11px rgba(9, 11, 17, 0.01), 0px 16px 10px rgba(9, 11, 17, 0.03),
@@ -52,7 +48,6 @@
--shadow-lg: 0px 62px 25px rgba(9, 11, 17, 0.01), 0px 35px 21px rgba(9, 11, 17, 0.05), --shadow-lg: 0px 62px 25px rgba(9, 11, 17, 0.01), 0px 35px 21px rgba(9, 11, 17, 0.05),
0px 16px 16px rgba(9, 11, 17, 0.1), 0px 4px 9px rgba(9, 11, 17, 0.12); 0px 16px 16px rgba(9, 11, 17, 0.1), 0px 4px 9px rgba(9, 11, 17, 0.12);
/* Text Sizes */
--text-sm: 0.875rem; --text-sm: 0.875rem;
--text-base: 1rem; --text-base: 1rem;
--text-md: 1.125rem; --text-md: 1.125rem;
@@ -63,13 +58,11 @@
--text-4xl: 3.5rem; --text-4xl: 3.5rem;
--text-5xl: 4.5rem; --text-5xl: 4.5rem;
/* Fonts */
--font-system: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, --font-system: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu,
Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif; Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
--font-body: 'Public Sans', var(--font-system); --font-body: 'Public Sans', var(--font-system);
--font-brand: Rubik, var(--font-system); --font-brand: Rubik, var(--font-system);
/* Transitions */
--theme-transition: 0.2s ease-in-out; --theme-transition: 0.2s ease-in-out;
} }
@@ -176,8 +169,6 @@ h5 {
font-size: var(--text-xl); font-size: var(--text-xl);
} }
/* Utilities */
.sr-only { .sr-only {
position: absolute; position: absolute;
width: 1px; width: 1px;