Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export default function RootLayout({
children: React.ReactNode;
}>) {
return (
<html lang="ja">
<html lang="ja" className="overflow-x-hidden">
<body
className={`${inter.variable} ${notojp.variable} overflow-x-hidden text-stone-800`}
>
Expand Down
2 changes: 1 addition & 1 deletion src/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export default function Home() {
<section className="relative h-screen overflow-hidden">
<EmojiShower />
<div className="absolute bottom-0 left-0 h-20 w-full bg-gradient-to-t from-white to-transparent"></div>
<div className="relative z-10 mx-auto flex h-full items-center justify-start lg:max-w-screen-xl">
<div className="relative mx-auto flex h-full items-center justify-start lg:max-w-screen-xl">
<div className=" px-4 lg:px-0">
<h1 className="text-4xl font-bold leading-snug lg:text-6xl lg:leading-normal">
オープンソース
Expand Down
2 changes: 1 addition & 1 deletion src/components/animated-emoji.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ const AnimatedEmoji: React.FC<AnimatedEmojiProps> = ({
return (
<>
<div
className="group absolute -z-10 flex h-20 w-20 cursor-pointer items-center justify-center rounded-full bg-transparent [perspective:1000px]"
className="group absolute flex h-20 w-20 cursor-pointer items-center justify-center rounded-full bg-transparent [perspective:1000px]"
style={styles as React.CSSProperties}
>
<div className="relative h-full w-full rounded-full duration-1000 [transform-style:preserve-3d] group-hover:[transform:rotateY(180deg)]">
Expand Down
9 changes: 6 additions & 3 deletions src/components/hero-section-emoji-shower.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { emojiToUnicodeHex } from "@/utils/animated-emoji";
import { Noto_Emoji } from "next/font/google";

const emojiFont = Noto_Emoji({
Expand Down Expand Up @@ -112,15 +113,17 @@ const EmojiShower: React.FC = () => {
return (
<div className=" absolute -right-2 -top-8 z-0 flex h-[150vh] rotate-12 lg:-top-[15vh] lg:right-4 lg:rotate-[25deg]">
{randomEmojis.map((emoji, index) => {
const notoEmoji = emojiToUnicodeHex(emoji);
return (
<div
key={index}
className={`${emojiFont.className} ${textRainbowColors[index]} ${bgRainbowColors[index]}
px-1 text-3xl lg:px-2 lg:text-6xl`}
>
<div className={`${animationsSp[index]} ${animationsPc[index]}`}>
{emoji}
</div>
<div
className={`${animationsSp[index]} ${animationsPc[index]}`}
dangerouslySetInnerHTML={{ __html: notoEmoji }}
></div>
</div>
);
})}
Expand Down