modify config to reflect updated server csp
This commit is contained in:
parent
6c18cef2da
commit
6cbdcd01a0
12 changed files with 36 additions and 53 deletions
|
@ -5,10 +5,29 @@ import mdx from "@astrojs/mdx";
|
||||||
import tailwind from "@astrojs/tailwind";
|
import tailwind from "@astrojs/tailwind";
|
||||||
import icon from "astro-icon";
|
import icon from "astro-icon";
|
||||||
|
|
||||||
|
import expressiveCode from "astro-expressive-code";
|
||||||
|
|
||||||
// https://astro.build/config
|
// https://astro.build/config
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
site: "https://troylusty.com",
|
site: "https://troylusty.com",
|
||||||
integrations: [sitemap(), mdx(), tailwind(), icon()],
|
integrations: [
|
||||||
|
sitemap(),
|
||||||
|
expressiveCode({
|
||||||
|
themes: ["github-dark-default", "github-light-default"],
|
||||||
|
defaultProps: {
|
||||||
|
frame: "none",
|
||||||
|
wrap: true,
|
||||||
|
},
|
||||||
|
styleOverrides: {
|
||||||
|
frames: {
|
||||||
|
shadowColor: "none",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}),
|
||||||
|
mdx(),
|
||||||
|
tailwind(),
|
||||||
|
icon(),
|
||||||
|
],
|
||||||
output: "static",
|
output: "static",
|
||||||
markdown: {
|
markdown: {
|
||||||
rehypePlugins: [
|
rehypePlugins: [
|
||||||
|
@ -19,17 +38,10 @@ export default defineConfig({
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
shikiConfig: {
|
|
||||||
wrap: true,
|
|
||||||
},
|
|
||||||
syntaxHighlight: false,
|
|
||||||
},
|
},
|
||||||
image: {
|
image: {
|
||||||
service: passthroughImageService(),
|
service: passthroughImageService(),
|
||||||
},
|
},
|
||||||
build: {
|
|
||||||
inlineStylesheets: "never",
|
|
||||||
},
|
|
||||||
experimental: {
|
experimental: {
|
||||||
responsiveImages: true,
|
responsiveImages: true,
|
||||||
},
|
},
|
||||||
|
|
BIN
bun.lockb
BIN
bun.lockb
Binary file not shown.
|
@ -20,6 +20,7 @@
|
||||||
"@fontsource-variable/red-hat-mono": "^5.1.1",
|
"@fontsource-variable/red-hat-mono": "^5.1.1",
|
||||||
"@fontsource/borel": "^5.1.1",
|
"@fontsource/borel": "^5.1.1",
|
||||||
"astro": "^5.1.7",
|
"astro": "^5.1.7",
|
||||||
|
"astro-expressive-code": "^0.40.1",
|
||||||
"astro-icon": "^1.1.5",
|
"astro-icon": "^1.1.5",
|
||||||
"rehype-external-links": "^3.0.0",
|
"rehype-external-links": "^3.0.0",
|
||||||
"tailwindcss": "^3.4.17",
|
"tailwindcss": "^3.4.17",
|
||||||
|
|
|
@ -9,7 +9,7 @@ const { href, link } = Astro.props;
|
||||||
|
|
||||||
<a href={`${href}`}>
|
<a href={`${href}`}>
|
||||||
<div
|
<div
|
||||||
class="mt-2 flex animate-reveal flex-row items-center gap-1 justify-self-center rounded-full bg-tertiary px-2 py-1 text-sm font-medium capitalize text-primary opacity-0 transition-colors [animation-delay:0.1s] hover:bg-accent"
|
class="m-4 flex w-fit animate-reveal flex-row items-center gap-1 justify-self-center rounded-full bg-tertiary px-2 py-1 text-sm font-medium capitalize text-primary opacity-0 transition-colors [animation-delay:0.1s] hover:bg-accent"
|
||||||
>
|
>
|
||||||
{link}
|
{link}
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -15,7 +15,7 @@ import borel from "@fontsource/borel/files/borel-latin-400-normal.woff2?url";
|
||||||
class="--translate-y-full animate-logo text-pretty text-4xl font-bold md:text-6xl"
|
class="--translate-y-full animate-logo text-pretty text-4xl font-bold md:text-6xl"
|
||||||
>
|
>
|
||||||
Digital designer based in the <span
|
Digital designer based in the <span
|
||||||
class="animate-gradient-x bg-gradient-to-r from-indigo-500 from-10% via-sky-500 via-30% to-emerald-500 to-90% bg-clip-text font-['Borel'] text-3xl font-medium text-transparent md:text-5xl"
|
class="animate-gradient-x bg-gradient-to-r from-indigo-500 from-10% via-sky-500 via-30% to-emerald-500 to-90% bg-clip-text px-1 font-['Borel'] text-3xl font-bold text-transparent md:text-5xl"
|
||||||
>United Kingdom</span
|
>United Kingdom</span
|
||||||
>.
|
>.
|
||||||
</h1>
|
</h1>
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
<div
|
<div
|
||||||
class="prose max-w-full prose-headings:text-secondary prose-h1:text-xl prose-h1:font-bold prose-p:max-w-full prose-p:text-pretty prose-p:break-words prose-p:text-secondary prose-a:text-secondary prose-a:underline prose-a:decoration-tertiary prose-a:decoration-wavy prose-blockquote:border-secondary prose-strong:text-secondary prose-code:whitespace-pre-wrap prose-code:font-medium prose-code:text-secondary prose-code:before:content-none prose-code:after:content-none prose-pre:w-fit prose-pre:max-w-full prose-pre:border-2 prose-pre:border-dashed prose-pre:border-tertiary prose-pre:bg-primary prose-li:text-secondary prose-li:marker:text-secondary prose-img:max-h-[90vh] prose-img:w-auto prose-img:max-w-full prose-img:rounded prose-video:max-h-[90vh] prose-video:w-auto prose-video:max-w-full prose-video:rounded"
|
class="prose max-w-full prose-headings:text-secondary prose-h1:text-xl prose-h1:font-bold prose-p:max-w-full prose-p:text-pretty prose-p:break-words prose-p:text-secondary prose-a:text-secondary prose-a:underline prose-a:decoration-tertiary prose-a:decoration-wavy prose-blockquote:border-secondary prose-strong:text-secondary prose-code:whitespace-pre-wrap prose-code:font-medium prose-code:text-secondary prose-code:before:content-none prose-code:after:content-none prose-li:text-secondary prose-li:marker:text-secondary prose-img:max-h-[90vh] prose-img:w-auto prose-img:max-w-full prose-img:rounded prose-video:max-h-[90vh] prose-video:w-auto prose-video:max-w-full prose-video:rounded"
|
||||||
>
|
>
|
||||||
<slot />
|
<slot />
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
---
|
---
|
||||||
import { Icon } from "astro-icon/components";
|
import Button from "./Button.astro";
|
||||||
|
|
||||||
import { type CollectionEntry, getCollection } from "astro:content";
|
import { type CollectionEntry, getCollection } from "astro:content";
|
||||||
|
|
||||||
type Props = {
|
type Props = {
|
||||||
|
@ -21,39 +20,17 @@ const next = items[(index + 1) % items.length];
|
||||||
{
|
{
|
||||||
items.length > 1 ? (
|
items.length > 1 ? (
|
||||||
<div class="mx-auto mt-8 flex max-w-prose justify-between gap-4 md:gap-0">
|
<div class="mx-auto mt-8 flex max-w-prose justify-between gap-4 md:gap-0">
|
||||||
<div class="group flex w-fit flex-row items-center justify-between gap-2">
|
<div class="group flex w-fit flex-row items-center justify-between">
|
||||||
<a
|
<Button
|
||||||
href={`/${prev.collection}/${prev.slug}`}
|
href={`/${prev.collection}/${prev.slug}`}
|
||||||
class="animate-reveal opacity-0"
|
link={`Previous: ${prev.data.title}`}
|
||||||
>
|
/>
|
||||||
<Icon
|
|
||||||
name="mdi:arrow-left"
|
|
||||||
title="All projects"
|
|
||||||
class="h-4 w-auto text-tertiary transition-colors duration-300 group-hover:text-accent"
|
|
||||||
/>
|
|
||||||
</a>
|
|
||||||
<a href={`/${prev.collection}/${prev.slug}`}>
|
|
||||||
<p class="animate-reveal break-words font-medium text-tertiary opacity-0 transition-colors duration-300 group-hover:text-accent">
|
|
||||||
{prev.data.title}
|
|
||||||
</p>
|
|
||||||
</a>
|
|
||||||
</div>
|
</div>
|
||||||
<div class="group flex w-fit flex-row items-center justify-between gap-2 self-end">
|
<div class="group flex w-fit flex-row items-center justify-between self-end">
|
||||||
<a href={`/${next.collection}/${next.slug}`}>
|
<Button
|
||||||
<p class="animate-reveal break-words font-medium text-tertiary opacity-0 transition-colors duration-300 group-hover:text-accent">
|
|
||||||
{next.data.title}
|
|
||||||
</p>
|
|
||||||
</a>
|
|
||||||
<a
|
|
||||||
href={`/${next.collection}/${next.slug}`}
|
href={`/${next.collection}/${next.slug}`}
|
||||||
class="animate-reveal opacity-0"
|
link={`Next: ${next.data.title}`}
|
||||||
>
|
/>
|
||||||
<Icon
|
|
||||||
name="mdi:arrow-right"
|
|
||||||
title="All projects"
|
|
||||||
class="h-4 w-auto text-tertiary transition-colors duration-300 group-hover:text-accent"
|
|
||||||
/>
|
|
||||||
</a>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
) : null
|
) : null
|
||||||
|
|
|
@ -18,7 +18,6 @@ const skills = await Promise.all(
|
||||||
<li class="group flex items-center gap-2 rounded border border-tertiary p-2 text-tertiary transition-colors hover:border-accent hover:text-accent">
|
<li class="group flex items-center gap-2 rounded border border-tertiary p-2 text-tertiary transition-colors hover:border-accent hover:text-accent">
|
||||||
<Icon
|
<Icon
|
||||||
name={entry.data.icon}
|
name={entry.data.icon}
|
||||||
title={entry.data.title}
|
|
||||||
class="h-5 w-auto text-tertiary transition-colors group-hover:text-accent"
|
class="h-5 w-auto text-tertiary transition-colors group-hover:text-accent"
|
||||||
/>
|
/>
|
||||||
<p class="m-0 cursor-default">{entry.data.title}</p>
|
<p class="m-0 cursor-default">{entry.data.title}</p>
|
||||||
|
|
|
@ -53,7 +53,7 @@ const work = defineCollection({
|
||||||
role: z.string(),
|
role: z.string(),
|
||||||
dateStart: z.coerce.date(),
|
dateStart: z.coerce.date(),
|
||||||
dateEnd: z.union([z.coerce.date(), z.string()]),
|
dateEnd: z.union([z.coerce.date(), z.string()]),
|
||||||
article: z.string().url().optional(),
|
article: z.string().optional(),
|
||||||
}),
|
}),
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -3,7 +3,7 @@ company: "Camouflage Store"
|
||||||
role: "E-commerce Management & Video Production"
|
role: "E-commerce Management & Video Production"
|
||||||
dateStart: "2020"
|
dateStart: "2020"
|
||||||
dateEnd: "Current"
|
dateEnd: "Current"
|
||||||
article: "https://troylusty.com/projects/camouflage-store"
|
article: "/projects/camouflage-store"
|
||||||
---
|
---
|
||||||
|
|
||||||
Migrating and managing an ecommerce store, in addition to creating informational video content.
|
Migrating and managing an ecommerce store, in addition to creating informational video content.
|
||||||
|
|
|
@ -3,7 +3,7 @@ company: "WebBoss"
|
||||||
role: "Web Design Mockups"
|
role: "Web Design Mockups"
|
||||||
dateStart: "2019"
|
dateStart: "2019"
|
||||||
dateEnd: "2019"
|
dateEnd: "2019"
|
||||||
article: "https://troylusty.com/projects/webboss"
|
article: "/projects/webboss"
|
||||||
---
|
---
|
||||||
|
|
||||||
I joined WebBoss for a week as my work experience placement in Sixth Form. In my
|
I joined WebBoss for a week as my work experience placement in Sixth Form. In my
|
||||||
|
|
|
@ -35,12 +35,6 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@layer components {
|
|
||||||
.prose img {
|
|
||||||
@apply cursor-pointer transition-transform hover:scale-[98%] active:scale-[200%];
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@media print {
|
@media print {
|
||||||
body {
|
body {
|
||||||
background: none;
|
background: none;
|
||||||
|
|
Loading…
Add table
Reference in a new issue