Skip to content

Connect, collaborate, and grow with a community of TypeScript developers

fix animation on homepage (#626)

Helge96a17518be10
diff --git a/apps/web/src/app/[locale]/_components/community/community.tsx b/apps/web/src/app/[locale]/_components/community/community.tsx
index 4021b616..328c0495 100644
--- a/apps/web/src/app/[locale]/_components/community/community.tsx
+++ b/apps/web/src/app/[locale]/_components/community/community.tsx
@@ -9,6 +9,7 @@ import { contributors } from '../../../../../public/contributors';
import styles from './community.module.css';
import Image from 'next/image';
+// million-ignore
export function Community() {
type WrapperStyle = CSSProperties & {
'--bottom': string;
@@ -97,26 +98,24 @@ export function Community() {
{/* mobile width = w-16(4rem) * 4items + gap-x-3(0.75rem) * 3gaps */}
{/* medium width = 4rem * 5items + 0.75rem * 4gaps = 23rem */}
{/* large width = 4rem * 6items + 0.75rem * 5gaps = */}
- <div className="honeycomboverride mx-auto flex w-[18.25rem] flex-wrap gap-x-3 gap-y-1 sm:w-[23rem] xl:w-[27.75rem] xl:[&>*>*>*>*:nth-child(11n_+_1)]:ml-[2.375rem] [&>*>*>*>*:nth-child(7n_+_1)]:ml-[2.375rem] sm:[&>*>*>*>*:nth-child(7n_+_1)]:ml-0 sm:[&>*>*>*>*:nth-child(9n_+_1)]:ml-[2.375rem] xl:[&>*>*>*>*:nth-child(9n_+_1)]:ml-0">
- <For each={contributors}>
- {(contributor) => (
- <a
- className="group rounded-full duration-300 hover:scale-125 focus:outline-none focus:duration-0 focus-visible:ring-0 active:scale-105 active:duration-100"
- href={contributor.html_url}
- key={contributor.id}
- rel="noopener"
- target="_blank"
- >
- <Image
- className="honeycombchild h-16 w-16 rounded-3xl bg-cover duration-300 group-hover:rounded-[2rem] group-focus:outline-none group-focus:duration-0 group-focus-visible:ring-2 group-active:rounded-3xl group-active:duration-100"
- src={contributor.avatar_url}
- width={64}
- height={64}
- alt={`${contributor.login}'s GitHub avatar`}
- />
- </a>
- )}
- </For>
+ <div className="honeycomboverride mx-auto flex w-[18.25rem] flex-wrap gap-x-3 gap-y-1 sm:w-[23rem] xl:w-[27.75rem] xl:[&>*:nth-child(11n_+_1)]:ml-[2.375rem] [&>*:nth-child(7n_+_1)]:ml-[2.375rem] sm:[&>*:nth-child(7n_+_1)]:ml-0 sm:[&>*:nth-child(9n_+_1)]:ml-[2.375rem] xl:[&>*:nth-child(9n_+_1)]:ml-0">
+ {contributors.map((contributor) => (
+ <a
+ className="group rounded-full duration-300 hover:scale-125 focus:outline-none focus:duration-0 focus-visible:ring-0 active:scale-105 active:duration-100"
+ href={contributor.html_url}
+ key={contributor.id}
+ rel="noopener"
+ target="_blank"
+ >
+ <Image
+ className="honeycombchild h-16 w-16 rounded-3xl bg-cover duration-300 group-hover:rounded-[2rem] group-focus:outline-none group-focus:duration-0 group-focus-visible:ring-2 group-active:rounded-3xl group-active:duration-100"
+ src={contributor.avatar_url}
+ width={64}
+ height={64}
+ alt={`${contributor.login}'s GitHub avatar`}
+ />
+ </a>
+ ))}
</div>
</div>
</div>
diff --git a/apps/web/src/styles/globals.css b/apps/web/src/styles/globals.css
index b98e08c4..e8679019 100644
--- a/apps/web/src/styles/globals.css
+++ b/apps/web/src/styles/globals.css
@@ -227,7 +227,7 @@ main {
/* overrides a conflicting style on the honeycomb grid */
@media (min-width: 1280px) {
- .honeycomboverride > * > * > * > *:first-child {
+ .honeycomboverride > *:first-child {
margin-left: 2.375rem /* 38px */ !important;
}
}