Skip to content

Commit

Permalink
fixed responsiveness
Browse files Browse the repository at this point in the history
  • Loading branch information
Saksham1387 committed Apr 15, 2024
1 parent 07de5a9 commit 166c8da
Show file tree
Hide file tree
Showing 6 changed files with 54 additions and 42 deletions.
4 changes: 2 additions & 2 deletions src/Sections/Events.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export const Events = () => {
<div className="flex flex-col items-center justify-center bg-black w-screen h-full">
<div>
<h2
className="text-white text-3xl font-bold mb-4 text-center mt-16"
className="text-white text-3xl font-bold mb-4 text-center mt-2"
id="events"
>
Our Events
Expand Down Expand Up @@ -56,7 +56,7 @@ export const Events = () => {
imageurl: "./Bevy poster.jpg",
},
{
title: "Online Event (virtual)",
title: "Online Event",
description:
"Cloud Native Connect: Unleashing the power of CNCF",
link: "https://community.cncf.io/events/details/cncf-new-delhi-presents-cloud-native-connect-unleashing-the-power-of-cncf/",
Expand Down
38 changes: 24 additions & 14 deletions src/Sections/Sponsors.tsx
Original file line number Diff line number Diff line change
@@ -1,23 +1,33 @@

import './Card.css';
import devtron from '../images/devtron.png';
import microsoft from '../images/microsoft.png';
import tata from'../images/tata 1 mg.png';
import epam from '../images/epam.png';
import "./Card.css";
import devtron from "../images/devtron.png";
import microsoft from "../images/microsoft.png";
import tata from "../images/tata 1 mg.png";
import epam from "../images/epam.png";
export const Sponsors = () => {
return (
<div className="flex flex-col items-center justify-center bg-black w-screen h-full">
<div className="mb-96">
<h2 className="text-white text-3xl font-bold mb-20 text-center mt-20" id="sponsors">Our Sponsors</h2>
<div className="">
<h2
className="text-white text-3xl font-bold mb-20 text-center mt-[150px]"
id="sponsors"
>
Our Sponsors
</h2>
<div className="p-4 rounded-lg shadow-lg grid sm:grid-cols-1 md:grid-cols-2 gap-20">
<div className='card ease-in-out '><img src={devtron} className='img pt-8'></img></div>
<div className='card ease-in-out '><img src={microsoft} className='img pt-8'></img></div>
<div className='card ease-in-out '><img src={tata} className='img'></img></div>
<div className='card ease-in-out '><img src={epam} className='img h-36'></img></div>
<div className="card ease-in-out ">
<img src={devtron} className="img pt-8"></img>
</div>
<div className="card ease-in-out ">
<img src={microsoft} className="img pt-8"></img>
</div>
<div className="card ease-in-out ">
<img src={tata} className="img"></img>
</div>
<div className="card ease-in-out ">
<img src={epam} className="img h-36"></img>
</div>
</div>
</div>
</div>
);
};


8 changes: 5 additions & 3 deletions src/Sections/Stats.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,13 @@ export const Stats = () => {

return (
<div
className="flex flex-col items-center justify-center bg-black w-screen min-h-screen"
className="flex flex-col items-center justify-center bg-black w-screen h-full"
ref={ref}
>
<h2 className="text-white text-3xl font-bold mb-16 mt-10">Stats</h2>
<div className="flex md:flex-row flex-col justify-between w-full max-w-[1200px] px-5 md:px-20 py-5">
<h2 className="text-white text-3xl font-bold mb-16 mr-5 mt-[150px]">
Stats
</h2>
<div className="flex flex-row justify-between w-full max-w-[1200px] px-5 md:px-20 py-5">
{titles.map((title, index) => (
<Stat title={title} count={count[index]} />
))}
Expand Down
10 changes: 5 additions & 5 deletions src/Sections/Talks.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
export const Talks = () => {
return (
<div
className="flex flex-col items-center justify-center bg-black w-screen h-full"
>
<div className="mt-5">
<h2 className="text-white text-3xl font-bold mb-20">Previous Talks</h2>
<div className="flex flex-col items-center justify-center bg-black w-screen h-full">
<div>
<h2 className="text-white text-3xl font-bold mb-20 mt-[150px]">
Previous Talks
</h2>
<div className="p-1 rounded-lg shadow-lg"></div>
</div>
</div>
Expand Down
20 changes: 11 additions & 9 deletions src/components/Footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ import {
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
export const Footer = () => {
return (
<footer className="p-2 bg-white sm:p-6 dark:bg-gray-800 ">
<footer className="p-2 bg-white sm:p-6 dark:bg-gray-800">
<div className="mx-auto max-w-screen-xl w-screen">
<div className="md:flex md:justify-between">
<div className=" md:mb-0 flex flex-row mt-2">
<div className="md:mb-0 flex flex-col md:flex-row mt-2">
<div className="flex flex-col ">
<div>
<a href="https://www.cncf.io/" className="flex items-center">
Expand Down Expand Up @@ -47,8 +47,8 @@ export const Footer = () => {
</div>
</div>

<div className="grid grid-cols-2 gap-8 sm:gap-6 sm:grid-cols-3">
<div>
<div className="grid grid-cols-3 gap-6 md:gap-8 sm:gap-6 sm:grid-cols-3">
<div className="md:mt-0 mt-3">
<ul className="text-gray-600 dark:text-gray-400 mt-11">
<li className="mb-4">
<a
Expand All @@ -65,15 +65,16 @@ export const Footer = () => {
</li>
</ul>
</div>
<div>
<h2 className=" text-sm font-semibold text-gray-900 uppercase dark:text-white ml-10">

<div className="md:mt-0 mt-3 md:mr-0">
<h2 className=" text-sm font-semibold text-gray-900 uppercase dark:text-white md:ml-10">
Resources
</h2>
<ul className="text-gray-600 dark:text-gray-400 ml-5 mt-5">
<ul className="text-gray-600 dark:text-gray-400 mt-5 ">
<li className="mb-4">
<a
href="https://m.youtube.com/@cncf/search?query=Kubecon"
className="hover:underline "
className="hover:underline"
>
Contribute.cncf.io
</a>
Expand All @@ -96,7 +97,8 @@ export const Footer = () => {
</li>
</ul>
</div>
<div>

<div className="md:mt-0 mt-3">
<ul className="text-gray-600 dark:text-gray-400 mt-10">
<li className="mb-4">
<a
Expand Down
16 changes: 7 additions & 9 deletions src/components/ui/card-hover-effect.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export const HoverEffect = ({
return (
<div
className={cn(
"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 py-10 gap-x-4 gap-y-2",
"grid grid-cols-2 md:grid-cols-2 lg:grid-cols-4 py-10 gap-x-4 gap-y-2",
className
)}
>
Expand Down Expand Up @@ -79,10 +79,10 @@ export const Card = ({
return (
<motion.div
className={cn(
"rounded-2xl h-full w-full p-4 overflow-hidden bg-neutral-50 border-transparent dark:border-white/[0.2] group-hover:border-slate-700 relative z-20",
"rounded-2xl p-4 overflow-hidden bg-neutral-50 border-transparent dark:border-white/[0.2] group-hover:border-slate-700 relative z-20 w-[160px] h-[290px] sm:w-[250px] sm:h-[390px]",
className
)}
style={{ width: "250px", height: "390px" }}
// style={{ width: "250px", height: "390px" }}
initial="hidden"
animate={inView ? "visible" : "hidden"}
variants={variants}
Expand All @@ -93,9 +93,7 @@ export const Card = ({
<motion.img
src={imageUrl}
alt="Card Image"
className="mx-auto mb-4 rounded-xl"
width={250}
height={250}
className="mx-auto md:mb-4 rounded-xl md:w-[250px] md:h-[220px]"
/>
<div className="p-3">{children}</div>
</div>
Expand All @@ -110,7 +108,7 @@ export const CardTitle = ({
children: React.ReactNode;
}) => {
return (
<h4 className={cn("text-black tracking-wide font-light", className)}>
<h4 className={cn("text-black tracking-wide font-light md:text-sm sm:text-xs", className)}>
{children}
</h4>
);
Expand All @@ -122,7 +120,7 @@ export const CardButton = ({
children: React.ReactNode;
}) => {
return (
<a className={cn("text-pink font-bold tracking-wide mt-4", className)}>
<a className={cn("text-pink font-bold tracking-wide text-sm", className)}>
<span className="ml-1">&#8594;</span> View Details
</a>
);
Expand All @@ -138,7 +136,7 @@ export const CardDescription = ({
return (
<p
className={cn(
"mt-2 text-black tracking-wide leading-relaxed text-md font-bold",
"md:mt-2 text-black tracking-wide leading-relaxed text-[12px] md:text-lg font-bold",
className
)}
>
Expand Down

0 comments on commit 166c8da

Please sign in to comment.