Skip to content

Commit 3a531e7

Browse files
authored
fix: responsive footer
fix: responsive footer
2 parents 275a097 + c63e5bc commit 3a531e7

File tree

12 files changed

+24
-24
lines changed

12 files changed

+24
-24
lines changed

src/components/common/footer/Footer.tsx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@ const Footer = () => {
1111
<>
1212
<div className="space-y-8 border-t border-dashed">
1313
<div className="max-w-7xl mx-auto px-5 py-10">
14-
<div className="flex justify-between items-start gap-10">
14+
<div className="flex md:flex-row flex-col justify-between md:items-start items-center gap-10">
1515
<Image src="/assets/icons/ic_hmc-full.svg" alt="hammercode-logo" width={100} height={100} />
1616

1717
{/* Resources */}
18-
<div className="space-y-3">
18+
<div className="flex flex-col md:items-start items-center gap-3">
1919
<h3 className="text-lg text-hmc-primary font-semibold">{resource.title}</h3>
20-
<div className="flex flex-col gap-1">
20+
<div className="flex flex-col md:items-start items-center gap-1">
2121
{resource.data.map((data) => (
2222
<Link
2323
key={data.navigate_url}
@@ -31,9 +31,9 @@ const Footer = () => {
3131
</div>
3232

3333
{/* Social Media */}
34-
<div className="space-y-3">
34+
<div className="flex flex-col md:items-start items-center gap-3">
3535
<h3 className="text-lg text-hmc-primary font-semibold">{social_media.title}</h3>
36-
<div className="flex flex-col gap-1">
36+
<div className="flex flex-col md:items-start items-center gap-1">
3737
{social_media.data.map((data) => (
3838
<Link
3939
key={data.navigate_url}
@@ -47,9 +47,9 @@ const Footer = () => {
4747
</div>
4848

4949
{/* Contact */}
50-
<div className="space-y-3">
50+
<div className="flex flex-col md:items-start items-center gap-3">
5151
<h3 className="text-lg text-hmc-primary font-semibold">{contact.title}</h3>
52-
<div className="flex flex-col gap-1">
52+
<div className="flex flex-col md:items-start items-center gap-1">
5353
{contact.data.map((data) => (
5454
<Button
5555
key={data.navigate_url}

src/components/common/footer/constants.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ export const dataFooter: FooterType = {
3939
title: "Contact",
4040
data: [
4141
{
42-
value: "6281355893352",
42+
value: "081355893352",
4343
navigate_url: "https://wa.me/6281355893352",
4444
},
4545
{

src/components/common/navbar/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ const Navbar = () => {
1010
const t = useTranslations("Layout");
1111
return (
1212
<header className="border-b fixed w-full top-0 bg-white dark:bg-slate-950 z-50">
13-
<div className="max-w-7xl mx-auto p-5">
13+
<div className="container py-5">
1414
<div className="flex items-center justify-between gap-4">
1515
<Link href="/">
1616
<div className="w-10 h-8 bg-[url('/assets/icons/ic_hmc-light.svg')] dark:bg-[url('/assets/icons/ic_hmc-dark.svg')] bg-cover bg-center"></div>

src/features/home/components/AboutSection.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import Image from "next/image";
55

66
const AboutSection = () => {
77
return (
8-
<div className="max-w-7xl mx-auto px-5 lg:py-40 py-10">
8+
<div className="container lg:py-40 py-10">
99
<div className="flex lg:flex-row flex-col-reverse lg:gap-16 gap-10">
1010
<div className="basis-1/2 relative">
1111
<Image

src/features/home/components/ContactSection.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { Link } from "@/lib/navigation";
44

55
const ContactSection = () => {
66
return (
7-
<div className="max-w-7xl mx-auto px-5 py-10">
7+
<div className="container py-10">
88
<div className="flex flex-col items-center md:gap-8 gap-6">
99
<div className="flex flex-col items-center gap-2">
1010
<h2 className="text-tertiary md:text-3xl text-2xl text-center font-bold">

src/features/home/components/CourseSection.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { Card, CardContent, CardHeader } from "@/components/ui/card";
66
const ClassSection = () => {
77
return (
88
<div className="bg-sky-50 dark:bg-slate-900">
9-
<div className="max-w-7xl mx-auto px-5 md:py-14 py-10 my-10 space-y-6">
9+
<div className="container md:py-14 py-10 my-10 space-y-6">
1010
<div className="flex flex-col items-center gap-2">
1111
<h2 className="text-tertiary md:text-3xl text-2xl font-bold">Kelas Hammercode 🔥</h2>
1212
<p className="max-w-3xl md:text-base text-center text-sm text-slate-500 dark:text-slate-400 md:leading-7">

src/features/home/components/HeroSection.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ import { HandCoins } from "lucide-react";
88
const HeroSection = () => {
99
const t = useTranslations("HomePage");
1010
return (
11-
<div className="max-w-7xl mx-auto px-5 py-32 flex lg:flex-row flex-col items-center gap-6 justify-between">
12-
<div className="basis-1/2">
11+
<div className="container py-32 flex lg:flex-row flex-col items-center gap-6 justify-between">
12+
<div className="basis-[50%]">
1313
<div className="space-y-4">
14-
<div className="space-y-1">
15-
<h1 className="text-hmc-primary md:text-5xl text-3xl font-bold md:leading-[60px]">
14+
<div className="space-y-1.5">
15+
<h1 className="text-hmc-primary md:text-[44px] text-3xl font-bold md:leading-[60px]">
1616
{t("section-hero.title")}
1717
</h1>
1818
<p className="text-slate-600 dark:text-slate-400">{t("section-hero.description")}</p>
@@ -46,7 +46,7 @@ const HeroSection = () => {
4646
</div>
4747
</div>
4848

49-
<div className="basis-1/2">
49+
<div className="basis-[50%]">
5050
<Image src="/assets/images/illustrations/hero-section.webp" alt="hero-section" width={1500} height={1500} />
5151
</div>
5252
</div>

src/features/home/components/PartnerSection.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const PartnerSection = () => {
77
const t = useTranslations("HomePage");
88
return (
99
<div className="bg-sky-50 dark:bg-slate-900">
10-
<div className="max-w-7xl mx-auto px-5 md:py-14 py-10 my-10 space-y-8">
10+
<div className="container md:py-14 py-10 my-10 space-y-8">
1111
<div className="flex flex-col items-center gap-2">
1212
<h2 className="text-tertiary md:text-3xl text-2xl font-bold">{t("section-partner.title")}</h2>
1313
<p className="md:text-base text-sm text-slate-500 dark:text-slate-400 md:text-center">

src/features/home/components/ProgramSection.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { programData } from "../constants";
55

66
const ProgramSection = () => {
77
return (
8-
<div className="max-w-7xl mx-auto px-5 py-10 space-y-8">
8+
<div className="container py-10 space-y-8">
99
<div className="flex flex-col gap-4">
1010
<h2 className="text-tertiary md:text-3xl text-2xl font-bold">Program Hammercode ✨</h2>
1111
<p className="max-w-3xl md:text-base text-sm text-slate-500 dark:text-slate-400 md:leading-7">

src/features/home/components/TestimonialSection.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { Carousel, CarouselContent, CarouselItem } from "@/components/ui/carouse
66

77
const TestimonialSection = () => {
88
return (
9-
<div className="max-w-7xl mx-auto px-5 py-10 space-y-8">
9+
<div className="container py-10 space-y-8">
1010
<div className="flex flex-col space-y-2">
1111
<h2 className="text-tertiary md:text-3xl text-2xl font-bold">Manfaat 🌟</h2>
1212
<p className="md:text-base text-sm text-slate-500 dark:text-slate-400">

0 commit comments

Comments
 (0)