Skip to content

Commit 14828d9

Browse files
committed
Added space grotesk font improved frontend of home page design and responsiveness
1 parent 96e8579 commit 14828d9

11 files changed

+48
-16
lines changed

src/app/fonts/SpaceGrotesk-Bold.ttf

84.5 KB
Binary file not shown.

src/app/fonts/SpaceGrotesk-Light.ttf

84.6 KB
Binary file not shown.

src/app/fonts/SpaceGrotesk-Medium.ttf

84.6 KB
Binary file not shown.
84.6 KB
Binary file not shown.
84.5 KB
Binary file not shown.

src/app/globals.css

+25
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,28 @@
11
@tailwind base;
22
@tailwind components;
33
@tailwind utilities;
4+
5+
@font-face {
6+
font-family: "Space Grotesk Bold";
7+
src: url("./fonts/SpaceGrotesk-Bold.ttf");
8+
}
9+
10+
@font-face {
11+
font-family: "Space Grotesk Light";
12+
src: url("./fonts/SpaceGrotesk-Light.ttf");
13+
}
14+
15+
@font-face {
16+
font-family: "Space Grotesk Medium";
17+
src: url("./fonts/SpaceGrotesk-Medium.ttf");
18+
}
19+
20+
@font-face {
21+
font-family: "Space Grotesk Regular";
22+
src: url("./fonts/SpaceGrotesk-Regular.ttf");
23+
}
24+
25+
@font-face {
26+
font-family: "Space Grotesk Semibold";
27+
src: url("./fonts/SpaceGrotesk-SemiBold.ttf");
28+
}

src/app/page.tsx

