Skip to content

Commit 8f53506

Browse files
committed
update homepage & format
1 parent 24a8262 commit 8f53506

File tree

6 files changed

+10
-15
lines changed

6 files changed

+10
-15
lines changed

src/app.html

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@
66
%sveltekit.head%
77
</head>
88
<body data-sveltekit-preload-data="hover">
9-
<div class="flex h-dvh flex-col">
10-
%sveltekit.body%
11-
</div>
9+
<div class="flex h-dvh flex-col">%sveltekit.body%</div>
1210
</body>
1311
</html>

src/components/Footer.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22
let { text } = $props();
33
</script>
44

5-
<footer class="p-4 bg-neutral-900 text-white">
5+
<footer class="bg-neutral-900 p-4 text-white">
66
<p class="text-xs">{text}</p>
77
</footer>

src/components/Navbar.svelte

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
const toggle = (state) => () => (opened = state);
99
</script>
1010

11-
<nav class="fixed top-0 left-0 flex w-dvw items-center justify-between p-4 bg-neutral-900 text-white">
11+
<nav class="fixed top-0 left-0 flex w-dvw items-center justify-between bg-neutral-900 p-4 text-white">
1212
<a class="font-black" href="/">Hyper-Z11</a>
1313
<button class="flex md:hidden" onclick={toggle(true)}><Icon icon="three-dots-vertical" class="h-5 w-5" /></button>
1414
<ul class="hidden flex-row gap-4 md:flex">
@@ -30,7 +30,7 @@
3030
out:fade></button>
3131

3232
<ul
33-
class="fixed top-0 right-0 z-100 flex h-dvh flex-col gap-4 bg-neutral-900 text-white w-35 p-5"
33+
class="fixed top-0 right-0 z-100 flex h-dvh w-35 flex-col gap-4 bg-neutral-900 p-5 text-white"
3434
in:slide={{ axis: "x" }}
3535
out:slide={{ axis: "x" }}>
3636
<li class="flex items-center justify-between">

src/routes/+layout.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525

2626
<Navbar menu={navbarMenu} />
2727

28-
<main class="grow p-3 pt-16 bg-neutral-800 text-white">
28+
<main class="grow bg-neutral-800 p-3 pt-16 text-white">
2929
<div class="container mx-auto">
3030
{@render children()}
3131
</div>

src/routes/+page.svelte

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@
33
import Head from "$components/Head.svelte";
44
import projects from "./projects.json";
55
6-
const bornYear = 2011;
7-
let yearsOld = $state(new Date().getFullYear() - bornYear);
8-
96
const profiles = [
107
{
118
name: "GitHub",
@@ -28,7 +25,7 @@
2825
<div class="flex flex-col gap-2 md:flex-row">
2926
<div>
3027
<img class="mx-auto max-h-fit max-w-3xs rounded border-4 border-neutral-600" src="/favicon.png" alt="Profile" />
31-
<ul class="flex my-2 flex-row gap-2 mx-auto w-fit flex-wrap-reverse justify-center">
28+
<ul class="mx-auto my-2 flex w-fit flex-row flex-wrap-reverse justify-center gap-2">
3229
{#each profiles as { name, icon, url } (url)}
3330
<li><a href={url} class="flex items-center gap-1"><Icon {icon} />{name}</a></li>
3431
{/each}
@@ -38,10 +35,10 @@
3835
<section id="about">
3936
<h2>About</h2>
4037
<p class="**:inline">
41-
Hello, i'm <b>Hyper-Z11</b> (he/him). The {yearsOld} years old beginner programmer. My real name is
38+
Hello, i'm <b>Hyper-Z11</b> (he/him). The beginner programmer. My real name is
4239
<b>Firjatullah Zeroun</b>. I'm from
43-
<a href="https://en.wikipedia.org/wiki/Indonesia"><b><Icon icon="pin-map" class="mx-1" />Indonesia</b></a>. I like coding as my
44-
hobby and contributing to open source projects if i want.
40+
<a href="https://en.wikipedia.org/wiki/Indonesia"><b><Icon icon="pin-map" class="mx-1" />Indonesia</b></a>. I like
41+
coding as my hobby and contributing to open source projects if i want.
4542
</p>
4643
</section>
4744

src/routes/blogs/+page.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
<div class="py-2">
2121
<h3 class="text-3xl font-extrabold">{title}</h3>
2222
<p class="my-1 text-sm text-gray-400">{formatDate(date)}</p>
23-
<p class="my-2 text-md">{description}</p>
23+
<p class="text-md my-2">{description}</p>
2424
<a class="text-blue-500 hover:text-blue-400" href="/blogs/{slug}">Read more</a>
2525
</div>
2626
{/each}

0 commit comments

Comments
 (0)