diff --git a/src/layouts/GridLayout.astro b/src/layouts/GridLayout.astro
index d08a48d..dddd61c 100644
--- a/src/layouts/GridLayout.astro
+++ b/src/layouts/GridLayout.astro
@@ -6,6 +6,7 @@ import BaseLayout from './BaseLayout.astro';
export interface Props {
backLink?: string;
class?: string;
+ description?: string;
footer?: boolean;
gap?: boolean;
grid?: 'fullsize' | 'wide' | 'narrow';
@@ -17,6 +18,7 @@ export interface Props {
const {
backLink,
class: className,
+ description,
footer = true,
gap = true,
grid = 'narrow',
@@ -44,7 +46,13 @@ const wrapperClasses = cx(
);
---
-
+
diff --git a/src/layouts/PageLayout.astro b/src/layouts/PageLayout.astro
index 87abf2f..79b8afd 100644
--- a/src/layouts/PageLayout.astro
+++ b/src/layouts/PageLayout.astro
@@ -5,6 +5,7 @@ import GridLayout from './GridLayout.astro';
export interface Props {
class?: string;
+ frontmatter?: any;
grid?: 'wide' | 'narrow';
}
@@ -12,8 +13,8 @@ const { frontmatter, class: className, grid = 'narrow' } = Astro.props;
const gridVariant = frontmatter.grid || grid;
---
-
-
+
+
{frontmatter.title}
diff --git a/src/pages/projects.astro b/src/pages/projects.astro
index 88ad51c..41d52cb 100644
--- a/src/pages/projects.astro
+++ b/src/pages/projects.astro
@@ -5,7 +5,7 @@ import { sortBySortKey } from '../utils/sort-by-sortkey';
import GridLayout from '../layouts/GridLayout.astro';
import PageTitle from '../components/PageTitle.astro';
-import { MoreLink } from '../components';
+import ProjectContainer from '../components/ProjectContainer.astro';
import { Content as Intro } from '../text/projects/intro.mdx';
@@ -14,7 +14,13 @@ const allProjects = await getCollection('projects');
allProjects.sort(sortBySortKey).reverse();
---
-
+
-
- {
- allProjects.map(({ slug, data }) => (
-
- {data.title}
- {data.description}
- {data.categories.join(' / ')}
- {data.more && (
-
- )}
-
- ))
- }
-
+
+ {allProjects.map((project) => )}
+
diff --git a/src/styles/global.css b/src/styles/global.css
index ccbba11..70cd511 100644
--- a/src/styles/global.css
+++ b/src/styles/global.css
@@ -86,6 +86,10 @@
}
/** Images */
+ img {
+ @apply block h-auto w-full rounded-1 border border-solid border-black/5 bg-black/5 shadow-img dark:border-white/5 dark:bg-white/5 dark:opacity-[0.87];
+ }
+
img[src$='.svg'] {
@apply border-0 bg-transparent shadow-none;
}
diff --git a/tailwind.config.cjs b/tailwind.config.cjs
index 9c5cc25..5206e9d 100644
--- a/tailwind.config.cjs
+++ b/tailwind.config.cjs
@@ -126,6 +126,7 @@ module.exports = {
column: '5.55vw',
layout: 'clamp(1.5rem, 5.55vw, 4.5rem)',
gap: 'clamp(1.5rem, 5.55vw, 6rem)',
+ halfgap: 'calc(clamp(1.5rem, 5.55vw, 6rem) / 2)',
icon: '24px',
'icon-small': '20px',
clickarea: '40px',
@@ -147,6 +148,7 @@ module.exports = {
},
boxShadow: {
subtle: '0 0 50px rgb(0 0 0 / 0.2)',
+ img: '0 2px 3px rgb(0 0 0 / 0.05)',
beveled: '0 1px 0 rgb(0 0 0 / 0.2), inset 0 0 0 2px #ffffff',
darkInset: 'inset 0 0 0 1px rgb(0 0 0 / 0.2)',
book: '0 0.1em 0.5em rgba(0, 0, 0, 0.5)',
@@ -159,7 +161,7 @@ module.exports = {
square: 'square',
},
dropShadow: {
- subtle: 'inset 0 0 5px rgb(0 0 0 / 0.15)',
+ subtle: '0 0 50px rgb(0 0 0 / 0.2)',
},
},
},