forked from nuxt/nuxt.com
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
43 changed files
with
727 additions
and
163 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
65 changes: 65 additions & 0 deletions
65
components/content/enterprise/support/EnterpriseSupportClientCard.vue
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,65 @@ | ||
<script setup lang="ts"> | ||
defineProps({ | ||
quote: { | ||
type: String, | ||
default: '' | ||
}, | ||
author: { | ||
type: String, | ||
default: '' | ||
}, | ||
job: { | ||
type: String, | ||
default: '' | ||
}, | ||
logo: { | ||
type: Object as PropType<{ light: string, dark: string, alt: string, width: number, height: number }>, | ||
default: () => ({}) | ||
}, | ||
achievements: { | ||
type: Array as PropType<Array<{ title: string, color: string }>>, | ||
default: () => [] | ||
} | ||
}) | ||
</script> | ||
|
||
<template> | ||
<UPageCard> | ||
<template #description> | ||
{{ quote }} | ||
</template> | ||
|
||
<div class="flex flex-col justify-end h-full gap-y-4"> | ||
<div class="flex justify-between gap-x-8 pt-6"> | ||
<div> | ||
<div class="font-semibold text-gray-900 dark:text-white"> | ||
{{ author }} | ||
</div> | ||
<div class="text-sm text-gray-600 dark:text-gray-400"> | ||
{{ job }} | ||
</div> | ||
</div> | ||
|
||
<UColorModeImage | ||
:light="logo.light" | ||
:dark="logo.dark" | ||
:width="logo.width" | ||
:height="logo.height" | ||
:alt="logo.alt" | ||
class="h-[24px]" | ||
/> | ||
</div> | ||
|
||
<ul class="flex gap-x-1 flex-wrap gap-2"> | ||
<li v-for="achievement in achievements" :key="achievement.title"> | ||
<UBadge v-bind="achievement" variant="subtle" /> | ||
</li> | ||
</ul> | ||
</div> | ||
</UPageCard> | ||
<!-- Safelist color for badge --> | ||
<!-- <UBadge color="pink" /> --> | ||
<!-- <UBadge color="orange" /> --> | ||
<!-- <UBadge color="yellow" /> --> | ||
<!-- <UBadge color="purple" /> --> | ||
</template> |
37 changes: 37 additions & 0 deletions
37
components/content/enterprise/support/EnterpriseSupportExpertiseCircle.vue
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,37 @@ | ||
<script lang="ts" setup> | ||
const { logo } = defineProps({ | ||
logo: { | ||
type: Object as PropType<{ src: string, height: number, width: number, color: string, alt: string }>, | ||
default: () => {} | ||
} | ||
}) | ||
const color = logo.color | ||
const circle = ref<HTMLDivElement>() | ||
const { elementX, elementY } = useMouseInElement(circle) | ||
</script> | ||
|
||
<template> | ||
<div | ||
ref="circle" | ||
:style="{ | ||
'--x': `${elementX}px`, | ||
'--y': `${elementY}px` | ||
}" | ||
class="relative group isolate ring-1 bg-white dark:bg-gray-900 ring-gray-200 dark:ring-gray-800 before:hidden before:lg:block before:absolute before:-inset-[2px] before:h-[calc(100%+4px)] before:w-[calc(100%+4px)] before:z-[-1] before:rounded-full lg:flex-1 flex flex-col shadow circle-gradient items-center justify-center rounded-full" | ||
> | ||
<div class="p-5 sm:p-6 flex-1 flex flex-col overflow-hidden rounded-full divide-y divide-gray-200 dark:divide-gray-800 bg-white dark:bg-gray-900 hover:bg-opacity-90 dark:hover:bg-opacity-90 transition-[background-opacity]"> | ||
<img :src="logo.src" :width="logo.width" :height="logo.height" :alt="logo.alt"> | ||
</div> | ||
</div> | ||
</template> | ||
|
||
<style scoped lang="postcss"> | ||
.circle-gradient::before { | ||
background: radial-gradient( | ||
70px circle at var(--x) var(--y), | ||
v-bind(color) 0%, | ||
transparent 100% | ||
); | ||
will-change: background; | ||
} | ||
</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
60 changes: 60 additions & 0 deletions
60
components/content/enterprise/support/EnterpriseSupportLogoCarousel.vue
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,60 @@ | ||
<script lang="ts" setup> | ||
const { logos } = defineProps({ | ||
logos: { | ||
type: Array<{ src: string, width: number, height: number, alt: string, light: string, dark: string }>, | ||
require: true | ||
} | ||
}) | ||
const carousel = ref<HTMLElement>(null) | ||
const stopAnimation = () => { | ||
if (carousel.value) { | ||
carousel.value.style.animationPlayState = 'paused' | ||
} | ||
} | ||
const startAnimation = () => { | ||
if (carousel.value) { | ||
carousel.value.style.animationPlayState = 'running' | ||
} | ||
} | ||
</script> | ||
|
||
<template> | ||
<div class="overflow-hidden whitespace-nowrap relative h-12"> | ||
<div class="h-12 w-[50px] sm:w-[100px] md:w-[200px] lg:w-[400px] bg-gradient-to-r from-white dark:from-slate-950 via-transparent to-transparent absolute left-0 z-10" /> | ||
<div class="h-12 w-[50px]sm:w-[100px] md:w-[200px] lg:w-[400px] bg-gradient-to-r to-white dark:to-slate-950 via-transparent from-transparent absolute right-0 z-10" /> | ||
<div | ||
ref="carousel" | ||
class="flex carousel" | ||
@mouseover="stopAnimation" | ||
@mouseleave="startAnimation" | ||
> | ||
<div v-for="({ light, dark, width, height, alt }, index) in logos.concat(logos)" :key="index" class="carousel-item items-center"> | ||
<UColorModeImage :light="light" :dark="dark" :width="width" :height="height" :alt="alt" /> | ||
</div> | ||
</div> | ||
</div> | ||
</template> | ||
|
||
<style scoped lang="postcss"> | ||
.carousel { | ||
animation: scroll 30s linear infinite; | ||
animation-play-state: running; | ||
} | ||
.carousel-item { | ||
flex: 0 0 auto; | ||
margin-right: 68px; | ||
} | ||
@keyframes scroll { | ||
0% { | ||
transform: translateX(0); | ||
} | ||
100% { | ||
transform: translateX(calc(-166%)); | ||
} | ||
} | ||
</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
Oops, something went wrong.