-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
website / Improve navigation and home hero section
- Loading branch information
1 parent
5ead3b5
commit 348dfe1
Showing
17 changed files
with
128 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,4 +6,5 @@ set -eo pipefail | |
|
||
moon :format-fix --affected | ||
moon :lint-fix --affected | ||
git add -u | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
<template> | ||
<div class="flex flex-row items-stretch justify-start gap-2"> | ||
<div class="h-full"> | ||
<!--<div class="h-full"> | ||
<img | ||
src="/logos/lychen/logo-lychen.webp" | ||
class="h-full w-auto" | ||
/> | ||
</div> | ||
</div>--> | ||
|
||
<div class="flex flex-col items-start justify-center gap-0 antialiased"> | ||
<p class="font-lexend text-xl font-bold leading-5">Lychen</p> | ||
<small class="text-surface-container-on/60 text-sm">by Alpsify</small> | ||
<p class="font-lexend text-xl font-bold leading-5 tracking-wide antialiased">lychen</p> | ||
<!--<small class="text-surface-container-on/60 text-sm">by Alpsify</small>--> | ||
</div> | ||
</div> | ||
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
<template> | ||
<span :class="cn('inline-block px-1 pb-2', props.class)"><slot /></span> | ||
</template> | ||
|
||
<script setup lang="ts"> | ||
import { computed, type HTMLAttributes } from 'vue'; | ||
import { cn } from '../lib/utils'; | ||
interface Props { | ||
delay?: number; | ||
duration?: number; | ||
class?: HTMLAttributes['class']; | ||
textEndColor?: string; | ||
} | ||
const props = withDefaults(defineProps<Props>(), { | ||
delay: 0, | ||
duration: 2000, | ||
endColor: 'inherit', | ||
class: undefined, | ||
textEndColor: undefined, | ||
}); | ||
const delayMs = computed(() => `${props.delay}ms`); | ||
const durationMs = computed(() => `${props.duration}ms`); | ||
</script> | ||
|
||
<style scoped> | ||
@keyframes background-expand { | ||
0% { | ||
background-size: 0% 100%; | ||
} | ||
100% { | ||
background-size: 100% 100%; | ||
} | ||
} | ||
@keyframes text-color-change { | ||
0% { | ||
color: inherit; | ||
} | ||
100% { | ||
color: v-bind(textEndColor); | ||
} | ||
} | ||
span { | ||
background-size: 0% 100%; | ||
background-repeat: no-repeat; | ||
background-position: left center; | ||
animation: | ||
background-expand v-bind(durationMs) ease-in-out v-bind(delayMs) forwards, | ||
text-color-change v-bind(durationMs) ease-in-out v-bind(delayMs) forwards; | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters