Skip to content

Commit 330144a

Browse files
committed
Merge branches 'refactor/landing-page' and 'feat/section-about' of github.com:hammer-code/hammercode-web into refactor/landing-page
2 parents 7bd5835 + ed80009 commit 330144a

File tree

7 files changed

+95
-6
lines changed

7 files changed

+95
-6
lines changed

src/app/[locale]/about/page.tsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
import AboutPage from "@/features/about";
2+
3+
const About = () => {
4+
return <AboutPage />;
5+
};
6+
export default About;

src/components/common/navbar/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ const Navbar = () => {
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>
1717
</Link>
1818

19-
<nav className="flex items-center gap-4">
19+
<nav className="flex items-center gap-7">
2020
{LINK.map(({ href, id }) => (
2121
<NavbarList key={id} href={href} title={t(`navbar.link-${id}`)} />
2222
))}

src/components/layout/wrapper/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import Footer from "@/components/common/footer/Footer";
55

66
const Wrapper = ({ children }: { children: React.ReactNode }) => {
77
return (
8-
<ThemeProvider attribute="class" defaultTheme="system" enableSystem disableTransitionOnChange>
8+
<ThemeProvider attribute="class" defaultTheme="light" enableSystem disableTransitionOnChange>
99
<Navbar />
1010
{children}
1111
<Footer />

src/features/about/constant.tsx

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
import { CodeXml, Instagram, Laptop } from "lucide-react";
2+
3+
export const PROGRAM = [
4+
{
5+
id: 1,
6+
title: "Palu Developer Day",
7+
desc: "Event Tahunan",
8+
icon: <CodeXml />,
9+
},
10+
{
11+
id: 2,
12+
title: "Tech Talk",
13+
desc: "Event Bulanan",
14+
icon: <Laptop />,
15+
},
16+
{
17+
id: 3,
18+
title: "Live Tech",
19+
desc: "Live Instagram",
20+
icon: <Instagram />,
21+
},
22+
];

src/features/about/index.tsx

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
import { Card, CardContent } from "@/components/ui/card";
2+
import Image from "next/image";
3+
import { PROGRAM } from "./constant";
4+
5+
const About = () => {
6+
return (
7+
<div className="grid grid-cols-1 md:grid-cols-4 gap-8">
8+
<div className="md:col-span-3 space-y-4">
9+
<div>
10+
<h1 className="text-3xl font-bold mb-2 text-hmc-base-blue">About Hammercode</h1>
11+
<p className="text-sm text-gray-500">Since 2017 - Now</p>
12+
</div>
13+
<p>
14+
<span className="text-hmc-primary font-semibold underline">Hammercode</span> adalah sebuah komunitas teknologi
15+
yang diinisiasi sebagai wadah berkumpulnya para pembelajar, programmer, web/mobile developer, dan pelaku
16+
industri teknologi lainnya yang berada di kota Palu dan sekitarnya. Kegiatan-kegiatan yang Kami selenggarakan
17+
berorientasi pada knowledge-transfer yang diharapkan dapat mempercepat pemerataan keterampilan di bidang
18+
teknologi informasi serta mencetak talenta teknologi yang siap kerja. Hammercode tempat yang cocok untukmu
19+
yang ingin belajar tentang coding/pemograman dan software engineering.
20+
</p>
21+
<Image
22+
src="https://media.istockphoto.com/id/1410270664/photo/modern-style-office-with-exposed-concrete-floor-and-a-lot-of-plants.jpg?s=612x612&w=0&k=20&c=lBivR3vIWH4dnb6MUNkQtQsIisaUEnzl2f6Ozyr-Jis="
23+
width={200}
24+
height={100}
25+
className="w-full h-30 rounded-md shadow-lg border"
26+
alt="hmc"
27+
/>
28+
<p>
29+
Kebutuhan akan talenta teknologi berkualitas terus bertambah. Namun sayangnya gap skills yang dimiliki oleh
30+
lulusan IT dari universitas dan kebutuhan industri masih cukup besar. Di pulau Jawa dan Sumatera, banyak
31+
universitas universitas top-level serta ekosistem komunitas dan industri yang lebih maju di banding daerah
32+
lain, khususnya Palu, Sulawesi Tengah.
33+
</p>
34+
</div>
35+
36+
<div className="md:col-span-1">
37+
<Card className="p-4 space-y-4">
38+
<h2 className="text-xl font-semibold text-hmc-primary">Our Program</h2>
39+
{PROGRAM.map(({ id, title, desc, icon }) => (
40+
<CardContent key={id} className="p-0 flex items-center gap-2">
41+
<div>
42+
<Card className="w-12 h-12 rounded-full flex items-center justify-center">{icon}</Card>
43+
</div>
44+
<div>
45+
<h3 className="text-md font-semibold">{title}</h3>
46+
<p className="text-sm text-gray-500">{desc}</p>
47+
</div>
48+
</CardContent>
49+
))}
50+
</Card>
51+
</div>
52+
</div>
53+
);
54+
};
55+
export default About;

src/features/events/index.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ const Events = () => {
88
const t = useTranslations("EventsPage");
99
return (
1010
<div>
11-
<div className="w-full bg-slate-100 dark:bg-hmc-primary-foreground rounded-lg">
12-
<div className="container p-4 h-32 flex flex-wrap gap-1 justify-between items-center">
11+
<div className="w-full rounded-lg">
12+
<div className="h-16 flex flex-wrap gap-1 justify-between items-center">
1313
<div className="">
14-
<h1 className="text-hmc-primary text-xl sm:text-3xl font-semibold">{t("title")}</h1>
15-
<p className="text-hmc-primary text-xs sm:text-base">{t("description")}</p>
14+
<h1 className="text-hmc-base-blue text-xl sm:text-3xl font-semibold">{t("title")}</h1>
15+
<p className="text-gray-500 text-xs sm:text-base">{t("description")}</p>
1616
</div>
1717
<div className="w-full sm:w-auto">
1818
<Select>

tailwind.config.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,12 @@ const config = {
2121
},
2222
extend: {
2323
colors: {
24+
"hmc-base": {
25+
blue: "#0AB6FF",
26+
purple: "#5061FC",
27+
darkblue: "#1F4C8F",
28+
lightblue: "#00BFE9",
29+
},
2430
"hmc-primary": {
2531
DEFAULT: "var(--hmc-primary)",
2632
foreground: "var(--hmc-primary-foreground)",

0 commit comments

Comments
 (0)