Skip to content

Commit

Permalink
ui changes
Browse files Browse the repository at this point in the history
  • Loading branch information
suvanbanerjee committed Aug 16, 2024
1 parent da22f29 commit e8c350e
Show file tree
Hide file tree
Showing 13 changed files with 718 additions and 264 deletions.
17 changes: 10 additions & 7 deletions app/(default)/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,35 +6,38 @@ export const metadata = {
import Hero from "@/components/hero";
import Domains from "@/components/domains";
import "../css/additional-styles/landing.css";
import Landing from "@/components/landing";
import Activities from "@/components/activities";
import Image from "next/image";
import Link from "next/link";
import SparklesText from "@/components/magicui/sparkles-text";
import EventComponent from "@/components/eventcards";
import Leads from "@/components/leads";

export default function Home() {
return (
<>
<Hero />
<div className="flex flex-col justify-center items-center py-10 px-5 mb-20">
<div className="text-4xl font-bold text-center text-gray-200 mb-4">
Upcoming Events
</div>
<SparklesText text="Upcoming Events" className="text-4xl font-bold text-center text-gray-200 mb-4" />
<Link href="/sihregistration">
<Image
src={"/images/sih.png"}
alt="sih"
height={400}
width={1100}
className="rounded-3xl border-2 border-slate-500"
className="rounded-3xl mt-20"
/>
</Link>
<Link href="/sihregistration">
<button className="btn-sm text-xl text-black bg-green-500 mx-3 rounded-xl mt-10">
<button className="btn-sm px-5 py-3 text-xl font-bold text-white bg-green-600 mx-3 rounded-xl mt-10">
Register for SIH
</button>
</Link>
</div>
<Domains />
<Landing />
<Activities />
<EventComponent />
<Leads />
</>
);
}
10 changes: 4 additions & 6 deletions app/(default)/sihregistration/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,20 +7,18 @@ import { cn } from "@/lib/utils";
const RegisterPage = () => {
return (
<FormProvider>
<div className="w-50 mt-16 mx-auto flex flex-col items-center justify-center">
<div className="mt-16 mx-auto flex flex-col items-center justify-center">
<div className="container">
<div className="box">
<div className="title">
<div className="title items-center justify-center mt-8">
<span className="block"></span>
<h1 className="h1">
Register for Smart India Hackathon!<span></span>
Register for Smart India Hackathon!
</h1>
</div>
</div>
</div>

<div className="form-container my-2">
<SIHRegistrationForm />
<SIHRegistrationForm data-aos="zoom-y-out" data-aos-delay="350" />
</div>
<DotPattern
width={20}
Expand Down
20 changes: 3 additions & 17 deletions app/css/additional-styles/form.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,6 @@
background: transparent;
}

.h1,
.h2 {
font-family: Cambria, Cochin, Georgia, Times, "Times New Roman", serif;
}
.form-container select {
background-color: black;
}
Expand All @@ -29,31 +25,21 @@
justify-content: center;
align-items: center;
}
.container .box {
margin-top: 3rem;
text-align: center;
position: relative;
display: flex;
justify-content: center;
flex-direction: column;
}
.container .box .title {
.container .title {
width: 100%;
position: relative;
display: flex;
align-items: center;
height: 50px;
}
.container .box .title .block {
width: 0%;
.container .title .block {
height: inherit;
background: #52c264;
position: absolute;
animation: mainBlock 2s cubic-bezier(0.74, 0.06, 0.4, 0.92) forwards;
display: flex;
}
.container .box .title h1 {
font-family: "Poppins";
.container .title h1 {
color: #fff;
-webkit-animation: mainFadeIn 2s forwards;
-o-animation: mainFadeIn 2s forwards;
Expand Down
131 changes: 131 additions & 0 deletions components/activities.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,131 @@
import React from "react";
import Image from "next/image";
import HyperText from "@/components/magicui/hyper-text";

export default function Activities() {
return (
<>
<div className="flex flex-col place-items-center font-bold pt-20 pb-10">
<h2 className="text-5xl text-white-800 text-center mb-5">Activities</h2>
</div>

{/* CP Post */}
<div className="flex flex-col md:flex-row w-full h-full" data-aos="zoom-y-out" data-aos-delay="150">
<div className="highlight flex-1 flex items-center justify-center bg-black-800 p-8">
<div className="p-8 md:p-16">
<HyperText className="text-3xl font-bold mb-4 text-green-500" text="Competetive Programming" />
<h2 className="text-2xl font-bold mb-4">PB Hustle</h2>
<p className="text-lg text-justify">
Point Blank has organized over 40+ editions of its PB Hustle
coding contest, where participants solve 5-7 increasingly
difficult problems in their preferred programming language. The
contest aims to enhance the programming culture in colleges and
help teams qualify for the ACM ICPC. Impressively, DSCE's leading
programmers have risen through this platform, with participation
in the CodeChef Long Challenge expanding from just 3 to over 70+
participants.
</p>
</div>
</div>
<div className=" highlight flex-1 w-full flex items-center justify-center bg-black-900">
<div className="h-96 w-96 flex items-center justify-center bg-black-900">
<Image
src={"/images/cp.jpeg"}
alt=""
className="rounded-xl object-cover w-full h-full"
width={"500"}
height={"500"}
/>
</div>
</div>
</div>

{/* Development Post */}
<div className="flex flex-col-reverse items-center justify-center md:flex-row w-full h-full" data-aos="zoom-y-out" data-aos-delay="150">
<div className="highlight flex-1 flex items-center justify-center bg-black-500 h-full">
<div className="h-96 flex items-center justify-center bg-black-900">
<Image
src={"/images/dev.jpg"}
alt=""
className="rounded-xl object-cover w-full h-full"
width={"500"}
height={"500"}
/>
</div>
</div>
<div className="highlight flex-1 flex items-center justify-center p-8 bg-black-800">
<div className="p-8 md:p-16 text-justify">
<HyperText className="text-3xl font-bold mb-4 text-green-500" text="Development" />
<h2 className="text-2xl font-bold mb-4">PB Chronicals</h2>
<p className="text-lg text-justify">
Point Blank has hosted over 100+ workshops, covering a wide range
of topics including open source, DevOps, machine learning,
placement preparation, data structures and algorithms, and mobile
and web development, among others. These workshops are typically
conducted in an informal and unscripted manner, though we do
document some of our most significant sessions. One notable
example is our primer on F/OSS development.
</p>
</div>
</div>
</div>

{/* Hackathon Post */}
<div className="flex flex-col md:flex-row w-full h-full" data-aos="zoom-y-out" data-aos-delay="150">
<div className="highlight flex-1 flex items-center justify-center bg-black-800 p-8">
<div className="p-8 md:p-16">
<HyperText className="text-3xl font-bold mb-4 text-green-500" text="Hackathons" />
<h2 className="text-2xl font-bold mb-4">Smart India Hackathon</h2>
<p className="text-lg text-justify">
Each year, we organize the internal round of the Smart India
Hackathon. In the 2020 edition, over 300+ individuals from DSCE
participated. Two of our teams advanced to the finals, with one
emerging as the winner of the software edition. Along with this,
teams from Point Blank have won hackathons all across the city and
country.
</p>
</div>
</div>
<div className="highlight flex-1 flex items-center justify-center bg-black-900">
<div className="h-96 flex items-center justify-center bg-black-900">
<Image
src={"/images/hack.jpg"}
alt=""
className="rounded-xl object-cover w-full h-full"
width={"500"}
height={"500"}
/>
</div>
</div>
</div>

{/* CyberSec Post */}
<div className="flex flex-col-reverse items-center justify-center md:flex-row w-full h-full" data-aos="zoom-y-out" data-aos-delay="150">
<div className="highlight flex-1 flex items-center justify-center bg-black-900 h-full">
<div className="w-96 h-96 flex items-center justify-center bg-black-900">
<Image
src={"/images/ctf.jpg"}
alt=""
className="rounded-xl object-cover w-full h-full"
width={"300"}
height={"300"}
/>
</div>
</div>

<div className="highlight flex-1 flex items-center justify-center p-8 bg-black-800">
<div className="p-8 md:p-16">
<HyperText className="text-3xl font-bold mb-4 text-green-500" text="Cybersecurity" />
<h2 className="text-2xl font-bold mb-4">PB CTF</h2>
<p className="text-lg text-justify">
We organize workshops and sessions on various topics in
cybersecurity, including hands-on practice on different platforms.
In 2023, we launched the first in-house Capture The Flag event,
PBCTF, which attracted over 70+ participants.
</p>
</div>
</div>
</div>
</>
);
}
52 changes: 52 additions & 0 deletions components/eventcards.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
import React from "react";

const eventCard = [
{
id: 1,
url: '/images/openday.jpg',
textt: "Tech Open Day",
textb: "Our first offline event of the year and it was a huge success✨Get to know about tech societies on campus and how to join them🚀",
},
{
id: 2,
url: '/images/advaith.jpg',
textt: "Advaith",
textb: "An event full of opportunities, challenges, learning and much more! Be a part of something big, be a part of ADVAITH!",
},
{
id: 3,
url: '/images/recruit.jpeg',
textt: "Recruitment 2024",
textb: "Recruitment 2024 is here! Join us and be a part of the Point Blank family!🚀",
},
];

const EventComponent = () => {
return (
<>
<div className="container place-items-center font-bold pt-20 pb-10">
<h2 className="text-5xl text-white-800 text-center">Events</h2>
<h5 className="text-2xl text-white-800 text-center">
We organise lots of student centric activities
</h5>
</div>
<div className="view">
{eventCard.map((ec) => (
<div key={ec.id} className="event-card">
<div className="card">
<div className="front">
<img src={ec.url} className="w-full h-full object-cover" alt={ec.textt} />
</div>
<div className="back">
<h2 className="text-xl font-semibold capitalize">{ec.textt}</h2>
<p className="px-4 text-center text-gray-300">{ec.textb}</p>
</div>
</div>
</div>
))}
</div>
</>
);
};

export default EventComponent;
3 changes: 1 addition & 2 deletions components/forms/sihForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -115,11 +115,10 @@ const SIHMultiStepForm: React.FC = () => {
return (
<div className="my-4 mx-auto p-6 rounded-lg">
<img
className="rounded-full h-20 mx-auto mb-6 w-20"
className="rounded-full h-20 mx-auto mb-10 w-20"
src="https://i0.wp.com/opportunitycell.com/wp-content/uploads/2022/03/SIH2.png?fit=327%2C345&ssl=1"
alt="SIH"
/>
<h1 className="mb-6 h1 text-center">SIH Registration Form</h1>
<form onSubmit={handleSubmit(onSubmit)}>
{/* Step 1: Team Information */}
{step === 1 && (
Expand Down
29 changes: 15 additions & 14 deletions components/hero.tsx
Original file line number Diff line number Diff line change
@@ -1,36 +1,37 @@
import Logo from '@/public/images/logo.png'
import logo from '@/public/images/logo.svg'
import Link from 'next/link'
import DotPattern from "@/components/magicui/dot-pattern";
import Image from 'next/image'
import FlickeringGrid from "@/components/magicui/flickering-grid";
import { cn } from "@/lib/utils";
import "../app/css/additional-styles/landing.css";


export default function Hero() {
return (
<section className="relative md:h-screen flex justify-center items-center div-class">
<section className="relative h-screen flex justify-center items-center">
<div className="max-w-6xl mx-auto px-4 sm:px-6 ">
<div className="pt-32 pb-5 md:pt-40 md:pb-5">
<div className="pb-5 md:pb-5">
<div className="max-w-6xl mx-auto">
<div className="grid grid-cols-1 md:grid-cols-2 gap-8">
<div>
<h1 className="text-5xl font-extrabold leading-tighter tracking-tighter mb-4 text-gray-200" data-aos="zoom-y-out"></h1>
<p className="text-xl text-gray-100 mb-8" data-aos="zoom-y-out" data-aos-delay="150"></p>
<Image src={logo} alt='Logo' height={100} className="mx-auto mb-8" />
<p className="text-xl text-gray-100 mb-8" data-aos="zoom-y-out" data-aos-delay="350">
We are a student run tech community at Dayananda Sagar College of Engineering, Bangalore. We aim to provide a platform for students to learn, grow and innovate.
</p>
</div>
</div>
</div>
</div>
</div>
</div>
<DotPattern
width={20}
height={20}
cx={1}
cy={1}
cr={1}
className={cn(
"[mask-image:linear-gradient(to_bottom_right,white,transparent,transparent)] ",
)}
<FlickeringGrid
className="z-1 absolute inset-0 size-full"
squareSize={8}
gridGap={10}
color="green"
maxOpacity={0.25}
flickerChance={0.5}
/>
</section>
)
Expand Down
Loading

0 comments on commit e8c350e

Please sign in to comment.