feat(ui): update homepage copy and import LinkedIn profile
Contact bar: Gmail, Heilbronn and a LinkedIn link; the phone chip is removed. Hero: System Architect / Programmer, new pill and quote. Feature cards: humility, learning and helpfulness instead of the infrastructure copy. Terminal: six chapters from the LinkedIn export (PreZero active; Defifort, Alignerr, Outlier, freelance and 42 finished), each with a context label. Rows use a fixed grid so names, context badges, status, uptime and outcome line up vertically; the title bar has red/yellow/green traffic lights and the footer pluralises its counters (1/5/14). OKF: new profile data document for the export and chapter mapping; backend endpoint examples and totals match the real rows.
This commit is contained in:
1 parent
26739731ed
commit
9a4d79a050
11 files changed
+211
-56
No files matched your search
@@ -4,8 +4,12 @@ const props = defineProps<{
|
||||
value: string
|
||||
/** Omit for a plain chip (no copy button). */
|
||||
copyValue?: string
|
||||
/** Renders the chip as an external link instead of a copy chip. */
|
||||
href?: string
|
||||
}>()
|
||||
|
||||
const isLink = computed(() => Boolean(props.href))
|
||||
|
||||
const copied = ref(false)
|
||||
let resetTimer: ReturnType<typeof setTimeout> | undefined
|
||||
|
||||
@@ -27,22 +31,30 @@ onBeforeUnmount(() => clearTimeout(resetTimer))
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div
|
||||
<component
|
||||
:is="isLink ? 'a' : 'div'"
|
||||
:href="isLink ? href : undefined"
|
||||
:target="isLink ? '_blank' : undefined"
|
||||
:rel="isLink ? 'noopener noreferrer' : undefined"
|
||||
:aria-label="isLink ? `Open ${value} in a new tab` : undefined"
|
||||
class="flex items-center gap-2 rounded-lg bg-surface-container-low/70 px-3 py-2"
|
||||
:class="copyValue
|
||||
? 'justify-between transition-colors hover:bg-surface-container-high'
|
||||
: 'justify-center font-body-sm text-body-sm text-on-surface-variant'"
|
||||
:class="isLink
|
||||
? 'group justify-between gap-3 transition-colors hover:bg-surface-container-high'
|
||||
: copyValue
|
||||
? 'justify-between transition-colors hover:bg-surface-container-high'
|
||||
: 'justify-center font-body-sm text-body-sm text-on-surface-variant'"
|
||||
>
|
||||
<div class="flex min-w-0 items-center gap-2.5">
|
||||
<span class="material-symbols-outlined text-[1.125rem] text-outline">{{ icon }}</span>
|
||||
<span
|
||||
v-if="copyValue"
|
||||
class="select-all truncate font-body-sm text-body-sm text-on-surface"
|
||||
v-if="copyValue || isLink"
|
||||
class="truncate font-body-sm text-body-sm text-on-surface"
|
||||
:class="copyValue && !isLink ? 'select-all' : ''"
|
||||
>{{ value }}</span>
|
||||
<span v-else class="whitespace-nowrap text-on-surface">{{ value }}</span>
|
||||
</div>
|
||||
<button
|
||||
v-if="copyValue"
|
||||
v-if="copyValue && !isLink"
|
||||
type="button"
|
||||
class="flex items-center gap-1 rounded bg-surface-variant px-2 py-1 text-[0.625rem] font-semibold tracking-wider text-on-surface-variant transition-colors hover:text-on-surface active:scale-95"
|
||||
:aria-label="`Copy ${value}`"
|
||||
@@ -50,5 +62,9 @@ onBeforeUnmount(() => clearTimeout(resetTimer))
|
||||
>
|
||||
<span>{{ copied ? 'COPIED' : 'COPY' }}</span>
|
||||
</button>
|
||||
</div>
|
||||
<span
|
||||
v-else-if="isLink"
|
||||
class="material-symbols-outlined text-[0.875rem] text-outline transition-colors group-hover:text-on-surface"
|
||||
>open_in_new</span>
|
||||
</component>
|
||||
</template>
|
||||
Reference in new issue
Block a user