|
1 | | -import ContentSplitSection from '@/components/ContentSplitSection'; |
2 | | -import Image from 'next/image'; |
3 | | -import { MagicBox } from '@/components/MagicBox' |
4 | | -import { CustomCard, CustomCardHorizontal } from '@/components/CustomCard'; |
5 | | - |
6 | | -<div className={`w-full rounded-lg overflow-hidden`}> |
7 | | - <div className="mx-auto py-2 md:py-2 flex flex-col md:flex-row items-center"> |
8 | | - <> |
9 | | - <div className="md:w-2/3 mb-8 md:mb-0 md:mx-8 text-center md:text-left"> |
10 | | - <h1 |
11 | | - className="text-3xl md:text-4xl lg:text-5xl xl:text-6xl 2xl:text-7xl font-bold leading-tight px-2 -mb-3" |
12 | | - style={{ |
13 | | - background: 'linear-gradient(90deg, #2563eb, #22c55e, #0d9488)', |
14 | | - WebkitBackgroundClip: 'text', |
15 | | - WebkitTextFillColor: 'transparent', |
16 | | - backgroundClip: 'text' |
17 | | - }} |
18 | | - > |
19 | | - EarthNet Initiative |
| 1 | +import Image from "next/image"; |
| 2 | +import { Button } from "@/components/ui/button"; |
| 3 | +import { CustomCard, CustomCardHorizontal } from "@/components/CustomCard"; |
| 4 | +import { WiStars } from "react-icons/wi"; |
| 5 | +import Link from "next/link"; |
| 6 | + |
| 7 | +export default function Landing() { |
| 8 | + return ( |
| 9 | + <section className="relative w-full min-h-screen flex flex-col items-center justify-between overflow-hidden"> |
| 10 | + {/* Background */} |
| 11 | + <div className="absolute inset-0 z-0 select-none"> |
| 12 | + <Image |
| 13 | + alt="Earth from space - light mode" |
| 14 | + className="z-0 w-full h-full object-cover block dark:hidden pointer-events-none" |
| 15 | + src="/place_holder.jpg" |
| 16 | + fill |
| 17 | + quality={100} |
| 18 | + priority |
| 19 | + /> |
| 20 | + <Image |
| 21 | + alt="Earth from space - dark mode" |
| 22 | + className="z-0 w-full h-full object-cover hidden dark:block pointer-events-none" |
| 23 | + src="/place_holder_white.jpg" |
| 24 | + fill |
| 25 | + quality={100} |
| 26 | + priority |
| 27 | + /> |
| 28 | + <div className="absolute inset-0 bg-gradient-to-t from-black via-black/70 to-transparent" /> |
| 29 | + </div> |
| 30 | + |
| 31 | + {/* Hero Content */} |
| 32 | + <div className="relative z-10 flex flex-col items-center text-center max-w-4xl px-6 pt-24"> |
| 33 | + {/* Small badge */} |
| 34 | + <div className="mb-4 inline-flex items-center gap-2 rounded-full bg-gray-600/20 px-4 py-1 text-sm text-white hover:bg-gray-900/30 transition"> |
| 35 | + <Link href="/science/weathergenerator" className="flex items-center gap-2"> |
| 36 | + <WiStars size={18} className="text-white-300" /> |
| 37 | + <span>New: WeatherGenerator Project</span> |
| 38 | + </Link> |
| 39 | + </div> |
| 40 | + |
| 41 | + {/* Main headline */} |
| 42 | + <h1 className="text-4xl md:text-6xl font-bold leading-tight text-white"> |
| 43 | + Forecasting Earth’s Future with AI |
20 | 44 | </h1> |
21 | | - <h2 className="text-xl md:text-2xl lg:text-3xl font-semibold leading-tight px-2 text-gray-700"> |
22 | | - Towards Earth surface forecasting |
23 | | - </h2> |
| 45 | + |
| 46 | + {/* Subheading */} |
| 47 | + <p className="mt-4 text-lg md:text-xl text-gray-300 max-w-2xl"> |
| 48 | + Never miss the signals of change. From crop yields to ecosystem health, |
| 49 | + we help predict the future of Earth’s surface. |
| 50 | + </p> |
| 51 | + |
| 52 | + {/* CTA */} |
| 53 | + <div className="mt-8 flex flex-col sm:flex-row gap-4 justify-center"> |
| 54 | + <Button |
| 55 | + size="lg" |
| 56 | + className="bg-gradient-to-r from-blue-600 to-teal-600 hover:from-blue-700 hover:to-teal-700 text-white px-8" |
| 57 | + asChild |
| 58 | + > |
| 59 | + <a href="/science">Explore Our Research</a> |
| 60 | + </Button> |
| 61 | + <Button |
| 62 | + size="lg" |
| 63 | + variant="outline" |
| 64 | + className="border-2 border-gray-300 text-gray-200 bg-black hover:bg-gray-200/10" |
| 65 | + asChild |
| 66 | + > |
| 67 | + <Link href="/resources/datasets">Access Datasets</Link> |
| 68 | + </Button> |
| 69 | + </div> |
24 | 70 | </div> |
25 | | - <div className={`md:w-1/2 flex justify-center md:mx-8`}> |
26 | | - <MagicBox /> |
| 71 | + |
| 72 | + {/* Cards Section (inline with hero, still visible) */} |
| 73 | + <div className="relative z-10 w-full max-w-6xl px-6 py-12"> |
| 74 | + <div className="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8"> |
| 75 | + <CustomCardHorizontal |
| 76 | + title="Earth Surface Forecasting" |
| 77 | + description="Using Machine Learning to forecast the dynamics of Earth's surface, we can predict crop yield, forest health, the effects of a drought and more." |
| 78 | + href="/science" |
| 79 | + avatarSrc="publication_preview/requenamesa_earthvision_2021.gif" |
| 80 | + /> |
| 81 | + |
| 82 | + <CustomCard |
| 83 | + title="EarthNet Team" |
| 84 | + description="Meet our team." |
| 85 | + href="/team" |
| 86 | + avatarSrc="https://github.com/shadcn.png" |
| 87 | + avatarFallback="AI" |
| 88 | + /> |
| 89 | + |
| 90 | + <CustomCard |
| 91 | + title="Opportunities" |
| 92 | + description="Come work or collaborate with us!" |
| 93 | + href="/resources/opportunities" |
| 94 | + /> |
27 | 95 | </div> |
28 | | - </> |
29 | | - </div> |
30 | | -</div> |
31 | | - |
32 | | -{/* set a grid of cards */} |
33 | | -<div className="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4"> |
34 | | -<CustomCardHorizontal |
35 | | - title="Earth Surface Forecasting" |
36 | | - description="Using Machine Learning to forecast the dynamics of Earth's surface, we can predict crop yield, forest health, the effects of a drought and more." |
37 | | - href="/science" |
38 | | - avatarSrc="publication_preview/requenamesa_earthvision_2021.gif" |
39 | | -/> |
40 | | - |
41 | | -<CustomCard |
42 | | - title="EarthNet Team" |
43 | | - description="Meet our team." |
44 | | - href="/team" |
45 | | - avatarSrc="https://github.com/shadcn.png" |
46 | | - avatarFallback="AI" |
47 | | -/> |
48 | | - |
49 | | -<CustomCard |
50 | | - title="Opportunities" |
51 | | - description="Come work or collaborate with us!" |
52 | | - href="/resources/opportunities" |
53 | | -/> |
54 | | -</div> |
| 96 | + </div> |
| 97 | + </section> |
| 98 | + ); |
| 99 | +} |
0 commit comments