Skip to content

Commit c9f0a23

Browse files
authored
content: Remove videos and work from index (#537)
1 parent 055ff10 commit c9f0a23

File tree

1 file changed

+1
-43
lines changed

1 file changed

+1
-43
lines changed

src/pages/index.astro

Lines changed: 1 addition & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,7 @@
11
---
2-
import { getCollection } from "astro:content";
3-
42
import Center from "../components/Center.astro";
5-
import ProjectPreview from "../components/ProjectPreview.astro";
63
import Synth from "../components/Synth/Synth.astro";
74
import BaseLayout from "../layouts/BaseLayout.astro";
8-
9-
const work = await getCollection("work");
10-
11-
// Sort by year subdirectory
12-
work.sort((a, b) =>
13-
Number.parseInt(a.id.substring(0, 4)) > Number.parseInt(b.id.substring(0, 4))
14-
? -1
15-
: 1,
16-
);
175
---
186

197
<BaseLayout
@@ -36,20 +24,6 @@ work.sort((a, b) =>
3624
<div class="synth">
3725
<Synth />
3826
</div>
39-
<div class="continue">
40-
<svg
41-
xmlns="http://www.w3.org/2000/svg"
42-
viewBox="0 0 24 24"
43-
width="40px"
44-
fill="currentColor"
45-
><path
46-
d="M11.9999 13.1714L16.9497 8.22168L18.3639 9.63589L11.9999 15.9999L5.63599 9.63589L7.0502 8.22168L11.9999 13.1714Z"
47-
></path></svg
48-
>
49-
</div>
50-
</section>
51-
<section class="work">
52-
{work.map((project) => <ProjectPreview project={project} />)}
5327
</section>
5428
</Center>
5529
</BaseLayout>
@@ -109,23 +83,7 @@ work.sort((a, b) =>
10983
display: flex;
11084
flex-direction: column;
11185
gap: var(--space-3xl);
112-
min-height: calc(100svh - var(--space-3xl) * 1.8);
113-
}
114-
115-
.continue {
116-
display: flex;
117-
justify-content: center;
118-
align-items: center;
119-
margin-top: auto;
120-
color: var(--gray-10);
121-
122-
@supports (animation-timeline: view()) {
123-
animation-name: fadeOut;
124-
animation-timing-function: linear;
125-
animation-fill-mode: both;
126-
animation-timeline: view();
127-
animation-range: contain 50% contain 80%;
128-
}
86+
padding-block-end: var(--space-3xl);
12987
}
13088

13189
@keyframes rotate {

0 commit comments

Comments
 (0)