Skip to content

Commit

Permalink
Codes added
Browse files Browse the repository at this point in the history
  • Loading branch information
RamakrushnaBiswal committed Sep 25, 2024
1 parent 107ffa6 commit c023632
Show file tree
Hide file tree
Showing 10 changed files with 79 additions and 190 deletions.
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,15 @@
"@splidejs/splide": "^4.1.4",
"@splidejs/splide-extension-auto-scroll": "^0.5.3",
"autoprefixer": "^10.4.19",
"framer-motion": "^11.3.2",
"clsx": "^2.1.1",
"framer-motion": "^11.5.6",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"react-icons": "^5.2.1",
"react-intersection-observer": "^9.13.0",
"react-pageflip": "^2.0.3",
"react-router-dom": "^6.24.1",
"tailwind-merge": "^2.5.2",
"tailwindcss": "^3.4.4"
},
"devDependencies": {
Expand Down
8 changes: 8 additions & 0 deletions public/mask.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
35 changes: 13 additions & 22 deletions src/Components/Pages/About.jsx
Original file line number Diff line number Diff line change
@@ -1,40 +1,31 @@
export default function About() {
return (
<div id="about" className="w-full h-full">
<div className="flex w-full mx-auto">
<div className="w-full mx-auto">
<h1 className="text-9xl font-bold text-gray-800 text-center">A</h1>
<h1 className="text-9xl font-bold text-gray-800 text-center">B</h1>
<h1 className="text-9xl font-bold text-gray-800 text-center">O</h1>
<h1 className="text-9xl font-bold text-gray-800 text-center">U</h1>
<h1 className="text-9xl font-bold text-gray-800 text-center">T</h1>
<h4 className="text-6xl font-bold text-gray-800 text-center">US</h4>
</div>
<div>
<img src="./src/assets/img/abt1.jpg" alt="dfs" />
</div>
</div>
<div className="flex w-full justify-center align-middle mt-10 px-36">
<p className="text-xl text-gray-800 w-full">
<div id="about" className="w-full mt-28 h-screen relative">
<div className="absolute inset-0 bg-[url('./src/assets/img/abt1.jpg')] bg-cover bg-center opacity-30"></div>
<div className="relative z-10 flex items-center justify-center h-full ms-10">
<h1 className="text-9xl font-bold text-start w-full">ABOUT US</h1>
<div className="flex w-full justify-center align-middle mt-10 px-36 relative z-10">
<p className="text-xl text-gray-800 text-pretty w-full">
How it works..
Our name says it all!
Founder, Jonathan Li, shares a passion for board games, boba, and
delicious food, so he combined them all to become Sip & Play, Park Slope’s
first board game cafe. It is a straightforward concept, come in with your
friends and family to play any board game from our library of 300+ games!
friends and family to play any board game from our library of <span className="text-amber-600">300+ games!</span>
We hope when you visit, you also enjoy our coffee, espresso, boba,
sandwiches, and snacks!
<br/>
<br/>
Hours and Location
New opening hours:
Sunday: 10am-11pm
Mon-Thurs: 11am-11pm
Fri: 11am-midnight
Sat: 10am-midnight
New opening hours:<br/>
Sunday: 10am-11pm <br/>
Mon-Thurs: 11am-11pm <br/>
Fri: 11am-midnight <br/>
Sat: 10am-midnight <br/>
Our kitchen closes 2.5-3 hours before we close!
</p>
</div>
</div>
</div>
);
}
4 changes: 2 additions & 2 deletions src/Components/Pages/Home.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@
import Landing from "../ui/Landing";
import Footer from "../Shared/Footer";
import Navbar from "../Shared/Navbar";
import ImageCarousel from "../ui/ImageCarousel";
import ReviewCarousel from "../ui/ReviewCarousel";
import FeedbackForm from "../ui/FeedbackForm";
import About from "./About";

export default function Home() {
return (
<div id="home" className="bg-[#FDF3C7]">
<Navbar />
<Landing />
<ImageCarousel />
<About/>
<ReviewCarousel/>
<FeedbackForm />
<Footer />
Expand Down
72 changes: 0 additions & 72 deletions src/Components/ui/ImageCarousel.jsx

This file was deleted.

111 changes: 47 additions & 64 deletions src/Components/ui/Landing.jsx
Original file line number Diff line number Diff line change
@@ -1,76 +1,59 @@
import heroBg from "../../assets/img/heroBg.jpg";
import { motion } from "framer-motion";
import Marquee from "./Marquee";
import heropic from "../../assets/landing/hero pic.jpg";
import coffecup from "../../assets/landing/coffecup.png";


export default function Landing() {
return (
<div>
<section
className="relative h-screen bg-cover bg-center overflow-hidden"
style={{
backgroundImage: 'url("https://via.placeholder.com/1600x900")',
}}
>
<div className="absolute inset-0 bg-[#F1EADC]">
<img
className=" inset-0 w-full h-full object-cover"
alt="logo"
src={heroBg}
/>
</div>
<div className="container mx-auto flex flex-col md:flex-row items-center justify-end pt-20">
<section className="relative h-screen bg-cover bg-center overflow-hidden">
<div className="flex flex-col md:flex-row items-center ms-20 pt-20">
{/* Text Content */}
<div className="md:w-1/2 mb-6 md:mb-0 text-center md:text-left z-10 pt-14 relative">
<motion.div
initial={{ x: -200, opacity: 0 }}
animate={{ x: 0, opacity: 1 }}
transition={{ type: "spring", duration: 2 }}
>
<h1 className=" text-3xl font-roboto md:text-6xl ml-2 uppercase shadow-lg z-10 font-bold text-white rounded-s-full text-center p-4 bg-black bg-opacity-50">
<div className="md:w-1/2 mb-6 md:mb-0 text-center md:text-left z-10 pt-14">
<h1 className="text-9xl font-bold ">
A unique café experience awaits you
</h1>
</motion.div>


</h1>
</div>
<div className="absolute w-2/4 left-2/3 rotate-12 -bottom-20">
<img src={heropic} alt="" className="w-2/4" />
</div>
<div className="absolute w-2/4 left-2/3 -rotate-12 -bottom-16">
<img src={heropic} alt="" className="w-2/4" />
</div>
</div>
</section>

<Marquee />

<section className="p-6 sm:p-10cs">
<motion.div
initial={{ scale: 0 }}
animate={{ scale: 1 }}
transition={{ duration: 0.5 }}
className="container mx-auto bg-[#E0F0B1] rounded-lg shadow-lg overflow-hidden px-4 py-8"
>
<motion.div animate={{ x: [0, 100, 0] }} transition={{ duration: 1 }}>
<h1 className="text-4xl text-[#004D43] sm:text-3xl md:text-5xl font-bold mb-4 text-center font-serif">
Our name says it all!
</h1>
</motion.div>
<div className="text-lg mb-4 text-center">
<p className="mb-4 font-semibold">How it works..</p>
<p className="text-gray-600 text-base md:text-xl">
Founder, Jonathan Li, shares a passion for board games, boba, and delicious food, so he combined them all to become Sip & Play, Park Slope’s first board game cafe. It is a straightforward concept: come in with your friends and family to play any board game from our library of 300+ games! We hope when you visit, you also enjoy our coffee, espresso, boba, sandwiches, and snacks!
</p>
</div>
<motion.div animate={{ x: [0, 100, 0] }} transition={{ duration: 1 }}>
<h2 className="text-xl sm:text-2xl md:text-3xl font-bold mb-2 text-center">
Hours
</h2>
</motion.div>
<ul className="ml-4 text-center text-gray-600 text-base md:text-xl">
<li>New opening hours:</li>
<li>Sunday: 10am-11pm</li>
<li>Mon-Thurs: 11am-11pm</li>
<li>Fri: 11am-midnight</li>
<li>Sat: 10am-midnight</li>
<li>Our kitchen closes 2.5-3 hours before we close!</li>
</ul>
</motion.div>
</section>
</div>
);
<section className="flex flex-row justify-center items-center mt-20">
{/* <div className="w-3/5 p-28 mt-20">
<h1 className="text-8xl font-bold text-black ">
Our name says it all!
</h1>
<p className="text-black text-2xl">
Founder, Jonathan Li, shares a passion for board games, boba, and
delicious food, so he combined them all to become Sip & Play, Park
Slope’s first board game cafe. It is a straightforward concept: come
in with your friends and family to play any board game from our
library of 300+ games! We hope when you visit, you also enjoy our
coffee, espresso, boba, sandwiches, and snacks!
</p>
<ul className="text-xl mt-4">
<li>New opening hours:</li>
<li>Sunday: 10am-11pm</li>
<li>Mon-Thurs: 11am-11pm</li>
<li>Fri: 11am-midnight</li>
<li>Sat: 10am-midnight</li>
</ul>
<button className="p-2 border-2 border-slate-500">Learn more↗️</button>
</div> */}
<div className="w-1/2 absolute right-40 m-auto">
<img src={coffecup} alt="" className="w-96 rotate-12"/>
</div>
<div className="py-28 z-10">
<h1 className="text-[18rem] font-bold text-black">
PLAYCAFE
</h1>
</div>
</section>
</div>
);
}
29 changes: 0 additions & 29 deletions src/Components/ui/Marquee.jsx

This file was deleted.

Binary file added src/assets/landing/coffecup.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 src/assets/landing/hero pic.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions src/lib/utils.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import { clsx } from "clsx";
import { twMerge } from "tailwind-merge";

export function cn(...inputs) {
return twMerge(clsx(inputs));
}

0 comments on commit c023632

Please sign in to comment.