|
| 1 | +"use client"; |
| 2 | + |
| 3 | +import BgSpringAnim from "@/app/components/anim/bg-spring-anim"; |
| 4 | +import FadeIn from "@/app/components/anim/fade-in-anim"; |
| 5 | +import SlideLeft from "@/app/components/anim/slide-left-anim"; |
| 6 | +import SlideUp from "@/app/components/anim/slide-up-anim"; |
| 7 | +import Trail from "@/app/components/anim/trail-anim"; |
| 8 | +import { ArrowLeftOutlined } from "@ant-design/icons"; |
| 9 | +import { useChain, useSpringRef } from "@react-spring/web"; |
| 10 | +import Image from "next/image"; |
| 11 | +import Link from "next/link"; |
| 12 | +import { FaReact } from "react-icons/fa"; |
| 13 | +import { GrGraphQl } from "react-icons/gr"; |
| 14 | +import { TbBrandNextjs } from "react-icons/tb"; |
| 15 | +import aldiLogo from "../../assets/aldi-logo.png"; |
| 16 | +import aldiLogoBig from "../../assets/aldifest_2023.webp"; |
| 17 | + |
1 | 18 | export default function AldifestPage() {
|
2 |
| - return <div className="bg-blue">asdasd</div>; |
| 19 | + const techRef = useSpringRef(); |
| 20 | + const techTitleRef = useSpringRef(); |
| 21 | + const titleRef = useSpringRef(); |
| 22 | + const logoRef = useSpringRef(); |
| 23 | + const logoBigRef = useSpringRef(); |
| 24 | + const descRef = useSpringRef(); |
| 25 | + |
| 26 | + useChain( |
| 27 | + [titleRef, logoRef, descRef, logoBigRef, techRef, techTitleRef], |
| 28 | + [0, 0.2, 0.25, 0.3, 0.5, 1], |
| 29 | + 1500 |
| 30 | + ); |
| 31 | + |
| 32 | + return ( |
| 33 | + <main className="flex w-screen h-screen items-center bg-[#3AC9F7] flex-col gap-10 xl:px-24 md:px-16 px-5 py-12 "> |
| 34 | + <div className="flex flex-col gap-10 max-w-4xl w-full"> |
| 35 | + <Link href="/" className="mr-auto"> |
| 36 | + <SlideLeft> |
| 37 | + <BgSpringAnim> |
| 38 | + <ArrowLeftOutlined className="text-3xl text-white" /> |
| 39 | + </BgSpringAnim> |
| 40 | + </SlideLeft> |
| 41 | + </Link> |
| 42 | + <div className="flex justify-between gap-10"> |
| 43 | + <div className="flex flex-col gap-10"> |
| 44 | + <SlideLeft animRef={logoRef} direction="right"> |
| 45 | + <Image |
| 46 | + alt="aldi_logo" |
| 47 | + src={aldiLogo} |
| 48 | + width={0} |
| 49 | + height={0} |
| 50 | + className="w-52" |
| 51 | + /> |
| 52 | + </SlideLeft> |
| 53 | + <div> |
| 54 | + <Trail animRef={titleRef}> |
| 55 | + <span className="font-medium text-3xl max-w-sm text-white"> |
| 56 | + A new website |
| 57 | + </span> |
| 58 | + <span className="font-medium text-3xl max-w-sm text-white"> |
| 59 | + for the Melbourne |
| 60 | + </span> |
| 61 | + <span className="font-medium text-3xl max-w-sm text-white"> |
| 62 | + design studio — MASS{" "} |
| 63 | + </span> |
| 64 | + </Trail> |
| 65 | + </div> |
| 66 | + </div> |
| 67 | + <div className="flex flex-col gap-5"> |
| 68 | + <FadeIn animRef={descRef}> |
| 69 | + <div className="font-sans text-sm max-w-md text-white"> |
| 70 | + A full website rebuild, both front-end and back. The backend |
| 71 | + consists of Prismic as the headless CMS with Netlify as the CI |
| 72 | + and hosting tool, and the front end is all Gatsby. Sprinkled |
| 73 | + throughout are some unique visual flourishes - like the SVG |
| 74 | + bloating text effect, and imagery that moves based on mouse and |
| 75 | + scroll position. It was absolute joy to work on this site, and |
| 76 | + with the talented and lovely folks at MASS. It even won an FWA |
| 77 | + of the Day award. You can read more about it in this article.{" "} |
| 78 | + </div> |
| 79 | + </FadeIn> |
| 80 | + </div> |
| 81 | + </div> |
| 82 | + <div className="flex flex-col gap-5"> |
| 83 | + <SlideUp animRef={techTitleRef}> |
| 84 | + <div className="font-sans underline font-semibold text-sm max-w-md text-white"> |
| 85 | + Technologies Used |
| 86 | + </div> |
| 87 | + </SlideUp> |
| 88 | + <div className="flex gap-5"> |
| 89 | + <Trail animRef={techRef}> |
| 90 | + <FaReact className="text-[50px] text-white font-bold" /> |
| 91 | + <GrGraphQl className="text-[50px] text-white font-bold" /> |
| 92 | + <TbBrandNextjs className="text-[50px] text-white font-bold" /> |
| 93 | + </Trail> |
| 94 | + </div> |
| 95 | + </div> |
| 96 | + <SlideUp animRef={logoBigRef}> |
| 97 | + <Image |
| 98 | + alt="aldi_logo_big" |
| 99 | + src={aldiLogoBig} |
| 100 | + width={0} |
| 101 | + height={0} |
| 102 | + className="w-96 mx-auto mt-auto" |
| 103 | + /> |
| 104 | + </SlideUp> |
| 105 | + </div> |
| 106 | + </main> |
| 107 | + ); |
3 | 108 | }
|
0 commit comments