Skip to content

Commit

Permalink
fixed-issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Saksham1387 committed Apr 15, 2024
1 parent a69a734 commit f0e6a95
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 104 deletions.
6 changes: 3 additions & 3 deletions src/Sections/AboutUs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@ export const AboutUs = () => {
id="aboutus"
className="flex flex-col items-center justify-center bg-black w-screen min-h-screen"
>
<div className="md:mt-5 ">
<h2 className="text-white text-3xl font-bold mb-8">About Us</h2>
<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-1">
<h2 className=" text-2xl mb-4 text-center text-neutral-200">
<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{" "}
Expand Down
19 changes: 8 additions & 11 deletions src/Sections/Home.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,38 +14,36 @@ 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://community.cncf.io/new-delhi/">
<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 >
<div>
<AboutUs />
</div>
<div>
Expand All @@ -55,7 +53,7 @@ export const Home = () => {
<Stats />
</div>
<div>
<Sponsors/>
<Sponsors />
</div>
<div>
<Talks />
Expand All @@ -66,10 +64,9 @@ export const Home = () => {
<div>
<Developers />
</div>

<Footer></Footer>
<ScrollToTopButton></ScrollToTopButton>

</div>
);
};
91 changes: 1 addition & 90 deletions src/components/Header.tsx
Original file line number Diff line number Diff line change
@@ -1,90 +1,3 @@
// import { Button } from "./ui/moving-border";

// export const Header = () => {
// const email = '[email protected]';

// const scrollToComponent = (
// id: string,
// event: React.MouseEvent<HTMLButtonElement | HTMLAnchorElement>
// ) => {
// event.preventDefault();
// const element = document.getElementById(id);
// if (element) {
// element.scrollIntoView({ behavior: "smooth" });
// }
// };

// const handleMailClick = () => {
// const mailtoLink = `mailto:${email}`;
// window.location.href = mailtoLink;
// };

// 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">
// <div className="max-w-screen-xl flex flex-wrap items-center justify-between mx-auto p-1">
// <a
// href="/"
// className="flex items-center space-x-2 rtl:space-x-reverse"
// >
// <img
// src="./logo.jpg"
// alt="Logo"
// width={90}
// height={90}
// className="rounded-full"
// />
// <span className="self-center text-xl font-bold whitespace-nowrap dark:text-white flex flex-col">
// <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"
// 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 ">
// <li>
// <button
// onClick={(e) => 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) => 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) => 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) => 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>
// </div>
// </nav>
// </div>
// );
// };
import { useState } from "react";
import { Button } from "./ui/moving-border";

Expand Down Expand Up @@ -112,10 +25,8 @@ export const Header = () => {
<div className="fixed top-0 left-0 right-0 z-50">
<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) && (
{window.innerWidth > 768 && (
<Button
onClick={handleMailClick}
className="bg-pink transition duration-300 ease-in-out hover:text-opacity-80 hover:mix-blend-darken-10"
Expand Down

0 comments on commit f0e6a95

Please sign in to comment.