Skip to content

created a home page using next js and tailwind css #6

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
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
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,6 @@
"devDependencies": {
"postcss": "^8",
"tailwindcss": "^3.4.1"
}
},
"packageManager": "[email protected]+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e"
}
85 changes: 85 additions & 0 deletions pages/Components/Homepage.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
import React from "react";
import Image from "next/image";
import i1 from "../../public/i1.png";
import i2 from "../../public/i2.png";
import i3 from "../../public/i3.png";
import i4 from "../../public/i4.png";
import i5 from "../../public/i5.png";
import i7 from "../../public/i7.png";

const Home = () => {
return (
<>
<div>

<nav className="bg-black p-3 text-white font-semibold flex items-center justify-center gap-3 sm:gap-5 md:gap-10">
<div className="border-2 rounded-full py-2 px-3 md:py-3 md:px-6 border-purple-400 flex items-center justify-center gap-3 md:gap-5 lg:gap-10">
<a href="#" className="text-xs sm:text-sm md:text-base lg:text-lg hover:text-purple-400 duration-500">
HOME
</a>
<a href="#" className="text-xs sm:text-sm md:text-base lg:text-lg hover:text-purple-400 duration-500">
ABOUT US
</a>
<a href="#" className="text-xs sm:text-sm md:text-base lg:text-lg hover:text-purple-400 duration-500">
API KEY
</a>
<a href="#" className="text-xs sm:text-sm md:text-base lg:text-lg hover:text-purple-400 duration-500">
CONTACT US
</a>
<a href="#" className="text-xs sm:text-sm md:text-base lg:text-lg hover:text-purple-400 duration-500">
REVIEWS
</a>
</div>
</nav>

<div className="bg-black relative overflow-hidden px-4 sm:px-8">

<div className="hidden lg:block">
<Image src={i1} className="w-32 mt-[50px] ml-[50px] absolute" />
<Image src={i2} className="w-32 mt-[250px] ml-[150px] absolute" />
<Image src={i3} className="w-32 mt-[250px] ml-[1200px] absolute" />
<Image src={i4} className="w-32 mt-[50px] ml-[1350px] absolute" />
<Image src={i5} className="w-32 mt-[450px] ml-[100px] absolute" />
<Image src={i7} className="w-32 mt-[450px] ml-[1350px] absolute" />
</div>


<div className="text-center pt-20 md:pt-[200px] px-4">
<span className="text-3xl sm:text-5xl md:text-7xl font-bold text-white">
Introducing{" "}
<span className="bg-gradient-to-t from-blue-600 to-purple-500 bg-clip-text text-transparent">
AURORA AI
</span>
</span>
</div>


<div className="flex justify-center items-center mt-10">
<input
type="text"
placeholder="Type to chat..."
className="bg-slate-100 rounded-full p-3 w-full max-w-[300px] sm:max-w-[400px] md:max-w-[600px]"
/>
</div>


<div className="text-center mt-6 md:mt-10">
<p className="text-white font-semibold text-lg sm:text-xl md:text-2xl">
Make your everyday life easier and fun with{" "}
<span className="bg-gradient-to-t from-blue-600 to-purple-500 bg-clip-text text-transparent">
AURORA
</span>
</p>
<p className="text-white font-semibold text-md sm:text-lg md:text-xl mt-3 md:mt-5 pb-10 md:pb-40 lg:pb-44">
Simplifying <span className="text-[#ff9999]">Problems</span> with
Intelligent <span className="text-[#b4ff89]">Answers</span>
</p>
</div>

</div>
</div>
</>
);
};

export default Home;
119 changes: 14 additions & 105 deletions pages/index.js
Original file line number Diff line number Diff line change
@@ -1,115 +1,24 @@
import Image from "next/image";
import localFont from "next/font/local";
import Link from "next/link.js";

const geistSans = localFont({
src: "./fonts/GeistVF.woff",
variable: "--font-geist-sans",
weight: "100 900",
});
const geistMono = localFont({
src: "./fonts/GeistMonoVF.woff",
variable: "--font-geist-mono",
weight: "100 900",
});
import Homepage from "./Components/Homepage.jsx"

