diff --git a/src/app.css b/src/app.css index da660e9..1e8e798 100644 --- a/src/app.css +++ b/src/app.css @@ -3,7 +3,8 @@ @tailwind utilities; * { @apply transition-all duration-300 ease-in-out; } -body { @apply bg-ctp-crust text-ctp-text max-w-3xl mx-auto my-8 px-4; } +html { @apply h-full scroll-smooth; } +body { @apply bg-ctp-crust text-ctp-text h-full; } h1 { @apply text-3xl md:text-4xl font-semibold my-4; } h2 { @apply text-2xl md:text-3xl font-bold my-4; } h3 { @apply text-xl md:text-2xl font-bold my-4; } diff --git a/src/routes/+page.svelte b/src/routes/+page.svelte index cdfea45..4593172 100644 --- a/src/routes/+page.svelte +++ b/src/routes/+page.svelte @@ -5,55 +5,69 @@ let days = daysUntilBirthday(data.birthday); let time = getTimeIn(data.timezone); + let charAmount = 50; -
-
-
- {randomStr(30)}
{randomStr(40)}
- {randomStr(20-data.name.length/2)}{data.name.toUpperCase()}{randomStr(20-data.name.length/2)} - {randomStr(40)}
{randomStr(30)}
-
+
+ +
+
+ {randomStr(charAmount)}
+ {randomStr(Math.round(charAmount-data.name.length/2))}{data.name.toUpperCase()}{randomStr(Math.round(charAmount-data.name.length/2))} + {randomStr(charAmount)}
- -
+ + +
-
-
-

{data.subtitle}

-

{data.description}

-

- It's {time} in {data.timezone}. - {days || 'Today'} { days ? 'day' + (days === 1 ? '' : 's') + ' until my birthday.' : 'is my birthday!' } -

-

- {#each data.skills as skill} - {skill} - {/each} -

-

- {#each Object.entries(data.links) as link, i} - {#if i > 0}~{/if} - {link[0]} - {/each} -

-
-
- - - - \ No newline at end of file +
+
+
+ +
+ +
+
+

{data.subtitle}

+

{data.description}

+

+ It's {time} in {data.timezone}. + {days || 'Today'} { days ? 'day' + (days === 1 ? '' : 's') + ' until my birthday.' : 'is my birthday!' } +

+

+ {#each data.skills as skill} + {skill} + {/each} +

+

+ {#each Object.entries(data.links) as [title, url], i} + {#if i > 0}~{/if} + {title} + {/each} +

+
+
+ {#each Object.entries(data.communities) as [name,details], i} +
+
+ {name} +
+

{name}

+ {details.role} +
+
+
+ {/each} +
+
+
+
\ No newline at end of file diff --git a/tailwind.config.js b/tailwind.config.js index 31c6ef4..9cb95c7 100644 --- a/tailwind.config.js +++ b/tailwind.config.js @@ -5,4 +5,21 @@ export default { defaultFlavour: 'mocha', prefix: 'ctp', })], + theme: { + extend: { + backgroundImage: { + '-gradient-6': 'linear-gradient(-6deg, var(--tw-gradient-stops))' + }, + animation: { + 'scrolling-text-to-l': 'scroll 5s linear infinite', + 'scrolling-text-to-r': 'scroll 5s linear infinite reverse', + }, + keyframes: { + scroll: { + '0%': { transform: 'translateX(-100%)' }, + '100%': { transform: 'translateX(100%)' }, + }, + }, + }, + }, }; \ No newline at end of file