Guest User

page.tsx

a guest
Jan 3rd, 2025
20
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import { Icon } from './Icon'
  2.  
  3. <section
  4.   id="hero"
  5.   className=" px-4 pb-8 max-lg:-mt-[44px] lg:px-8 h-[calc(100vh-4rem+44px-72px)] lg:h-[calc(100vh-2rem-72px)] relative"
  6. >
  7.   <div className="absolute inset-0 -top-[calc(4rem+72px)]">
  8.     <video
  9.       className="absolute inset-0 w-full h-full object-cover"
  10.       autoPlay
  11.       muted
  12.       loop
  13.       playsInline
  14.     >
  15.       {!weatherQuery.isLoading && (
  16.         <source
  17.           src={`/videos/${weatherQuery.data?.[1].weather.toLowerCase()}-video-${isDesktop ? 'desktop' : 'mobile'}.mp4`}
  18.           key={weatherQuery.data?.[1].weather.toLowerCase()}
  19.         />
  20.       )}
  21.     </video>
  22.   </div>
  23.   <div className="grid grid__container lg:gap-8 z-10 relative h-full">
  24.     <div className="max-w-[717px] intro space-y-2">
  25.       <h1 className="font-bold text-[56px] leading-none lg:text-6xl xl:text-8xl tracking-[-0.04em] text-white">
  26.         Copywriting
  27.       </h1>
  28.       <p className="text-white text-[28px] leading-[30px] lg:text-3xl xl:text-[42px] xl:leading-[46px] tracking-[-0.01em]">Copywriting</p>
  29.     </div>
  30.     <div className="max-w-[500px] mt-auto weather text-2xl leading-[28px] text-primary tracking-[-0.01em] lg:font-normal lg:text-[32px] lg:leading-[38px]">
  31.       {renderWeatherInfo}
  32.       <div className="mt-2">
  33.         <div className="text-neutral-40 text-[13px] tracking-[0.01em]">
  34.           Copywriting
  35.         </div>
  36.       </div>
  37.     </div>
  38.     <div className="w-full h-[290px] lg:h-[500px] lg:w-[580px] icon my-auto">
  39.       <Canvas shadows>
  40.         <Center>
  41.           <Icon />
  42.         </Center>
  43.       </Canvas>
  44.     </div>
  45.   </div>
  46. </section>
Advertisement
Add Comment
Please, Sign In to add comment