+6-6
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,16 @@ export default function Home() {
1212
<main className="bg-black p-1">
1313
<Navbar />
1414
<Hero />
15-
<div className="flex flex-col gap-4 items-center justify-center mt-32">
16-
<p className="font-bold text-white text-lg md:text-lg lg:text-5xl">
17-
Features
15+
<div className="flex flex-col gap-4 items-center justify-center mt-10 md:mt-32 lg:mt-40">
16+
<p className="font-spacegrotesksemibold text-white text-2xl md:text-3xl lg:text-5xl">
17+
Features of Codehive
1818
</p>
1919
<FeaturesSection />
2020
</div>
2121
<About />
22-
<div className="flex flex-col mt-10">
23-
<p className="flex font-bold items-center justify-center text-white text-lg md:text-lg lg:text-5xl">
24-
Developers of Codehive
22+
<div className="flex flex-col mt-10 md:mt-32 lg:mt-40 items-center justify-center">
23+
<p className="font-spacegrotesksemibold text-center text-white text-2xl md:text-3xl lg:text-5xl">
24+
Meet the Developers of Codehive
2525
</p>
2626
<Aboutus />
2727
</div>

src/components/AboutCard.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ export const CardContainer = ({
4848
<MouseEnterContext.Provider value={[isMouseEntered, setIsMouseEntered]}>
4949
<div
5050
className={cn(
51-
"py-20 flex items-center justify-center",
51+
"lg:py-20 md:py-10 py-2 flex items-center justify-center",
5252
containerClassName
5353
)}
5454
style={{

src/components/Aboutus.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import Link from "next/link";
88

99
const Aboutus = () => {
1010
return (
11-
<div className="flex flex-col lg:flex-row md:flex-row gap-8 items-center justify-center">
11+
<div className="flex flex-col lg:flex-row md:flex-row lg:gap-8 md:gap-8 gap-2 items-center justify-center">
1212
<CardContainer className="inter-var">
1313
<CardBody className="bg-black relative group/card border-white/[0.2] w-auto sm:w-[30rem] h-auto rounded-xl p-6 border">
1414
<CardItem translateZ="50" className="text-xl font-bold text-white">

src/components/FeaturesSection.tsx

+8-8
Original file line numberDiff line numberDiff line change
@@ -13,23 +13,23 @@ const FeaturesSection = () => {
1313
description:
1414
"Codehive offers a real-time collaborative coding playground, enabling seamless teamwork. With support for 5+ programming languages and 20+ color themes, it's designed to cater to diverse developer preferences.",
1515
image: Feature1,
16-
color: "bg-blue-50",
16+
color: "bg-black",
1717
},
1818
{
1919
icon: "💡",
2020
title: "Integrated Communication Tools",
2121
description:
2222
"Stay connected with inbuilt video calling and chat features, making collaboration smooth and efficient. Download your code as styled snippets or files, simplifying project sharing and documentation.",
2323
image: Feature2,
24-
color: "bg-green-50",
24+
color: "bg-black",
2525
},
2626
{
2727
icon: "🌟",
2828
title: "AI-Powered Coding Assistance",
2929
description:
3030
"Genie, our fine-tuned AI chatbot, provides smart code suggestions and instant corrections, empowering developers to write cleaner, more efficient code.",
3131
image: Feature3,
32-
color: "bg-green-50",
32+
color: "bg-black",
3333
},
3434
];
3535

@@ -60,7 +60,7 @@ const FeaturesSection = () => {
6060

6161
return (
6262
<motion.div
63-
className="container lg:w-[80vw] mx-auto px-4 py-16 font-spacegroteskmedium"
63+
className="container lg:w-[80vw] mx-auto px-4 lg:py-8 md:py-8 py-4 font-spacegroteskmedium"
6464
initial="hidden"
6565
whileInView="visible"
6666
viewport={{ once: true, amount: 0.2 }}
@@ -69,7 +69,7 @@ const FeaturesSection = () => {
6969
{features.map((feature, index) => (
7070
<motion.div
7171
key={feature.title}
72-
className={`flex flex-col shadow-slate-400 md:flex-row bg-gradient-to-tl from-blue-600 to-violet-600 items-center mb-16 rounded-2xl overflow-hidden shadow-md ${
72+
className={`flex flex-col md:flex-row items-center mb-16 rounded-2xl overflow-hidden shadow-md ${
7373
feature.color
7474
} ${index % 2 === 1 ? "md:flex-row-reverse" : ""}`}
7575
variants={containerVariants}
@@ -81,15 +81,15 @@ const FeaturesSection = () => {
8181
<div className="text-5xl mb-4 lg:text-start md:text-start text-center">
8282
{feature.icon}
8383
</div>
84-
<h2 className="lg:text-3xl text-2xl lg:text-start md:text-start text-center font-bold mb-4 text-white">
84+
<h2 className="lg:text-3xl font-spacegroteskregular text-blue-600 text-xl lg:text-start md:text-start text-center font-bold mb-4">
8585
{feature.title}
8686
</h2>
87-
<p className="text-white lg:text-lg text-md lg:text-start md:text-start text-center leading-relaxed">
87+
<p className="text-white font-spacegrotesklight lg:text-lg text-md lg:text-start md:text-start text-center leading-relaxed">
8888
{feature.description}
8989
</p>
9090
</motion.div>
9191
<motion.div
92-
className="md:w-1/2 p-8"
92+
className="md:w-1/2 lg:p-8 md:p-8 p-2"
9393
variants={itemVariants(index % 2 === 1)}
9494
>
9595
<Image

tailwind.config.ts

+7
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,13 @@ const config: Config = {
1212
background: "var(--background)",
1313
foreground: "var(--foreground)",
1414
},
15+
fontFamily: {
16+
spacegroteskbold: "Space Grotesk Bold",
17+
spacegrotesklight: "Space Grotesk Light",
18+
spacegroteskmedium: "Space Grotesk Medium",
19+
spacegroteskregular: "Space Grotesk Regular",
20+
spacegrotesksemibold: "Space Grotesk Semibold",
21+
},
1522
},
1623
},
1724
plugins: [],

0 commit comments

Comments
 (0)