Skip to content

Commit 81e8bca

Browse files
committed
Update
1 parent cd41007 commit 81e8bca

File tree

7 files changed

+52
-39
lines changed

7 files changed

+52
-39
lines changed

next.config.mjs

+8-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,11 @@
11
/** @type {import('next').NextConfig} */
2-
const nextConfig = {};
2+
const nextConfig = {
3+
output: "export",
4+
reactStrictMode: true,
5+
images: {
6+
unoptimized: true, // Disable default image optimization
7+
},
8+
// basePath: "/afgprogrammer.github.io",
9+
};
310

411
export default nextConfig;

package.json

+3-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
"dev": "next dev",
77
"build": "next build",
88
"start": "next start",
9-
"lint": "next lint"
9+
"lint": "next lint",
10+
"deploy": "next build && gh-pages -d out"
1011
},
1112
"dependencies": {
1213
"@mantine/code-highlight": "^7.11.1",
@@ -30,6 +31,7 @@
3031
"@types/react-dom": "^18",
3132
"eslint": "^8",
3233
"eslint-config-next": "14.2.4",
34+
"gh-pages": "^6.2.0",
3335
"postcss": "^8.4.39",
3436
"postcss-preset-mantine": "^1.15.0",
3537
"postcss-simple-vars": "^7.0.1",

src/_components/header/HeaderMenu.tsx

+23-23
Original file line numberDiff line numberDiff line change
@@ -44,30 +44,30 @@ export function HeaderMenu() {
4444
);
4545

4646
const items = links.map((link) => {
47-
const menuItems = link.links?.map((item) => (
48-
<Menu.Item key={item.link}>{item.label}</Menu.Item>
49-
));
47+
// const menuItems = link.links?.map((item) => (
48+
// <Menu.Item key={item.link}>{item.label}</Menu.Item>
49+
// ));
5050

51-
if (menuItems) {
52-
return (
53-
<Menu
54-
key={link.label}
55-
trigger="hover"
56-
transitionProps={{ exitDuration: 0 }}
57-
withinPortal
58-
>
59-
<Menu.Target>
60-
<Link href={link.link} className={classes.link}>
61-
<Center>
62-
<span className={classes.linkLabel}>{link.label}</span>
63-
<IconChevronDown size="0.9rem" stroke={1.5} />
64-
</Center>
65-
</Link>
66-
</Menu.Target>
67-
<Menu.Dropdown>{menuItems}</Menu.Dropdown>
68-
</Menu>
69-
);
70-
}
51+
// if (menuItems) {
52+
// return (
53+
// <Menu
54+
// key={link.label}
55+
// trigger="hover"
56+
// transitionProps={{ exitDuration: 0 }}
57+
// withinPortal
58+
// >
59+
// <Menu.Target>
60+
// <Link href={link.link} className={classes.link}>
61+
// <Center>
62+
// <span className={classes.linkLabel}>{link.label}</span>
63+
// <IconChevronDown size="0.9rem" stroke={1.5} />
64+
// </Center>
65+
// </Link>
66+
// </Menu.Target>
67+
// <Menu.Dropdown>{menuItems}</Menu.Dropdown>
68+
// </Menu>
69+
// );
70+
// }
7171

7272
return (
7373
<Link key={link.label} href={link.link} className={classes.link}>

src/_components/works/WorkSection.tsx

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { Box, Button, Divider, Group, Space, Stack, Text } from "@mantine/core";
22
import { IconArrowRight, IconDownload } from "@tabler/icons-react";
3+
import Image from "next/image";
34
import Link from "next/link";
45

56
export default function WorkSection() {
@@ -31,7 +32,7 @@ export default function WorkSection() {
3132
bg={"gray.2"}
3233
style={{ borderRadius: 10, overflow: "hidden" }}
3334
>
34-
<img
35+
<Image
3536
alt="fff"
3637
src={"/banner/one.png"}
3738
style={{ width: "100%", objectFit: "cover", height: 200 }}

src/app/about-me/page.tsx

+11-7
Original file line numberDiff line numberDiff line change
@@ -44,13 +44,17 @@ export default function AboutMe() {
4444
<Space h={100} />
4545
<Grid justify="space-between" align="center">
4646
<GridCol span={12}>
47-
<Image src={"/mohammad-rahmani.jpg"} radius={50} />
48-
{/* <Image src={"/me.png"} h={600} radius={50} /> */}
47+
<Image
48+
width={"100%"}
49+
src="/mohammad-rahmani.jpg"
50+
alt="Mohammad Rahmani - afgprogrammer"
51+
radius={50}
52+
/>
4953
</GridCol>
5054
<GridCol span={{ lg: 8 }} mx="auto" mt={50}>
5155
<Text fz={{ sm: 24, xs: 16 }} c="light-dark(black, white)">
52-
I'm <strong>Mohammad Rahmani</strong>, a seasoned programmer with
53-
over a decade of experience in the dynamic world of{" "}
56+
I&apos;m <strong>Mohammad Rahmani</strong>, a seasoned programmer
57+
with over a decade of experience in the dynamic world of{" "}
5458
<strong>software development</strong>. My journey in programming
5559
has been both challenging and rewarding, allowing me to hone my
5660
skills across various programming languages and technologies.
@@ -68,10 +72,10 @@ export default function AboutMe() {
6872
<Text fz={{ sm: 24, xs: 16 }} mt={32} c="light-dark(black, white)">
6973
With a commitment to excellence and a passion for innovation, I am
7074
dedicated to turning <strong>ideas</strong> into reality through{" "}
71-
<strong>code</strong>. Whether you're looking to build a new{" "}
75+
<strong>code</strong>. Whether you&apos;re looking to build a new{" "}
7276
<strong>application</strong> from scratch or enhance an existing
7377
one, I bring a wealth of knowledge and a proven track record to
74-
ensure your projects <strong>success</strong>.
78+
ensure your project&apos;s <strong>success</strong>.
7579
</Text>
7680
<Text fz={{ sm: 20, xs: 16 }} mt={32} c="light-dark(black, white)">
7781
Thank you for visiting my page, and I look forward to the
@@ -88,7 +92,7 @@ export default function AboutMe() {
8892
href="mailto:[email protected]"
8993
rightSection={<IconArrowUpRight size={22} />}
9094
>
91-
Let's Talk
95+
Let&apos;s Talk
9296
</Button>
9397
</GridCol>
9498
</Grid>

src/app/flutter/page.tsx

+3-3
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ export default function AboutMe() {
4040
useEffect(() => {
4141
setExamples(originalData.slice(visibleCount, perPage));
4242
setVisibleCount(perPage);
43-
}, []);
43+
}, [perPage, visibleCount]);
4444

4545
const handleSearch = useDebouncedCallback(async (query: string) => {
4646
if (query.length) {
@@ -108,9 +108,9 @@ export default function AboutMe() {
108108
</Box>
109109
<Space h={40} />
110110
<Grid>
111-
{examples.map((day) => {
111+
{examples.map((day, i) => {
112112
return (
113-
<GridCol span={{ lg: 4, sm: 6, xs: 12 }}>
113+
<GridCol key={`id-${i}`} span={{ lg: 4, sm: 6, xs: 12 }}>
114114
<Card radius="md" withBorder style={{ overflow: "hidden" }}>
115115
<CardSection>
116116
<Box>

src/app/page.tsx

+2-3
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ export default function Home() {
6363
fz={32}
6464
c={"light-dark(var(--mantine-color-dark-9), white)"}
6565
>
66-
Hey 👋🏼 I'm{" "}
66+
Hey 👋🏼 I&apos;m{" "}
6767
<span
6868
style={{
6969
color:
@@ -159,7 +159,7 @@ export default function Home() {
159159
<GridCol span={{ lg: 4 }}>
160160
<Space h={16} />
161161
<Text fz={18}>
162-
I'm a Full-Stack Software Developer living in Kabul 🇦🇫, and I
162+
I&apos;m a Full-Stack Software Developer living in Kabul 🇦🇫, and I
163163
focus on making digital experiences that are easy to use,
164164
enjoyable, and get the job done. I love tackling challenging
165165
problems and creating solutions that truly matter to people.
@@ -180,7 +180,6 @@ export default function Home() {
180180
</GridCol>
181181
</Grid>
182182
<Space h={150} />
183-
{/* <WorkSection /> */}
184183
</Container>
185184
<SiteFooter />
186185
</>

0 commit comments

Comments
 (0)