Skip to content

Commit

Permalink
Added-Responsiveness (#17)
Browse files Browse the repository at this point in the history
-Changed Header for smaller devices
-Fixed the issues
  • Loading branch information
satyampsoni authored Apr 15, 2024
2 parents 8f9e325 + f0e6a95 commit 07de5a9
Show file tree
Hide file tree
Showing 11 changed files with 173 additions and 40 deletions.
35 changes: 25 additions & 10 deletions src/Sections/AboutUs.tsx
Original file line number Diff line number Diff line change
@@ -1,21 +1,36 @@
export const AboutUs = () => {
return (
<div id="aboutus" className="flex flex-col items-center justify-center bg-black w-screen h-screen">
<div className="mt-5">
<h2 className="text-white text-3xl font-bold mb-4">About Us</h2>
<div
id="aboutus"
className="flex flex-col items-center justify-center bg-black w-screen min-h-screen"
>
<div className="mt-20 md:mt-0">
<h2 className="text-white text-3xl font-bold md:mb-8 ">About Us</h2>
<div className="p-1 rounded-lg shadow-lg"></div>
</div>
<div className="flex flex-col items-center mt-8 px-4 lg:px-8">
<div className="flex flex-wrap items-center justify-between gap-x-12 gap-y-8 w-full lg:flex-nowrap">
<div className="flex flex-wrap items-center justify-between gap-x-12 gap-y-8 w-full lg:flex-nowrap">
<div className="flex-1">
<h2 className="text-white text-3xl mb-4 font-thin text-justify" style={{fontFamily:"Arial", margin: "0 30px", padding: "8px" }}>
Welcome to the Cloud Native Community Group - New Delhi. We are the New Delhi chapter of the Cloud Native Community Groups (CNCG), operating under the <span className="text-[#0086FF]">Cloud Native Computing Foundation</span> (CNCF). Our focus is on knowledge sharing and exploring the potential of cloud native technologies. Through our meetups, educational sessions, and practical activities, we aim to empower individuals in navigating the cloud native ecosystem. We are dedicated to hosting at least one meetup every month and take pride in being recognized as the leading CNCG community worldwide. We prioritize creating an inclusive learning environment, adhering to the CNCF Code of Conduct to ensure everyone feels welcome and respected.
</h2>
<h2 className="text-2xl mb-4 text-center text-neutral-200">
Welcome to the Cloud Native Community Group - New Delhi. We are
the New Delhi chapter of the Cloud Native Community Groups (CNCG),
operating under the{" "}
<span className="text-[#0086FF]">
Cloud Native Computing Foundation
</span>{" "}
(CNCF). Our focus is on knowledge sharing and exploring the
potential of cloud native technologies. Through our meetups,
educational sessions, and practical activities, we aim to empower
individuals in navigating the cloud native ecosystem. We are
dedicated to hosting at least one meetup every month and take
pride in being recognized as the leading CNCG community worldwide.
We prioritize creating an inclusive learning environment, adhering
to the CNCF Code of Conduct to ensure everyone feels welcome and
respected.
</h2>
</div>
</div>
</div>
</div>


</div>
);
};
2 changes: 1 addition & 1 deletion src/Sections/Developers.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export const Developers = () => {
image="/"
></InfiniteMovingCards>
</div>
<div className="flex items-center justify-center mt-20">
<div className="flex items-center justify-center md:mt-20">
<Link to="https://github.com/cncgnd">
<button className="bg-pink rounded-xl p-4 text-white font-bold transition duration-300 ease-in-out hover:bg-opacity-80 hover:text-opacity-80">
Want to Contribute ?
Expand Down
4 changes: 2 additions & 2 deletions src/Sections/Events.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ import { HoverEffect } from "@/components/ui/card-hover-effect";

export const Events = () => {
return (
<div className="flex flex-col items-center justify-center bg-black w-screen h-screen">
<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"
className="text-white text-3xl font-bold mb-4 text-center mt-16"
id="events"
>
Our Events
Expand Down
17 changes: 10 additions & 7 deletions src/Sections/Home.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,33 +14,35 @@ import { ScrollToTopButton } from "@/components/ScrollToTopButton";
import { Talks } from "./Talks";
import { Link } from "react-router-dom";


export const Home = () => {
return (
<div className="h-full w-screen flex flex-col">
<Header></Header>

<div
className="justify-center items-center flex h-screen pb-[300px] relative flex-col"
className="justify-center items-center flex h-screen pb-[400px] relative flex-col"
style={{
backgroundImage:
'linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url("./Home-image.jpg")',
backgroundPosition: "center",
}}
>
<div className="w-1/3">
<div className="w-full md:w-1/2 lg:w-1/3 px-4 ">
<TextGenerateEffect
className="mt-[600px]"
words="&quot;DevOps isn't just about breaking down silos; it's about breaking down barriers, fostering collaboration, and enabling teams to build and deliver amazing things together.&quot;"
></TextGenerateEffect>
</div>
<div className="flex items-center justify-center">
<Link to="https://www.cncf.io/all-cncf/">
<button className="bg-pink font-bold text-white p-5 shadow-lg rounded-2xl mt-[200px]">

<div className="flex items-center justify-center px-4 mt-10 md:mt-8 lg:mt-[200px]">
<Link to="https://community.cncf.io/new-delhi/">
<button className="bg-pink font-bold text-white p-4 md:p-5 shadow-lg rounded-2xl ">
Join Us
</button>
</Link>
</div>
</div>

<div>
<AboutUs />
</div>
Expand All @@ -51,7 +53,7 @@ export const Home = () => {
<Stats />
</div>
<div>
<Sponsors/>
<Sponsors />
</div>
<div>
<Talks />
Expand All @@ -62,6 +64,7 @@ export const Home = () => {
<div>
<Developers />
</div>

<Footer></Footer>
<ScrollToTopButton></ScrollToTopButton>
</div>
Expand Down
4 changes: 2 additions & 2 deletions src/Sections/Sponsors.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ import tata from'../images/tata 1 mg.png';
import epam from '../images/epam.png';
export const Sponsors = () => {
return (
<div id="sponsors" className="flex flex-col items-center justify-center bg-black w-screen h-screen">
<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">Our Sponsors</h2>
<h2 className="text-white text-3xl font-bold mb-20 text-center mt-20" 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>
Expand Down
2 changes: 1 addition & 1 deletion src/Sections/Stats.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export const Stats = () => {
className="flex flex-col items-center justify-center bg-black w-screen min-h-screen"
ref={ref}
>
<h2 className="text-white text-3xl font-bold mb-16 mt-16">Stats</h2>
<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">
{titles.map((title, index) => (
<Stat title={title} count={count[index]} />
Expand Down
5 changes: 2 additions & 3 deletions src/Sections/Talks.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
export const Talks = () => {
return (
<div
id="aboutus"
className="flex flex-col items-center justify-center bg-black w-screen h-screen"
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-4">Previous Talks</h2>
<h2 className="text-white text-3xl font-bold mb-20">Previous Talks</h2>
<div className="p-1 rounded-lg shadow-lg"></div>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/Sections/Team.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export const Team = () => {
},
];
return (
<div className="flex flex-col items-center justify-center bg-black w-screen h-screen">
<div id="team" className="flex flex-col items-center justify-center bg-black w-screen h-screen">
<div>
<h2 className="text-white text-3xl font-bold text-center mb-20">
Our Team
Expand Down
12 changes: 6 additions & 6 deletions src/components/Footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,20 +8,20 @@ import {
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
export const Footer = () => {
return (
<footer className="p-2 bg-white sm:p-6 dark:bg-gray-800">
<div className="mx-auto max-w-screen-xl">
<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="flex flex-col ">
<div>
<a href="https://www.cncf.io/" className="flex items-center">
<span className="self-center text-2xl font-semibold whitespace-nowrap">
CNCF New Delhi is a part of
<span className="self-center md:text-2xl font-semibold whitespace-nowrap">
CNCG New Delhi is a part of
</span>
</a>
</div>
<div>
<a href="https://www.cncf.io/">
<a href="https://www.cncf.io/" className="">
<img
src="./cncf-color.png"
className="mb-10"
Expand All @@ -32,7 +32,7 @@ export const Footer = () => {
</a>
</div>
</div>
<div className="ml-20 flex flex-col">
<div className="md:ml-20 flex flex-col">
<Link to="https://community.cncf.io/new-delhi/">
<button className="bg-pink font-bold text-white p-4 px-9 rounded-xl">
Join Now
Expand Down
128 changes: 122 additions & 6 deletions src/components/Header.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
import { useState } from "react";
import { Button } from "./ui/moving-border";

export const Header = () => {
const email = '[email protected]';
const [showSidebar, setShowSidebar] = useState(false);
const email = "[email protected]";

const scrollToComponent = (
id: string,
Expand All @@ -21,8 +23,19 @@ export const Header = () => {

return (
<div className="fixed top-0 left-0 right-0 z-50">
<nav className="bg-white dark:bg-gray-900 fixed w-full z-20 top-0 start-0 border-b border-gray-200 dark:border-gray-600">
<nav className="bg-white dark:bg-gray-900 fixed w-screen z-20 top-0 start-0 border-b border-gray-200 dark:border-gray-600">
<div className="max-w-screen-xl flex flex-wrap items-center justify-between mx-auto p-1">
<div className="flex items-center md:order-2 space-x-3 md:space-x-1 rtl:space-x-reverse font-bold">
{window.innerWidth > 768 && (
<Button
onClick={handleMailClick}
className="bg-pink transition duration-300 ease-in-out hover:text-opacity-80 hover:mix-blend-darken-10"
>
Contact Us
</Button>
)}
</div>

<a
href="/"
className="flex items-center space-x-2 rtl:space-x-reverse"
Expand All @@ -38,11 +51,8 @@ export const Header = () => {
<p>CNCG NEW DELHI</p>
</span>
</a>
<div className="flex md:order-2 space-x-3 md:space-x-1 rtl:space-x-reverse font-bold">
<Button onClick={handleMailClick} className="bg-pink transition duration-300 ease-in-out hover:text-opacity-80 hover:mix-blend-darken-10">Contact Us</Button>
</div>
<div
className="items-center justify-between hidden w-full md:flex md:w-auto md:order-1"
className={`hidden md:flex md:items-center md:justify-between w-full md:w-auto md:order-1`}
id="navbar-sticky"
>
<ul className="flex flex-col p-4 md:p-0 mt-4 border border-gray-100 bg-gray-50 md:space-x-8 rtl:space-x-reverse md:flex-row md:mt-0 md:border-0 md:bg-white ">
Expand Down Expand Up @@ -80,8 +90,114 @@ export const Header = () => {
</li>
</ul>
</div>
<button
onClick={() => setShowSidebar(!showSidebar)}
className="md:hidden focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-pink p-2"
>
{showSidebar ? (
<svg
xmlns="http://www.w3.org/2000/svg"
className="h-8 w-8 text-black dark:text-white"
viewBox="0 0 20 20"
fill="currentColor"
>
<path
fillRule="evenodd"
d="M13.707 14.707a1 1 0 0 1-1.414 0L10 11.414l-2.293 2.293a1 1 0 1 1-1.414-1.414L8.586 10 6.293 7.707a1 1 0 0 1 1.414-1.414L10 8.586l2.293-2.293a1 1 0 1 1 1.414 1.414L11.414 10l2.293 2.293a1 1 0 0 1 0 1.414z"
clipRule="evenodd"
/>
</svg>
) : (
<svg
xmlns="http://www.w3.org/2000/svg"
className="h-8 w-8 text-black dark:text-white"
viewBox="0 0 24 24"
fill="currentColor"
>
<path
fillRule="evenodd"
d="M4 18h16a1 1 0 010 2H4a1 1 0 010-2zm0-7h16a1 1 0 010 2H4a1 1 0 010-2zm0-7h16a1 1 0 010 2H4a1 1 0 010-2z"
clipRule="evenodd"
/>
</svg>
)}
</button>
</div>
</nav>
{showSidebar && (
<div className="md:hidden fixed inset-0 bg-white dark:bg-gray-900 z-30">
<ul className="flex flex-col p-4 md:p-0 mt-4 border border-gray-100 bg-gray-50 md:space-x-8 rtl:space-x-reverse md:flex-row md:mt-0 md:border-0 md:bg-white ">
<li>
<button
onClick={(e) => {
setShowSidebar(false);
scrollToComponent("aboutus", e);
}}
className="block py-2 px-3 text-gray-900 rounded md:hover:bg-transparent md:hover:text-blue md:p-0 md:dark:hover:text-blue-500 dark:text-white dark:hover:bg-gray-700 dark:hover:text-white md:dark:hover:bg-transparent dark:border-gray-700"
>
About Us
</button>
</li>
<li>
<button
onClick={(e) => {
setShowSidebar(false);
scrollToComponent("events", e);
}}
className="block py-2 px-3 text-gray-900 rounded md:hover:bg-transparent md:hover:text-blue md:p-0 md:dark:hover:text-blue-500 dark:text-white dark:hover:bg-gray-700 dark:hover:text-white md:dark:hover:bg-transparent dark:border-gray-700"
>
Events
</button>
</li>
<li>
<button
onClick={(e) => {
setShowSidebar(false);
scrollToComponent("team", e);
}}
className="block py-2 px-3 text-gray-900 rounded md:hover:bg-transparent md:hover:text-blue md:p-0 md:dark:hover:text-blue-500 dark:text-white dark:hover:bg-gray-700 dark:hover:text-white md:dark:hover:bg-transparent dark:border-gray-700"
>
Team
</button>
</li>
<li>
<button
onClick={(e) => {
setShowSidebar(false);
scrollToComponent("sponsors", e);
}}
className="block py-2 px-3 text-gray-900 rounded md:hover:bg-transparent md:hover:text-blue md:p-0 md:dark:hover:text-blue-500 dark:text-white dark:hover:bg-gray-700 dark:hover:text-white md:dark:hover:bg-transparent dark:border-gray-700"
>
Our Sponsors
</button>
</li>
</ul>

<div className="flex items-center md:order-2 space-x-3 md:space-x-1 rtl:space-x-reverse font-bold">
<Button
onClick={handleMailClick}
className="bg-pink transition duration-300 ease-in-out hover:text-opacity-80 hover:mix-blend-darken-10"
>
Contact Us
</Button>
</div>

<button onClick={() => setShowSidebar(!showSidebar)}>
<svg
xmlns="http://www.w3.org/2000/svg"
className="h-8 w-8 text-black dark:text-white"
viewBox="0 0 20 20"
fill="currentColor"
>
<path
fillRule="evenodd"
d="M13.707 14.707a1 1 0 0 1-1.414 0L10 11.414l-2.293 2.293a1 1 0 1 1-1.414-1.414L8.586 10 6.293 7.707a1 1 0 0 1 1.414-1.414L10 8.586l2.293-2.293a1 1 0 1 1 1.414 1.414L11.414 10l2.293 2.293a1 1 0 0 1 0 1.414z"
clipRule="evenodd"
/>
</svg>
</button>
</div>
)}
</div>
);
};
2 changes: 1 addition & 1 deletion src/components/ui/text-generate-effect.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export const TextGenerateEffect = ({
return (
<div className={cn("font-bold", className)}>
<div className="mt-4">
<div className=" dark:text-white text-black text-2xl leading-snug tracking-wide">
<div className=" dark:text-white text-black md:text-2xl leading-snug tracking-wide ">
{renderWords()}
</div>
</div>
Expand Down

0 comments on commit 07de5a9

Please sign in to comment.