From 1dffd47bc167818a744d9e407bd2dfb61171422c Mon Sep 17 00:00:00 2001 From: BOTAlex Date: Tue, 14 Jan 2025 02:56:20 +0100 Subject: [PATCH] oh fuck, even more cooking!!! --- src/routes/+page.svelte | 60 +++++---------------------- src/routes/comps/MobileTags.svelte | 10 +++++ src/routes/comps/NameAndTag.svelte | 6 ++- src/routes/comps/Profile.svelte | 66 ++++++++++++++++++++++++++++++ src/routes/comps/Tags.svelte | 30 ++++++++++++-- 5 files changed, 116 insertions(+), 56 deletions(-) create mode 100644 src/routes/comps/MobileTags.svelte create mode 100644 src/routes/comps/Profile.svelte diff --git a/src/routes/+page.svelte b/src/routes/+page.svelte index e6b6383..d5603bb 100644 --- a/src/routes/+page.svelte +++ b/src/routes/+page.svelte @@ -30,6 +30,7 @@ import Time5 from "$lib/GamePreviews/time-5.gif" import Tags from './comps/Tags.svelte'; import NameAndTag from './comps/NameAndTag.svelte'; + import Profile from './comps/Profile.svelte'; const mobileThreshold : string = '600px'; // was 1000px. zhen testing let mobile : boolean; @@ -65,59 +66,39 @@ Developers - -
- +

Hi, I am Alex/Zhen, {@html !mobile ? "" : "
"} I'm that chinese guy.

Here's my CV: pdf

-
+ -
- +

Hi, I use Arch, btw.

Linked-in

-
+ -
-
-
 
- -
 
-
 
-
-
-
- - -

I'm the diversity hire. (Gay)

-

Linked-in

-
-
-
+ -
- +

Snorre does not get paid.

Linked-in

-
+
-
- +

Hi, I am [insert text here]

Here's a joke about recursion: recursion

-
+ @@ -241,27 +222,6 @@ font-family: var(--title-font); } - .developersProfile:not(.snorre):not(.snorre-overlay){ - background-image: linear-gradient(oklch(var(--p)) 33%, rgba(255,255,255,0) 0%); - background-position: left; - background-size: 0.1rem 0.5rem; - background-repeat: repeat-y; - } - - .snorre { - border-left: dashed transparent 0.1rem; - border-image: linear-gradient(to bottom, red, orange, yellow, green, blue, indigo, violet); - border-image-slice: 1; - } - - .snorre-overlay { - background-image: linear-gradient(rgba(255,255,255,0) 0%, rgba(255,255,255,0) 40%, oklch(var(--b1)) 40%); - background-position: left; - background-size: 0.1rem 0.5rem; - background-repeat: repeat-y; - } - - #backgroundGif{ width: 100%; height: 100%; diff --git a/src/routes/comps/MobileTags.svelte b/src/routes/comps/MobileTags.svelte new file mode 100644 index 0000000..40e4eac --- /dev/null +++ b/src/routes/comps/MobileTags.svelte @@ -0,0 +1,10 @@ + + +{#if isMobile} + +{/if} \ No newline at end of file diff --git a/src/routes/comps/NameAndTag.svelte b/src/routes/comps/NameAndTag.svelte index 1eea9f2..9862718 100644 --- a/src/routes/comps/NameAndTag.svelte +++ b/src/routes/comps/NameAndTag.svelte @@ -1,5 +1,5 @@ + + +{#if !isSnorre} +
+ + +

Hi, I am Alex/Zhen, {@html !isMobile ? "" : "
"} I'm that chinese guy.

+

Here's my CV: pdf

+
+ +
+{:else} +
+
+
 
+ +
 
+
 
+
+ {#if isMobile} +
 
+ {/if} +
+
+ + +

I'm the diversity hire. (Gay)

+

Linked-in

+
+ +
+
+{/if} + + \ No newline at end of file diff --git a/src/routes/comps/Tags.svelte b/src/routes/comps/Tags.svelte index 5c110d7..7651497 100644 --- a/src/routes/comps/Tags.svelte +++ b/src/routes/comps/Tags.svelte @@ -1,18 +1,40 @@ -
+
{#each Tags as tag} -
{tag}
+ {@const key = tag.replaceAll(" ", "").toLowerCase()} + {#if key.indexOf("/") < 0} +
{tag}
+ {:else} + + {#if typeof colors[key] === 'object' && colors[key] !== null} +
+ {tag} +
+ {:else} +
+ {tag} +
+ {/if} + {/if} {/each}
@@ -22,11 +44,11 @@ align-items: center; justify-content: center; height: 1.25rem /* 20px */; - font-size: 0.875rem /* 14px */; line-height: 1.25rem /* 20px */; width: fit-content; padding-left: 0.563rem /* 9.008px */; padding-right: 0.563rem /* 9.008px */; border-radius: var(--rounded-badge, 1.9rem /* 30.4px */); } + \ No newline at end of file