export default function Home() {
return (
<div
className={`${geistSans.variable} ${geistMono.variable} grid grid-rows-[20px_1fr_20px] items-center justify-items-center min-h-screen p-8 pb-20 gap-16 sm:p-20 font-[family-name:var(--font-geist-sans)]`}
>
<main className="flex flex-col gap-8 row-start-2 items-center sm:items-start">
<Image
className="dark:invert"
src="/next.svg"
alt="Next.js logo"
width={180}
height={38}
priority
/>
<ol className="list-inside list-decimal text-sm text-center sm:text-left font-[family-name:var(--font-geist-mono)]">
<li className="mb-2">
Get started by editing{" "}
<code className="bg-black/[.05] dark:bg-white/[.06] px-1 py-0.5 rounded font-semibold">
pages/index.js
</code>
.
</li>
<li>Save and see your changes instantly.</li>
</ol>
<>
<div className="bg-black w-full py-[340px]">

<div className="flex gap-4 items-center flex-col sm:flex-row">
<a
className="rounded-full border border-solid border-transparent transition-colors flex items-center justify-center bg-foreground text-background gap-2 hover:bg-[#383838] dark:hover:bg-[#ccc] text-sm sm:text-base h-10 sm:h-12 px-4 sm:px-5"
href="https://vercel.com/new?utm_source=create-next-app&utm_medium=default-template-tw&utm_campaign=create-next-app"
target="_blank"
rel="noopener noreferrer"
>
<Image
className="dark:invert"
src="/vercel.svg"
alt="Vercel logomark"
width={20}
height={20}
/>
Deploy now
</a>
<a
className="rounded-full border border-solid border-black/[.08] dark:border-white/[.145] transition-colors flex items-center justify-center hover:bg-[#f2f2f2] dark:hover:bg-[#1a1a1a] hover:border-transparent text-sm sm:text-base h-10 sm:h-12 px-4 sm:px-5 sm:min-w-44"
href="https://nextjs.org/docs?utm_source=create-next-app&utm_medium=default-template-tw&utm_campaign=create-next-app"
target="_blank"
rel="noopener noreferrer"
>
Read our docs
</a>
</div>
</main>
<footer className="row-start-3 flex gap-6 flex-wrap items-center justify-center">
<a
className="flex items-center gap-2 hover:underline hover:underline-offset-4"
href="https://nextjs.org/learn?utm_source=create-next-app&utm_medium=default-template-tw&utm_campaign=create-next-app"
target="_blank"
rel="noopener noreferrer"
>
<Image
aria-hidden
src="/file.svg"
alt="File icon"
width={16}
height={16}
/>
Learn
</a>
<a
className="flex items-center gap-2 hover:underline hover:underline-offset-4"
href="https://vercel.com/templates?framework=next.js&utm_source=create-next-app&utm_medium=default-template-tw&utm_campaign=create-next-app"
target="_blank"
rel="noopener noreferrer"
>
<Image
aria-hidden
src="/window.svg"
alt="Window icon"
width={16}
height={16}
/>
Examples
</a>
<a
className="flex items-center gap-2 hover:underline hover:underline-offset-4"
href="https://nextjs.org?utm_source=create-next-app&utm_medium=default-template-tw&utm_campaign=create-next-app"
target="_blank"
rel="noopener noreferrer"
>
<Image
aria-hidden
src="/globe.svg"
alt="Globe icon"
width={16}
height={16}
/>
Go to nextjs.org →
</a>
</footer>
<Link href="/Components/Homepage">
<div className="relative">
<div className="bg-gradient-to-r from-purple-500 to to-blue-600 absolute inset-0 rounded-full w-[170px] ml-[45%] blur-lg ">

</div >
<button className="text-white bg-black font-bold border-2 border-cyan-500 p-5 rounded-full w-[170px] ml-[45%] relative">Click Me!!</button>
</div>
</Link>
</div>

</>
);
}
Binary file added public/i1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/i2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/i3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/i4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/i5.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/i6.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/i7.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
17 changes: 0 additions & 17 deletions styles/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,3 @@
@tailwind components;
@tailwind utilities;

:root {
--background: #ffffff;
--foreground: #171717;
}

@media (prefers-color-scheme: dark) {
:root {
--background: #0a0a0a;
--foreground: #ededed;
}
}

body {
color: var(--foreground);
background: var(--background);
font-family: Arial, Helvetica, sans-serif;
}