Skip to content

Commit 436a26e

Browse files
committed
add about page and change home and trend page
1 parent e94bf31 commit 436a26e

File tree

5 files changed

+98
-8
lines changed

5 files changed

+98
-8
lines changed

src/data/about.tsx

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
import { TAboutData } from "../types/about";
2+
3+
export const aboutData: TAboutData = {
4+
title: "About Blogify",
5+
description:
6+
"Blogify is a modern and responsive blogging application built with React, TypeScript, Tailwind CSS, and Firebase. It provides users with the ability to read blogs, create accounts, and publish their own blogs in a seamless and user-friendly interface.",
7+
features: {
8+
title: "Key Features",
9+
featureItems: [
10+
"Responsive design for a seamless experience on mobile, tablet, and desktop devices.",
11+
"User authentication and account creation via Firebase.",
12+
"Ability to create, edit, and publish blogs in real-time.",
13+
"Modern UI/UX with Tailwind CSS.",
14+
"Built with TypeScript for better maintainability and scalability.",
15+
],
16+
},
17+
developerInfo: {
18+
title: "About the Developer",
19+
subTitle: "Hi! I'm",
20+
developerName: "Ali Nikseresht",
21+
developerInfoDescription:
22+
"a passionate frontend developer with expertise in modern web technologies.",
23+
},
24+
contact: {
25+
title: "Connect with me on:",
26+
links: [
27+
{
28+
title: "GitHub",
29+
link: "https://github.com/AliNikseresht",
30+
},
31+
],
32+
},
33+
};

src/pages/About/AboutPage.tsx

Lines changed: 40 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,44 @@
1+
import { aboutData } from "../../data/about";
2+
import { FiGithub } from "react-icons/fi";
13

24
const AboutPage = () => {
35
return (
4-
<div>Comming soon</div>
5-
)
6-
}
6+
<div className="flex flex-col p-[0em] md:p-[3em] gap-[6em] min-h-screen">
7+
<div className="flex flex-col items-center md:w-32">
8+
<div className="w-14 mb-0.5 h-0.5 bc-green"></div>
9+
<h1 className="text-lg md:text-xl">{aboutData.title}</h1>
10+
</div>
711

8-
export default AboutPage
12+
<div className="flex flex-col gap-3">
13+
<p className="text-lg leading-relaxed">{aboutData.description}</p>
14+
<h2 className="text-2xl font-semibold c-green">
15+
{aboutData.features.title}
16+
</h2>
17+
<ul className="list-disc pl-6 space-y-2">
18+
{aboutData.features.featureItems.map((feature, index) => (
19+
<li key={index}>{feature}</li>
20+
))}
21+
</ul>
22+
</div>
23+
24+
<div className="flex justify-center items-center gap-1.5 w-full text-xl c-green">
25+
<h1 className="font-bold">
26+
{aboutData.developerInfo.developerName}
27+
</h1>
28+
{aboutData.contact.links.map((item) => (
29+
<a
30+
href={item.link}
31+
className="flex items-center font-bold gap-2"
32+
>
33+
{item.title}
34+
</a>
35+
))}
36+
<span>
37+
<FiGithub />
38+
</span>
39+
</div>
40+
</div>
41+
);
42+
};
43+
44+
export default AboutPage;

src/pages/Home/Home.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ const Home = () => {
3333
return (
3434
<div className="flex flex-col p-[0em] md:p-[3em] gap-[2em] min-h-screen">
3535
<div className="flex flex-col items-center md:w-10">
36-
<div className="w-4 h-0.5 bc-green"></div>
37-
<h1 className="text-lg md:text-base">{homeData.title}</h1>
36+
<div className="w-6 h-0.5 bc-green"></div>
37+
<h1 className="text-lg md:text-xl">{homeData.title}</h1>
3838
</div>
3939
{blogs.length === 0 ? (
4040
<EmptyState />

src/pages/Trend/_components/TrendingBlogs.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ const TrendingBlogs: React.FC<TrendingBlogsProps> = ({
2121

2222
return (
2323
<div className="flex flex-col p-[0em] md:p-[3em] gap-[2em] min-h-screen">
24-
<div className="flex flex-col items-center md:w-[7rem]">
24+
<div className="flex flex-col items-center md:w-[8.5rem]">
2525
<div className="w-20 mb-0.5 h-0.5 bc-green"></div>
26-
<h1 className="text-lg md:text-base">{trendData.title}</h1>
26+
<h1 className="text-lg md:text-xl">{trendData.title}</h1>
2727
</div>
2828
{blogs.length === 0 ? (
2929
<EmptyState />

src/types/about.ts

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
export type TAboutData = {
2+
title: string;
3+
description: string;
4+
features: {
5+
title: string;
6+
featureItems: string[];
7+
};
8+
developerInfo: {
9+
title: string;
10+
subTitle: string;
11+
developerName: string;
12+
developerInfoDescription: string;
13+
};
14+
contact: {
15+
title: string;
16+
links: {
17+
title: string;
18+
link: string;
19+
}[];
20+
};
21+
};

0 commit comments

Comments
 (0)