Skip to content

Commit

Permalink
added contact page
Browse files Browse the repository at this point in the history
  • Loading branch information
JeetDas5 committed Oct 21, 2024
1 parent fe7db73 commit cde6442
Show file tree
Hide file tree
Showing 11 changed files with 128 additions and 8 deletions.
8 changes: 5 additions & 3 deletions app/components/Timer/TimerSection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { Bitter } from "@next/font/google";
import { Poppins } from "@next/font/google";
import dynamic from "next/dynamic";
import { motion } from "framer-motion";
import Star from "../global/Star";

const bitter = Bitter({
weight: ["400", "700"],
Expand All @@ -27,8 +28,8 @@ const TimerSection = () => {
opacity: 1,
}}
>
<div className="w-full h-screen flex items-center gap-8 px-4 sm:px-8 lg:px-16">
<div className="font-bitter flex items-center justify-center flex-col mx-auto mb-10 md:mb-20 text-white">
<div className="w-full h-screen flex items-center px-4 sm:px-8 lg:px-16">
<div className="font-bitter flex items-center justify-center gap-4 lg:gap-8 flex-col mx-auto mb-10 md:mb-20 text-white">
<h1
className={`text-4xl sm:text-5xl md:text-6xl ${bitter.className} text-center`}
>
Expand All @@ -41,7 +42,7 @@ const TimerSection = () => {
</h1>
<Timer launchDate="2024-11-08T17:00:00" />
<div
className="relative w-fit m-auto mt-8"
className="relative w-fit m-auto mt-0 sm:mt-4 md:mt-8"
onMouseEnter={() => {
setIsHovered(!isHovered);
}}
Expand Down Expand Up @@ -79,6 +80,7 @@ const TimerSection = () => {
</div>
</div>
</div>
<Star/>
</div>
);
};
Expand Down
2 changes: 1 addition & 1 deletion app/components/global/Footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const Footer = () => {
</Marquee>
</div>
<br /><br /><br /><br />
<footer className="w-full h-60 bg-black text-white flex flex-col items-center justify-center space-y-6">
<footer className="w-full h-60 text-white flex flex-col items-center justify-center space-y-6">
<div className="flex space-x-6">
<a href="https://www.instagram.com/iot.lab.kiit/?hl=en" className="hover:scale-110 transform transition duration-300">
<Image width={10} height={10} src="/icons/instagram_footer_dark.svg" alt="Instagram" className="w-6 h-6" />
Expand Down
7 changes: 5 additions & 2 deletions app/components/global/Navbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,10 @@ export default function Navbar() {
};
return (
<div className="font-geistMono z-30 relative">
<nav className="flex justify-between items-center p-4 bg-background z-40 relative">
<nav
className="flex justify-between items-center p-4 shadow-md shadow-blue-500 z-40 relative bg-black"
style={{ boxShadow: "0px 4px 6px rgba(59, 130, 246, 0.3)" }}
>
<div>logo</div>
<div className="hidden md:flex md:gap-9">
<Link
Expand Down Expand Up @@ -79,7 +82,7 @@ export default function Navbar() {
<HamburgerButton isOpen={isOpen} toggleMenu={toggleMenu} />
</div>
</nav>
<hr className="mx-4 z-40 relative" />
{/* <hr className="mx-4 z-40 relative" /> */}
<AnimatePresence>
{isOpen && (
<div className={`relative`}>
Expand Down
17 changes: 17 additions & 0 deletions app/components/global/Star.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import Image from 'next/image'
import React from 'react'

const Star = () => {
return (
<div className="w-full h-full flex justify-center my-24">
<Image
src="/backgrounds/star_image_blue.jpg"
width={50}
height={50}
alt="Picture of the star"
/>
</div>
)
}

export default Star
91 changes: 91 additions & 0 deletions app/contact/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,91 @@
"use client";

import React from "react";
import { motion } from "framer-motion";
import TimerSection from "../components/Timer/TimerSection";
import Footer from "../components/global/Footer";
import Star from "../components/global/Star";

const page = () => {
return (
<div>
<motion.div
initial={{ y: 80, opacity: 0 }}
animate={{ y: 0, opacity: 1 }}
transition={{ duration: 0.7, ease: "easeOut" }}
className="mt-16 md:mt-20 lg:mt-24"
>
<div className="flex flex-col gap-4 md:gap-8 justify-center items-center">
<div className="text-center text-blue-400 font-medium text-2xl font-poppins">
Contact Us
</div>
<h1 className="text-center font-medium font-bitter text-4xl md:text-6xl lg:text-8xl">
We&apos;re Here to Help
</h1>
<div className="w-1/2 text-center font-poppins">
Have inquiries, partnership proposals, or just want to say hello? We
are here to listen! Drop us a message, and our team will get back to
you as soon as possible. Your feedback is valuable to us. Let&apos;s
connect!
</div>
</div>
</motion.div>
<Star />
<div className="mt-20 md:my-24 lg:my-28 mx-auto px-4 w-full flex flex-col md:flex-row gap-8 md:gap-14 justify-evenly items-center ">
<div className="w-full md:w-1/3 p-6 rounded-2xl h-auto border border-gray-500 flex flex-col gap-3 justify-center items-center">
<svg
height="50"
width="50"
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 256 256"
className="text-blue-500"
>
<path
d="M245.11,60.68c-7.65-13.19-27.84-16.16-58.5-8.66A95.93,95.93,0,0,0,32,128a98,98,0,0,0,.78,12.31C5.09,169,5.49,186,10.9,195.32,16,204.16,26.64,208,40.64,208a124.11,124.11,0,0,0,28.79-4A95.93,95.93,0,0,0,224,128a97.08,97.08,0,0,0-.77-12.25c12.5-13,20.82-25.35,23.65-35.92C248.83,72.51,248.24,66.07,245.11,60.68ZM128,48a80.11,80.11,0,0,1,78,62.2c-17.06,16.06-40.15,32.53-62.07,45.13C116.38,171.14,92.48,181,73.42,186.4A79.94,79.94,0,0,1,128,48ZM24.74,187.29c-1.46-2.51-.65-7.24,2.22-13a79.05,79.05,0,0,1,10.29-15.05,96,96,0,0,0,18,31.32C38,193.46,27.24,191.61,24.74,187.29ZM128,208a79.45,79.45,0,0,1-38.56-9.94,370,370,0,0,0,62.43-28.86c21.58-12.39,40.68-25.82,56.07-39.08A80.07,80.07,0,0,1,128,208ZM231.42,75.69c-1.7,6.31-6.19,13.53-12.63,21.13a95.69,95.69,0,0,0-18-31.35c14.21-2.35,27.37-2.17,30.5,3.24C232.19,70.28,232.24,72.63,231.42,75.69Z"
fill="currentColor"
/>
</svg>
<p className="font-bitter">ADDRESS</p>
<p className="font-poppins">San Jose, CA</p>
</div>
<div className="w-full md:w-1/3 p-6 rounded-2xl h-auto border border-gray-500 flex flex-col gap-3 justify-center items-center">
<svg
height="50"
width="50"
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 256 256"
className="text-blue-500"
>
<path
d="M 160 32 H 96 A 24 24 0 0 0 72 56 V 200 a 24 24 0 0 0 24 24 h 64 a 24 24 0 0 0 24 -24 V 56 A 24 24 0 0 0 160 32 Z m 8 168 a 8 8 0 0 1 -8 8 H 96 a 8 8 0 0 1 -8 -8 V 56 a 8 8 0 0 1 8 -8 h 64 a 8 8 0 0 1 8 8 Z M 216 88 v 80 a 8 8 0 0 1 -16 0 V 88 a 8 8 0 0 1 16 0 Z m 32 16 v 48 a 8 8 0 0 1 -16 0 V 104 a 8 8 0 0 1 16 0 Z M 56 88 v 80 a 8 8 0 0 1 -16 0 V 88 a 8 8 0 0 1 16 0 Z M 24 104 v 48 a 8 8 0 0 1 -16 0 V 104 a 8 8 0 0 1 16 0 Z"
fill="currentColor"
/>
</svg>
<p className="font-bitter">PHONE</p>
<p className="font-poppins">1234567890</p>
</div>
<div className="w-full md:w-1/3 p-6 rounded-2xl h-auto border border-gray-500 flex flex-col gap-3 justify-center items-center">
<svg
height="50"
width="50"
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 256 256"
className="text-blue-500"
>
<path
d="M 128 24 a 104 104 0 0 0 0 208 c 21.51 0 44.1 -6.48 60.43 -17.33 a 8 8 0 0 0 -8.86 -13.33 C 166 210.38 146.21 216 128 216 a 88 88 0 1 1 88 -88 c 0 26.45 -10.88 32 -20 32 s -20 -5.55 -20 -32 V 88 a 8 8 0 0 0 -16 0 v 4.26 a 48 48 0 1 0 5.93 65.1 c 6 12 16.35 18.64 30.07 18.64 c 22.54 0 36 -17.94 36 -48 A 104.11 104.11 0 0 0 128 24 Z m 0 136 a 32 32 0 1 1 32 -32 A 32 32 0 0 1 128 160 Z"
fill="currentColor"
/>
</svg>
<p className="font-bitter">EMAIL</p>
<p className="font-poppins">[email protected]</p>
</div>
</div>
<Star />
<TimerSection />
<Footer />
</div>
);
};

export default page;
Binary file added app/fonts/Poppins-Medium.ttf
Binary file not shown.
7 changes: 7 additions & 0 deletions app/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,13 @@ body {
font-style: normal;
}

@font-face {
font-family: "Poppins";
src: url("./fonts/Poppins-Medium.ttf");
font-weight: normal;
font-style: normal;
}

#comingSoon {
visibility: hidden;
position: relative;
Expand Down
2 changes: 1 addition & 1 deletion app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export default function RootLayout({
return (
<html lang="en">
<body
className={`${geistSans.variable} ${geistMono.variable} antialiased overflow-x-hidden`}
className={`${geistSans.variable} ${geistMono.variable} bg-[#101010] antialiased overflow-x-hidden`}
>
<Navbar />
{children}
Expand Down
Binary file added public/backgrounds/star_image.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/backgrounds/star_image_blue.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion tailwind.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const config: Config = {
bitter: ["Bitter"],
geist: ["Geist"],
geistMono: ["GeistMono"],
poppins: ["Poppins", "sans-serif"],
poppins: ["Poppins"],
},
},
},
Expand Down

0 comments on commit cde6442

Please sign in to comment.