Skip to content

Commit

Permalink
feat: Upgrade to deno 2 (#20)
Browse files Browse the repository at this point in the history
  • Loading branch information
eliassjogreen authored Oct 15, 2024
1 parent b54eb92 commit 98e57a8
Show file tree
Hide file tree
Showing 18 changed files with 300 additions and 382 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,15 @@ jobs:
- name: Setup deno
uses: denoland/setup-deno@v1
with:
deno-version: v1.x
deno-version: v2.x
- name: Build
run: deno task build
- name: Setup Pages
uses: actions/configure-pages@v5
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: './build/'
path: "./build/"
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
88 changes: 44 additions & 44 deletions components/BlogPost.css
Original file line number Diff line number Diff line change
@@ -1,55 +1,55 @@
.container {
display: flex;
flex-direction: column;
gap: 0.5rem;
display: flex;
flex-direction: column;
gap: 0.5rem;
}

.meta {
display: block;
font-size: 0.9rem;
color: var(--neutral-800);
white-space: pre-wrap;
margin-bottom: 2rem;
display: block;
font-size: 0.9rem;
color: var(--neutral-800);
white-space: pre-wrap;
margin-bottom: 2rem;
}

.meta > * {
display: inline-block;
display: inline-block;
}

.body {
word-wrap: break-word;

> *:first-child {
margin-top: 0 !important;
}

> *:last-child {
margin-bottom: 0 !important;
}

a {
text-decoration: underline 1px;
}

a:hover {
text-decoration: underline 2px;
}

hr {
background-color: var(--neutral-400);
height: 2px;
margin: 2rem 1rem;
border: none;
}

p,
blockquote,
ul,
ol,
dl,
table,
pre,
details {
margin-bottom: 2rem;
}
word-wrap: break-word;

> *:first-child {
margin-top: 0 !important;
}

> *:last-child {
margin-bottom: 0 !important;
}

a {
text-decoration: underline 1px;
}

a:hover {
text-decoration: underline 2px;
}

hr {
background-color: var(--neutral-400);
height: 2px;
margin: 2rem 1rem;
border: none;
}

p,
blockquote,
ul,
ol,
dl,
table,
pre,
details {
margin-bottom: 2rem;
}
}
24 changes: 12 additions & 12 deletions components/BlogPostCard.css
Original file line number Diff line number Diff line change
@@ -1,26 +1,26 @@
.container {
all: unset;
list-style: none;
display: flex;
flex-direction: column;
gap: 0.5rem;
all: unset;
list-style: none;
display: flex;
flex-direction: column;
gap: 0.5rem;
}

.link {
display: contents;
display: contents;
}

.meta {
display: block;
font-size: 0.9rem;
color: var(--neutral-800);
white-space: pre-wrap;
display: block;
font-size: 0.9rem;
color: var(--neutral-800);
white-space: pre-wrap;
}

.meta > * {
display: inline-block;
display: inline-block;
}

.container:hover .title {
text-decoration: underline 2px;
text-decoration: underline 2px;
}
4 changes: 2 additions & 2 deletions components/CopyLeft.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.copyleft {
display: inline-block;
transform: scaleX(-1);
display: inline-block;
transform: scaleX(-1);
}
24 changes: 12 additions & 12 deletions components/Footer.css
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
.footer {
display: flex;
justify-content: center;
border-top: 2px solid var(--neutral-950);
padding-top: 1rem;
display: flex;
justify-content: center;
border-top: 2px solid var(--neutral-950);
padding-top: 1rem;
}

.links {
display: flex;
flex-wrap: wrap;
align-items: end;
display: flex;
flex-wrap: wrap;
align-items: end;
}

.links > a {
margin-right: 1rem;
color: var(--neutral-950);
text-decoration: none;
margin-right: 1rem;
color: var(--neutral-950);
text-decoration: none;
}

.links > a:hover {
color: var(--neutral-800);
}
color: var(--neutral-800);
}
26 changes: 13 additions & 13 deletions components/Header.css
Original file line number Diff line number Diff line change
@@ -1,24 +1,24 @@
.header {
display: flex;
justify-content: space-between;
align-items: center;
border-bottom: 2px solid var(--neutral-950);
display: flex;
justify-content: space-between;
align-items: center;
border-bottom: 2px solid var(--neutral-950);
}

.logo {
all: unset;
cursor: pointer;
display: flex;
gap: 0.5rem;
align-items: center;
all: unset;
cursor: pointer;
display: flex;
gap: 0.5rem;
align-items: center;
}

.logo > svg {
height: 2rem;
width: 2rem;
height: 2rem;
width: 2rem;
}

.navigation {
display: flex;
gap: 1rem;
display: flex;
gap: 1rem;
}
10 changes: 5 additions & 5 deletions components/Layout.css
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
.main {
display: flex;
flex-direction: column;
flex-grow: 1;
padding: 2rem 0;
gap: 1rem;
display: flex;
flex-direction: column;
flex-grow: 1;
padding: 2rem 0;
gap: 1rem;
}
48 changes: 24 additions & 24 deletions components/Talk.css
Original file line number Diff line number Diff line change
@@ -1,50 +1,50 @@
.talk {
display: flex;
flex-direction: column;
gap: 0.5rem;
display: flex;
flex-direction: column;
gap: 0.5rem;
}

