Skip to content
Open
Show file tree
Hide file tree
Changes from 9 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
5,209 changes: 5,209 additions & 0 deletions package-lock.json

Large diffs are not rendered by default.

9 changes: 8 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,11 @@
"@tabler/icons-react": "^2.46.0",
"clsx": "^2.1.0",
"next": "^14.0.4",
"framer-motion": "^11.0.3",
"react": "^18",
"react-dom": "^18",
"react-fast-marquee": "^1.6.3",
"react-icons": "^5.0.1",
"swiper": "^11.0.5",
"tailwind-merge": "^2.2.1"
},
Expand All @@ -27,5 +30,9 @@
"postcss": "^8",
"tailwindcss": "^3.3.0",
"typescript": "^5"
}
},
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • Remove the author, license, repository and main keys
  • Kindly rename the images with proper name.

"main": "index.js",
"repository": "https://github.com/Kaarthik-07/frontend.git",
"author": "Kaarthik-07 <57kaarthikj@gmail.com>",
"license": "MIT"
}
Binary file added public/Group 298 (1).webp
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/Group 299 (1) 1.webp
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/Group 299sss.webp
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/Group29add9.webp
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/Group29adfff9.webp
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/Group29s9.webp
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/Group29sss9.webp
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions public/downloading_white_48dp.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
62 changes: 62 additions & 0 deletions src/components/CardButtonn.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
import { motion } from "framer-motion";
import { CSSProperties } from "react";
import './app.css'
const CardButton = () => {
const itemVariants = {
hidden: { opacity: 0, x: -100 },
visible: { opacity: 1, x: 0, transition: { duration: 0.5, ease: "easeOut" } },
};

return (
<>

<div className="flex justify-evenly">
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • replace div with section of better code semantics

<motion.div
className=""
initial="hidden"
animate="visible"
variants={itemVariants}
style ={{margin:'5%'}}

>
<h1 className="text-2xl md:text-5xl font-bold mb-4 " >Phone :</h1>

<br />
<p className="res text-md lg:text-base"> M Gayathrie(Event Queries)</p>
<br />

<p className="res text-md lg:text-base ">. Shyam (Sponsorship Queries),</p>
<br />

<p className="res text-md lg:text-base">. V Akshya Preetha (Pro Shows Queries)</p>
<br />

<p className="res text-md lg:text-base">: BitSpace</p>

</motion.div>
<motion.div
className=" right-10 top-10 hidden md:block "
initial="hidden"
animate="visible"
variants={itemVariants}
style ={{margin:'5%'}}
>

<h1 className="text-2xl md:font-bold mb-4">Useful Links</h1>

<br />
<p className="text-sm md:text-xl p-4 hidden">Opening Soon</p>
<p className="text-sm md:text-xl p-4" >Events</p>
<p className="text-sm md:text-xl p-4">Credits</p>
<p className="text-sm md:text-xl p-4">Pro Harder</p>
</motion.div>

</div>

</>
);
};
//absolute left-20 top-20 w-full
//absolute left-14 top-20
//absolute right-14 top-20"
export default CardButton;
51 changes: 51 additions & 0 deletions src/components/ContentSwitch.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
"use client"
import ToggleButton from "./ToggleButton";
import CardButton from "./CardButtonn";
import { useState } from "react";
import { CSSProperties } from "react";
const ContentSwitcher = () => {
const [showCardButton, setShowCardButton] = useState(true);

const toggleContent = () => {
setShowCardButton(!showCardButton);
console.log("it works")
};
const style : CSSProperties = {
display : "flex",
flexDirection : "column",
alignItems : "center"
}
return (
<>
<h1 className="text-4xl font-semibold pb-4 ml-20 text-white relative">
Location
<span className="absolute bottom-0 left-0 bg-white bg-opacity-20 h-1 w-11/12 rounded-full border-white"></span>
</h1>
<br/>
<br />
<br />
<div style={style}>

<div className="w-2/3 h-1/5 bg-transparent border-2 border-solid border-white border-opacity-20 backdrop-filter backdrop-blur-lg shadow-lg text-white rounded-md relative">

<div className="F" >


{showCardButton ? <ToggleButton /> : <CardButton />}
<div className="flex justify-center">
<button className=" left-10 w-8 h-8 rounded-full border border-gray-300 mr-4 transition duration-300 ease-in-out hover:bg-gray-100" onClick={toggleContent}>

</button>
<button className="w-8 h-8 rounded-full border border-gray-300 mr-4 transition duration-300 ease-in-out hover:bg-gray-100" onClick={toggleContent}>
</button>
</div>
</div>

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

export default ContentSwitcher;
7 changes: 7 additions & 0 deletions src/components/Main/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ import {
IconPhone,
} from "@tabler/icons-react";
import { Button } from "@/components";
import ChooseCarousel from "../Marquee";
import CardButton from "../CardButtonn";
import ContentSwitcher from "../ContentSwitch";

const Main = () => {
return (
Expand Down Expand Up @@ -110,6 +113,8 @@ const Main = () => {
testament to the unfathomable wonders of the creative mind.
</p>
</section>
<ChooseCarousel/>
<ContentSwitcher/>

<section className="w-full flex items-center justify-center border-y border-cream">
<section className="p-10 py-24">
Expand Down Expand Up @@ -174,6 +179,8 @@ const Main = () => {
<h1>Website By Team :bitspace</h1>
</section>
</section>


</main>
);
};
Expand Down
115 changes: 115 additions & 0 deletions src/components/Marquee.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,115 @@
"use client"
import React, { useState } from "react";
import Marquee from "react-fast-marquee";
import { motion } from "framer-motion";


const Images = [
{
id: 1,
src :'https://raw.githubusercontent.com/jesvijonathan/Takshashila/master/static/sponsors/Group%20298%20(1).webp',
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • do not use external images, use images in the repository

alt: "Image 1",
},
{
id: 2,
src:"https://raw.githubusercontent.com/jesvijonathan/Takshashila/master/static/sponsors/Group%20299%20(1)%201.webp",
alt: "Image 2",
},
{
id: 3,
src:"https://raw.githubusercontent.com/jesvijonathan/Takshashila/master/static/sponsors/Group%20299sss.webp",
alt: "Image 3",
},
{
id: 4,
src: "https://raw.githubusercontent.com/jesvijonathan/Takshashila/master/static/sponsors/Group%2029add9.webp",
alt: "Image 4",
},
{
id: 5,
src:"https://raw.githubusercontent.com/jesvijonathan/Takshashila/master/static/sponsors/Group%2029adfff9.webp",
alt:"Image 5",
},

// Add other image objects
];


const ChooseCarousel = () => {
const [isHovered, setIsHovered] = useState(false);

const handleMouseEnter = () => {
setIsHovered(true);
};

const handleMouseLeave = () => {
setIsHovered(false);
};

const imageVariants = {
hidden: { opacity: 0, scale: 0.9 },
show: {
opacity: 1,
scale: 1,
transition: {
duration: 0.5,
},
},
};

return (
<>
<h1 className="text-4xl font-semibold pb-4 ml-20 text-white relative">
Sponsors
<span className="absolute bottom-0 left-0 bg-white bg-opacity-20 h-1 w-11/12 rounded-full border-white"></span>

</h1>

<br />
<div
className="content"
onMouseEnter={handleMouseEnter}
onMouseLeave={handleMouseLeave}
style={{
display: "flex",
justifyContent: "center",
overflowX: "hidden",
width: "100%",
}}
>

<div style={{ width: "70%", maxWidth: "70vw" }}> {/* Set width to half of the viewport */}
<Marquee speed={700} pauseOnHover style={{ display: "flex", justifyContent: "center" }}>
{Images.map((image) => (
<motion.div
key={image.id}
className="images"
variants={imageVariants}
initial="hidden"
animate="show"
style={{ margin: "0 10px" }} // for Adjusting margin between images
>

<img
src={image.src}
alt={image.alt}
style={{
width: "400px", // Set width of the image
height: "250px", // Set height of the image
borderRadius: "15px",
opacity: isHovered ? 0.5 : 1,
transition: "opacity 0.3s ease",
}}
/>
</motion.div>
))}
</Marquee>

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


export default ChooseCarousel;
2 changes: 1 addition & 1 deletion src/components/NavBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const NavBar = () => {
};

return (
<nav className="flex justify-between items-center h-16 fixed z-50 w-full p-8 pt-16 md:p-20">
<nav className="flex justify-between items-center h-16 fixed z-50 w-full p-8 pt-16 md:p-20 res">
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • try to use responsive breakpoint given in the tailwind, try to avoid writing custom breakpoints

<a href="#hero">
<Image
width={48}
Expand Down
47 changes: 47 additions & 0 deletions src/components/ToggleButton.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
"use client"
import { useState } from 'react';
import { CSSProperties } from 'react';
import './app.css'
import { motion } from "framer-motion";
import Accordion from './accordion';
const ToggleButton = () =>{
const itemVariants = {
hidden: { opacity: 0, x: -100 },
visible: { opacity: 1, x: 0, transition: { duration: 0.5, ease: "easeOut" } },
};
return (
<>


{/* <div className="flex justify-center items-center h-screen"> */}
<div className="defaultStyle" style={{}}>
<div className="" style={{margin:'2%'}}>
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • don't use explicit inline styling, try to stay with tailwind classes

<Accordion />
</div>


<motion.div
className=""
initial="hidden"
animate="visible"
variants={itemVariants}
style={{margin : '5%'}}
>
<h1 className="text-4xl font-bold mb-4">Chennai Institute Of Technology</h1>
<br />
<br />
<p className="hidden lg:block">SH-113, Sarathy Nagar,</p>
<p>Pudupedu Kundrathur,</p>
<p>Sriperumbudur Main Road,</p>
<p>Chennai, Tamil Nadu</p>
<p>PIN: 600069</p>
</motion.div>
</div>

</>
);
};
//"absolute left-20 top-20 w-full
//absolute right-14 top-20

export default ToggleButton;
Loading