Skip to content

Commit

Permalink
Merge pull request #35 from GarudaHacks/staging
Browse files Browse the repository at this point in the history
final fix on mobile
  • Loading branch information
shannonaurl authored Jul 3, 2024
2 parents 73e3003 + 59d0746 commit 701b5a6
Show file tree
Hide file tree
Showing 22 changed files with 177 additions and 213 deletions.
Binary file removed public/imgs/abstract/img1.jpg
Binary file not shown.
Binary file removed public/imgs/abstract/img11.jpg
Binary file not shown.
Binary file removed public/imgs/abstract/img12.jpg
Binary file not shown.
Binary file removed public/imgs/abstract/img14.jpg
Binary file not shown.
Binary file removed public/imgs/abstract/img15.jpg
Binary file not shown.
Binary file removed public/imgs/abstract/img16.jpg
Binary file not shown.
Binary file removed public/imgs/abstract/img17.jpg
Binary file not shown.
Binary file removed public/imgs/abstract/img18.jpg
Binary file not shown.
Binary file modified public/imgs/abstract/img19.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed public/imgs/abstract/img19.jpg
Binary file not shown.
Binary file removed public/imgs/abstract/img2.jpg
Binary file not shown.
Binary file removed public/imgs/abstract/img4.jpg
Binary file not shown.
Binary file modified public/imgs/abstract/img6.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed public/imgs/abstract/img6.jpg
Binary file not shown.
Binary file added public/imgs/abstract/img7.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed public/imgs/abstract/img7.jpg
Binary file not shown.
Binary file removed public/imgs/abstract/img8.jpg
Binary file not shown.
Binary file removed public/imgs/abstract/img9.jpg
Binary file not shown.
52 changes: 0 additions & 52 deletions src/app/components/Card.jsx

This file was deleted.

32 changes: 23 additions & 9 deletions src/app/components/HorizontalScrollCarousel.jsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
"use client";
import { motion, useTransform, useScroll } from "framer-motion";
import { useRef } from "react";
import Card from "./Card";

const Example = () => {
return (
Expand Down Expand Up @@ -33,43 +32,58 @@ const HorizontalScrollCarousel = () => {
);
};

const Card = ({ card }) => {
return (
<div
key={card.id}
className="group relative h-[450px] w-[450px] overflow-hidden bg-neutral-200"
>
<div
style={{
backgroundImage: `url(${card.url})`,
backgroundSize: "cover",
backgroundPosition: "center",
}}
className="absolute inset-0 z-0 transition-transform duration-300 group-hover:scale-110"
></div>
<div className="absolute inset-0 z-10 grid place-content-center">
<p className="bg-gradient-to-br from-white/20 to-white/0 p-8 text-6xl font-black uppercase text-white backdrop-blur-lg">
{card.title}
</p>
</div>
</div>
);
};

export default Example;

const cards = [
{
url: "/imgs/abstract/img1.jpeg",
id: 1,
title: "Title 1",
},
{
url: "/imgs/abstract/img2.jpeg",
id: 2,
title: "Title 2",
},
{
url: "/imgs/abstract/img3.jpeg",
id: 3,
title: "Title 3",
},
{
url: "/imgs/abstract/img4.jpeg",
id: 4,
title: "Title 4",
},
{
url: "/imgs/abstract/img5.jpeg",
id: 5,
title: "Title 5",
},
{
url: "/imgs/abstract/img6.jpeg",
id: 6,
title: "Title 6",
},
{
url: "/imgs/abstract/img7.jpeg",
id: 7,
title: "Title 7",
},
];

304 changes: 154 additions & 150 deletions src/app/components/Judges.jsx

Large diffs are not rendered by default.

2 changes: 0 additions & 2 deletions src/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,7 @@ export default function Home() {
{/* <AnimatedSection>
<HorizontalScrollCarousel />
</AnimatedSection> */}
<AnimatedSection>
<Judges />
</AnimatedSection>
<AnimatedSection>
<FAQs />
</AnimatedSection>
Expand Down

0 comments on commit 701b5a6

Please sign in to comment.