Skip to content

Commit

Permalink
Merge pull request #3 from OmsinKrissada/main
Browse files Browse the repository at this point in the history
Last Updated Timestamp krub
  • Loading branch information
thasvarit authored Sep 22, 2024
2 parents 63aa123 + 52b4363 commit 6161cb8
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 88 deletions.
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
"@sveltejs/adapter-static": "^3.0.5",
"@sveltejs/kit": "^2.0.0",
"@sveltejs/vite-plugin-svelte": "^3.0.0",
"autoprefixer": "^10.4.20",
"svelte": "^4.2.7",
"svelte-check": "^4.0.0",
"typescript": "^5.0.0",
Expand Down
81 changes: 0 additions & 81 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 6 additions & 1 deletion src/routes/+layout.ts
Original file line number Diff line number Diff line change
@@ -1 +1,6 @@
export const prerender = true;
export const prerender = true;
export const csr = false;

export function load() {
return { built_at: new Date() };
}
23 changes: 18 additions & 5 deletions src/routes/+page.svelte
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
<script lang="ts">
import resources from "$lib/list.json";
import ExternalLinkIcon from "$lib/components/ExternalLinkIcon.svelte";
export let data;
</script>

<div id="container">
Expand All @@ -12,6 +14,9 @@
like!
</p>
<h2>Useful Stuff (at least for myself)</h2>
<p id="updated-at">
Last Updated: {data.built_at.toLocaleDateString()}
</p>
</header>

<ul id="list">
Expand Down Expand Up @@ -47,6 +52,16 @@
</div>

<style>
#updated-at {
margin-bottom: 1rem;
color: #717171;
font-size: small;
font-style: italic;
margin: 0;
margin-top: 0.5rem;
margin-bottom: 1.5rem;
}
#container {
/* @apply container px-4 py-10 max-w-2xl; */
margin: 0 auto;
Expand All @@ -67,15 +82,13 @@
h1 {
line-height: 2.5rem;
margin: 1.5rem 0;
}
h2 {
line-height: 2rem;
}
h1,
h2 {
margin: 1.5rem 0;
margin: 0;
margin-top: 1.5rem;
}
h3,
Expand Down

0 comments on commit 6161cb8

Please sign in to comment.