feat(main): simplify layout
This commit is contained in:
parent
453f203637
commit
e48cd4caab
3 changed files with 22 additions and 25 deletions
|
@ -5,6 +5,8 @@
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<Navbar />
|
<Navbar />
|
||||||
<main>
|
<main
|
||||||
|
class="mx-auto my-0 flex w-full max-w-5xl flex-col items-center px-8 py-0 text-center font-normal"
|
||||||
|
>
|
||||||
<slot />
|
<slot />
|
||||||
</main>
|
</main>
|
||||||
|
|
|
@ -24,29 +24,23 @@
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<img
|
<img
|
||||||
class="mx-auto my-20 aspect-square rounded-full shadow-[0_0_40px_20px] shadow-dark-text-gray"
|
class="mx-auto mb-14 mt-20 aspect-square rounded-full shadow-[0_0_40px_20px] shadow-dark-text-gray"
|
||||||
src="/favicon.svg"
|
src="/favicon.svg"
|
||||||
alt="logo"
|
alt="logo"
|
||||||
width="200"
|
width="200"
|
||||||
height="200"
|
height="200"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<h1 class="my-5 text-center text-4xl">
|
<h1 class="mb-16 px-4 py-2 text-center text-4xl">
|
||||||
<HandWave />Hello! I am <b>developomp</b>
|
<HandWave />Hello! I am <b>developomp</b>
|
||||||
</h1>
|
</h1>
|
||||||
|
|
||||||
<h2
|
|
||||||
class="mb-5 mt-20 px-4 py-1 text-3xl font-bold dark:bg-dark-text-default dark:text-dark-ui-bg"
|
|
||||||
>
|
|
||||||
Who am I?
|
|
||||||
</h2>
|
|
||||||
|
|
||||||
<span>
|
<span>
|
||||||
I am a <b>{age.toFixed(8)} years old</b> college student studying computer science
|
I am a <b>{age.toFixed(8)} years old</b> college student studying computer science
|
||||||
in Seoul, South Korea.
|
in Seoul, South Korea.
|
||||||
</span>
|
</span>
|
||||||
|
|
||||||
<div class="mt-12 flex flex-wrap justify-center">
|
<div class="mt-10 flex flex-wrap justify-center">
|
||||||
<a
|
<a
|
||||||
class="social-profile"
|
class="social-profile"
|
||||||
target="_blank"
|
target="_blank"
|
||||||
|
|
|
@ -5,27 +5,30 @@
|
||||||
@tailwind components;
|
@tailwind components;
|
||||||
@tailwind utilities;
|
@tailwind utilities;
|
||||||
|
|
||||||
|
html,
|
||||||
|
body,
|
||||||
|
#root {
|
||||||
|
@apply overflow-x-hidden;
|
||||||
|
}
|
||||||
|
|
||||||
|
html,
|
||||||
|
body {
|
||||||
|
@apply h-screen;
|
||||||
|
}
|
||||||
|
|
||||||
body {
|
body {
|
||||||
/* SvelteKit has 8px margin by default for some reason */
|
/* SvelteKit has 8px margin by default for some reason */
|
||||||
@apply m-0;
|
@apply m-0;
|
||||||
}
|
}
|
||||||
|
|
||||||
#root {
|
#root {
|
||||||
|
/* spacing */
|
||||||
|
@apply h-full;
|
||||||
|
|
||||||
/* color */
|
/* color */
|
||||||
@apply font-noto-sans dark:bg-dark-ui-bg dark:text-dark-text-default;
|
@apply font-noto-sans dark:bg-dark-ui-bg dark:text-dark-text-default;
|
||||||
}
|
}
|
||||||
|
|
||||||
main {
|
|
||||||
/* style */
|
|
||||||
@apply flex flex-col items-center;
|
|
||||||
|
|
||||||
/* spacing */
|
|
||||||
@apply mx-auto my-0 min-h-screen w-full max-w-5xl px-8 py-0 pb-20;
|
|
||||||
|
|
||||||
/* text */
|
|
||||||
@apply text-center font-normal;
|
|
||||||
}
|
|
||||||
|
|
||||||
a {
|
a {
|
||||||
/* style */
|
/* style */
|
||||||
@apply no-underline hover:underline;
|
@apply no-underline hover:underline;
|
||||||
|
@ -43,19 +46,17 @@ b {
|
||||||
}
|
}
|
||||||
|
|
||||||
.social-profile {
|
.social-profile {
|
||||||
@apply p-5;
|
@apply hover:rounded-2xl hover:bg-dark-ui-hover;
|
||||||
|
|
||||||
* {
|
* {
|
||||||
@apply text-[#888888] duration-150 ease-out;
|
@apply text-[#888888] duration-150 ease-out;
|
||||||
}
|
}
|
||||||
|
|
||||||
svg {
|
svg {
|
||||||
@apply w-10;
|
@apply m-5 w-10;
|
||||||
}
|
}
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
@apply rounded-2xl bg-dark-ui-hover;
|
|
||||||
|
|
||||||
* {
|
* {
|
||||||
@apply text-white;
|
@apply text-white;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue