Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix svelte #3

Merged
merged 1 commit into from
Jun 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
npm run build

- name: Upload Artifacts
uses: actions/upload-pages-artifact@v2
uses: actions/upload-pages-artifact@v3
with:
path: "build/"

Expand Down
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
.vscode
.svelte-kit

node_modules
node_modules
build
2 changes: 1 addition & 1 deletion src/lib/markdown/svelte-pages.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ npm i -D @sveltejs/adapter-static
## Modify svelte.config.js

```js
import adapter from "@sveltejs/adapter-auto";
import adapter from "@sveltejs/adapter-static";
import { vitePreprocess } from "@sveltejs/vite-plugin-svelte";

/** @type {import('@sveltejs/kit').Config} */
Expand Down
20 changes: 7 additions & 13 deletions src/routes/projects/+page.svelte
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<script>
import Project from "$lib/components/Card.svelte";
import img from "$lib/assets/particlegrid/mol-representations.png";
import molecule from "$lib/assets/particlegrid/mol-representations.png";
</script>

<h1 class="emphasize">Projects and Writeups</h1>
Expand All @@ -9,7 +9,7 @@
<Project
title="Fermidle"
subtitle="why do they call them dle's when they're anything but?"
link="/fermidle"
link="https://eferg.us/fermidle"
>
<p>
How many golf balls would it take to fill the oceans? How many Empire
Expand Down Expand Up @@ -54,7 +54,7 @@
The overall process is is to go from SMILES string (a) to 3D grid (f). For
more info, take a look at the paper!
</p>
<img src={img} alt="The principle of ParticleGrid" />
<img src={molecule} alt="The principle of ParticleGrid" />
</Project>
<Project
title="Static Svlete on GitHub Pages"
Expand All @@ -68,23 +68,17 @@
much fluff, so that's what this is.
</p>
</Project>
<Project
title="No-JS dark mode toggle"
subtitle="Writeup"
link="/projects/dark-mode"
>
<!-- TODO: link -->
<Project title="No-JS dark mode toggle" subtitle="Writeup" link="">
<p>
Everyone knows dark mode is best. Or something. But what if... you had the
option to choose? Well, some brilliant people have decided to make that
dream a reality, and I decided to try doing it using only CSS, without
using any JS.
</p>
</Project>
<Project
title="No-JS mobile menu"
subtitle="Writeup"
link="/projects/mobile-menu"
>
<!-- TODO: link -->
<Project title="No-JS mobile menu" subtitle="Writeup" link="">
<p>
Mobile pop-out menus are super nice, but you'd expect to need JS for
something that complex. But what if... you didn't? Similarly to my no-JS
Expand Down
2 changes: 1 addition & 1 deletion svelte.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import adapter from '@sveltejs/adapter-auto';
import adapter from '@sveltejs/adapter-static';
import { vitePreprocess } from '@sveltejs/vite-plugin-svelte';

/** @type {import('@sveltejs/kit').Config} */
Expand Down