.video {
aspect-ratio: 16/9;
block-size: auto;
inline-size: 100%;
aspect-ratio: 16/9;
block-size: auto;
inline-size: 100%;
}

.info {
flex: 2;
display: flex;
flex-direction: column;
flex: 2;
display: flex;
flex-direction: column;
}

.title {
font-size: 1.25rem;
font-weight: bold;
font-size: 1.25rem;
font-weight: bold;
}

.meta {
display: block;
font-size: 0.9rem;
color: var(--neutral-800);
white-space: pre-wrap;
display: block;
font-size: 0.9rem;
color: var(--neutral-800);
white-space: pre-wrap;
}

.meta > * {
display: inline-block;
display: inline-block;
}

.slides {
all: unset;
list-style: none;
font-size: 0.9rem;
color: var(--neutral-800);
display: flex;
all: unset;
list-style: none;
font-size: 0.9rem;
color: var(--neutral-800);
display: flex;
}

.slides > li + li::before {
content: "•";
padding: 0 0.5rem;
content: "•";
padding: 0 0.5rem;
}

.description {
margin-top: 0.5rem;
margin-top: 0.5rem;
}
38 changes: 19 additions & 19 deletions components/icons/Discord.tsx
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
export function DiscordIcon(
{ class: className, width, height }: {
class?: string;
width?: number | string;
height?: number | string;
},
{ class: className, width, height }: {
class?: string;
width?: number | string;
height?: number | string;
},
) {
return (
<svg
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 24 24"
class={className}
width={width}
height={height}
>
<path
fill="currentColor"
d="M19.27 5.33C17.94 4.71 16.5 4.26 15 4a.1.1 0 0 0-.07.03c-.18.33-.39.76-.53 1.09a16.1 16.1 0 0 0-4.8 0c-.14-.34-.35-.76-.54-1.09c-.01-.02-.04-.03-.07-.03c-1.5.26-2.93.71-4.27 1.33c-.01 0-.02.01-.03.02c-2.72 4.07-3.47 8.03-3.1 11.95c0 .02.01.04.03.05c1.8 1.32 3.53 2.12 5.24 2.65c.03.01.06 0 .07-.02c.4-.55.76-1.13 1.07-1.74c.02-.04 0-.08-.04-.09c-.57-.22-1.11-.48-1.64-.78c-.04-.02-.04-.08-.01-.11c.11-.08.22-.17.33-.25c.02-.02.05-.02.07-.01c3.44 1.57 7.15 1.57 10.55 0c.02-.01.05-.01.07.01c.11.09.22.17.33.26c.04.03.04.09-.01.11c-.52.31-1.07.56-1.64.78c-.04.01-.05.06-.04.09c.32.61.68 1.19 1.07 1.74c.03.01.06.02.09.01c1.72-.53 3.45-1.33 5.25-2.65c.02-.01.03-.03.03-.05c.44-4.53-.73-8.46-3.1-11.95c-.01-.01-.02-.02-.04-.02M8.52 14.91c-1.03 0-1.89-.95-1.89-2.12s.84-2.12 1.89-2.12c1.06 0 1.9.96 1.89 2.12c0 1.17-.84 2.12-1.89 2.12m6.97 0c-1.03 0-1.89-.95-1.89-2.12s.84-2.12 1.89-2.12c1.06 0 1.9.96 1.89 2.12c0 1.17-.83 2.12-1.89 2.12"
/>
</svg>
);
return (
<svg
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 24 24"
class={className}
width={width}
height={height}
>
<path
fill="currentColor"
d="M19.27 5.33C17.94 4.71 16.5 4.26 15 4a.1.1 0 0 0-.07.03c-.18.33-.39.76-.53 1.09a16.1 16.1 0 0 0-4.8 0c-.14-.34-.35-.76-.54-1.09c-.01-.02-.04-.03-.07-.03c-1.5.26-2.93.71-4.27 1.33c-.01 0-.02.01-.03.02c-2.72 4.07-3.47 8.03-3.1 11.95c0 .02.01.04.03.05c1.8 1.32 3.53 2.12 5.24 2.65c.03.01.06 0 .07-.02c.4-.55.76-1.13 1.07-1.74c.02-.04 0-.08-.04-.09c-.57-.22-1.11-.48-1.64-.78c-.04-.02-.04-.08-.01-.11c.11-.08.22-.17.33-.25c.02-.02.05-.02.07-.01c3.44 1.57 7.15 1.57 10.55 0c.02-.01.05-.01.07.01c.11.09.22.17.33.26c.04.03.04.09-.01.11c-.52.31-1.07.56-1.64.78c-.04.01-.05.06-.04.09c.32.61.68 1.19 1.07 1.74c.03.01.06.02.09.01c1.72-.53 3.45-1.33 5.25-2.65c.02-.01.03-.03.03-.05c.44-4.53-.73-8.46-3.1-11.95c-.01-.01-.02-.02-.04-.02M8.52 14.91c-1.03 0-1.89-.95-1.89-2.12s.84-2.12 1.89-2.12c1.06 0 1.9.96 1.89 2.12c0 1.17-.84 2.12-1.89 2.12m6.97 0c-1.03 0-1.89-.95-1.89-2.12s.84-2.12 1.89-2.12c1.06 0 1.9.96 1.89 2.12c0 1.17-.83 2.12-1.89 2.12"
/>
</svg>
);
}
Loading

0 comments on commit 98e57a8

Please sign in to comment.