|
| 1 | +import Head from 'next/head'; |
| 2 | + |
| 3 | +/* components */ |
| 4 | +import CardRounded from '@components/cards/CardRounded'; |
| 5 | +import CardFlatted from '@components/cards/CardFlatted'; |
| 6 | + |
| 7 | +export default function Home() { |
| 8 | + const cardHomeRounded = [ |
| 9 | + { |
| 10 | + title: 'Documentation →', |
| 11 | + description: 'Find in-depth information about Next.js features and API.', |
| 12 | + url: 'https://nextjs.org/docs', |
| 13 | + }, |
| 14 | + { |
| 15 | + title: 'Learn →', |
| 16 | + description: 'Learn about Next.js in an interactive course with quizzes!', |
| 17 | + url: 'https://nextjs.org/learn', |
| 18 | + }, |
| 19 | + { |
| 20 | + title: 'Examples →', |
| 21 | + description: 'Discover and deploy boilerplate example Next.js projects.', |
| 22 | + url: 'https://github.com/vercel/next.js/tree/master/examples', |
| 23 | + }, |
| 24 | + { |
| 25 | + title: 'Deploy →', |
| 26 | + description: |
| 27 | + 'Instantly deploy your Next.js site to a public URL with Vercel.', |
| 28 | + url: |
| 29 | + 'https://vercel.com/new?utm_source=create-next-app&utm_medium=default-template&utm_campaign=create-next-app', |
| 30 | + }, |
| 31 | + { |
| 32 | + title: 'Community →', |
| 33 | + description: |
| 34 | + 'Involved in community with contribute and Next.js community modules', |
| 35 | + url: 'https://github.com/vercel/next.js/discussions', |
| 36 | + }, |
| 37 | + { |
| 38 | + title: 'Source Code →', |
| 39 | + description: 'Get Next.js open source on GitHub ', |
| 40 | + url: 'https://github.com/vercel/next.js', |
| 41 | + }, |
| 42 | + ]; |
| 43 | + const cardHomeFlatted = [ |
| 44 | + { |
| 45 | + title: 'Documentation →', |
| 46 | + description: 'Find in-depth information about Next.js features and API.', |
| 47 | + url: 'https://nextjs.org/docs', |
| 48 | + imageUrl: 'https://picsum.photos/300/300', |
| 49 | + published: '20/12/2000', |
| 50 | + }, |
| 51 | + { |
| 52 | + title: 'Learn →', |
| 53 | + description: 'Learn about Next.js in an interactive course with quizzes!', |
| 54 | + url: 'https://nextjs.org/learn', |
| 55 | + imageUrl: 'https://picsum.photos/300/300', |
| 56 | + published: '20/12/2000', |
| 57 | + }, |
| 58 | + { |
| 59 | + title: 'Examples →', |
| 60 | + description: 'Discover and deploy boilerplate example Next.js projects.', |
| 61 | + url: 'https://github.com/vercel/next.js/tree/master/examples', |
| 62 | + imageUrl: 'https://picsum.photos/300/300', |
| 63 | + published: '20/12/2000', |
| 64 | + }, |
| 65 | + { |
| 66 | + title: 'Deploy →', |
| 67 | + description: |
| 68 | + 'Instantly deploy your Next.js site to a public URL with Vercel.', |
| 69 | + url: |
| 70 | + 'https://vercel.com/new?utm_source=create-next-app&utm_medium=default-template&utm_campaign=create-next-app', |
| 71 | + imageUrl: 'https://picsum.photos/300/300', |
| 72 | + published: '20/12/2000', |
| 73 | + }, |
| 74 | + { |
| 75 | + title: 'Community →', |
| 76 | + description: |
| 77 | + 'Involved in community with contribute and Next.js community modules', |
| 78 | + url: 'https://github.com/vercel/next.js/discussions', |
| 79 | + imageUrl: 'https://picsum.photos/300/300', |
| 80 | + published: '20/12/2000', |
| 81 | + }, |
| 82 | + { |
| 83 | + title: 'Source Code →', |
| 84 | + description: 'Get Next.js open source on GitHub ', |
| 85 | + url: 'https://github.com/vercel/next.js', |
| 86 | + imageUrl: 'https://picsum.photos/300/300', |
| 87 | + published: '20/12/2000', |
| 88 | + }, |
| 89 | + ]; |
| 90 | + return ( |
| 91 | + <> |
| 92 | + <Head> |
| 93 | + <title>Create Next App</title> |
| 94 | + <link rel="icon" href="/favicon.ico" /> |
| 95 | + </Head> |
| 96 | + <main className="py-12"> |
| 97 | + <div className="container mx-auto px-4 sm:px-2"> |
| 98 | + <h1 className="text-7xl"> |
| 99 | + Welcome to <a href="https://nextjs.org">Next.js!</a> |
| 100 | + </h1> |
| 101 | + |
| 102 | + <p> |
| 103 | + Get started by editing <code className="">pages/index.js</code> |
| 104 | + </p> |
| 105 | + </div> |
| 106 | + <div className="container mx-auto px-4 sm:px-2"> |
| 107 | + <CardRounded props={cardHomeRounded} /> |
| 108 | + <CardFlatted props={cardHomeFlatted} /> |
| 109 | + </div> |
| 110 | + </main> |
| 111 | + <footer className="footer"> |
| 112 | + <a |
| 113 | + href="https://vercel.com?utm_source=create-next-app&utm_medium=default-template&utm_campaign=create-next-app" |
| 114 | + target="_blank" |
| 115 | + rel="noopener noreferrer" |
| 116 | + > |
| 117 | + Powered by{' '} |
| 118 | + <img src="/vercel.svg" alt="Vercel Logo" className="w-28" /> |
| 119 | + </a> |
| 120 | + </footer> |
| 121 | + </> |
| 122 | + ); |
| 123 | +} |
0 commit comments