diff --git a/prettier.config.js b/prettier.config.js index d68bdf5..b945f52 100644 --- a/prettier.config.js +++ b/prettier.config.js @@ -7,7 +7,7 @@ export default { tabWidth: 2, useTabs: false, semi: false, - singleQuote: false, + singleQuote: true, quoteProps: "as-needed", trailingComma: "es5", bracketSpacing: true, diff --git a/src/animations.ts b/src/animations.ts index 3b7e6e7..53b367d 100644 --- a/src/animations.ts +++ b/src/animations.ts @@ -1,10 +1,10 @@ export function getTitleAnimation(delay = 0, duration = 0.3, once = true) { return { - initial: { opacity: 0.001, translateY: 20, filter: "blur(4px)" }, + initial: { opacity: 0.001, translateY: 20, filter: 'blur(4px)' }, whileInView: { opacity: 1, translateY: 0, - filter: "blur(0px)", + filter: 'blur(0px)', transition: { duration, delay }, }, viewport: { once }, diff --git a/src/components/BackButton.astro b/src/components/BackButton.astro index 6cac771..f442462 100644 --- a/src/components/BackButton.astro +++ b/src/components/BackButton.astro @@ -1,6 +1,6 @@ --- -import ArrowLeftIcon from "~/icons/ArrowLeftIcon.astro" -import { getLocale, getUI } from "~/utils/i18n" +import ArrowLeftIcon from '~/icons/ArrowLeftIcon.astro' +import { getLocale, getUI } from '~/utils/i18n' const locale = getLocale(Astro) diff --git a/src/components/Button.astro b/src/components/Button.astro index 30fb9d8..e2266ed 100644 --- a/src/components/Button.astro +++ b/src/components/Button.astro @@ -1,5 +1,5 @@ --- -import { getLocale, getPath } from "~/utils/i18n" +import { getLocale, getPath } from '~/utils/i18n' const locale = getLocale(Astro) const getLocalePath = getPath(locale) @@ -13,15 +13,15 @@ const { class: className, isPrimary, isAlert, isBordered, href, id, extra } = As {...extra} href={getLocalePath(href)} class:list={[ - "transition-bg flex items-center justify-center gap-2 rounded-xl px-6 py-4 transition-transform duration-150 hover:scale-[1.02] active:scale-[0.98]", + 'transition-bg flex items-center justify-center gap-2 rounded-xl px-6 py-4 transition-transform duration-150 hover:scale-[1.02] active:scale-[0.98]', className, isPrimary - ? "border-dark bg-dark text-paper shadow-lg" + ? 'border-dark bg-dark text-paper shadow-lg' : isAlert - ? "bg-red-300 text-dark" + ? 'bg-red-300 text-dark' : !isBordered - ? "bg-subtle" - : "!transition-bg border-2 border-dark hover:bg-dark hover:text-paper hover:shadow-sm", + ? 'bg-subtle' + : '!transition-bg border-2 border-dark hover:bg-dark hover:text-paper hover:shadow-sm', ]} > @@ -31,15 +31,15 @@ const { class: className, isPrimary, isAlert, isBordered, href, id, extra } = As id={id} {...extra} class:list={[ - "transition-bg flex items-center justify-center gap-2 rounded-lg px-6 py-3 transition-transform duration-150 hover:scale-[1.02]", + 'transition-bg flex items-center justify-center gap-2 rounded-lg px-6 py-3 transition-transform duration-150 hover:scale-[1.02]', className, isPrimary - ? "border-dark bg-dark text-paper shadow-md" + ? 'border-dark bg-dark text-paper shadow-md' : isAlert - ? "bg-red-300 text-dark" + ? 'bg-red-300 text-dark' : !isBordered - ? "" - : "!transition-bg border-2 border-dark hover:bg-dark hover:text-paper hover:shadow-sm", + ? '' + : '!transition-bg border-2 border-dark hover:bg-dark hover:text-paper hover:shadow-sm', ]} > diff --git a/src/components/Circles.astro b/src/components/Circles.astro index de6ed97..8d17197 100644 --- a/src/components/Circles.astro +++ b/src/components/Circles.astro @@ -4,14 +4,14 @@ const sizes = [216, 396, 576, 756] const borderWidths = [20, 30, 40, 50] --- -
+
{ [...Array(4)].map((_, i) => (
- diff --git a/src/components/Features.astro b/src/components/Features.astro index 70f7d2e..fb753d8 100644 --- a/src/components/Features.astro +++ b/src/components/Features.astro @@ -1,15 +1,15 @@ --- -import { motion } from "motion/react" -import { getTitleAnimation } from "~/animations" -import Description from "~/components/Description.astro" +import { motion } from 'motion/react' +import { getTitleAnimation } from '~/animations' +import Description from '~/components/Description.astro' -import CompactModeVideo from "~/assets/CompactMode.webm" -import GlanceVideo from "~/assets/Glance.webm" -import SplitViewsVideo from "~/assets/SplitViews.webm" -import WorkspacesVideo from "~/assets/Workspaces.webm" +import CompactModeVideo from '~/assets/CompactMode.webm' +import GlanceVideo from '~/assets/Glance.webm' +import SplitViewsVideo from '~/assets/SplitViews.webm' +import WorkspacesVideo from '~/assets/Workspaces.webm' -import { getLocale, getUI } from "~/utils/i18n" -import Video from "./Video.astro" +import { getLocale, getUI } from '~/utils/i18n' +import Video from './Video.astro' const locale = getLocale(Astro) @@ -161,17 +161,17 @@ const descriptions = Object.values(features.featureTabs).map(tab => tab.descript diff --git a/src/components/Title.astro b/src/components/Title.astro index dc5664f..b9e7983 100644 --- a/src/components/Title.astro +++ b/src/components/Title.astro @@ -1,10 +1,10 @@ --- -import { cn } from "~/utils/merge" +import { cn } from '~/utils/merge' const { class: className } = Astro.props ---

diff --git a/src/components/Video.astro b/src/components/Video.astro index cc2c081..428157e 100644 --- a/src/components/Video.astro +++ b/src/components/Video.astro @@ -1,22 +1,22 @@ --- const { src, class: className, ...rest } = Astro.props -const type = src.split(".").pop() || "webm" +const type = src.split('.').pop() || 'webm' --- {/* eslint-disable-next-line jsx-a11y/media-has-caption */} -