Skip to content

Commit 419952f

Browse files
committed
add content for home and about pages
1 parent 234c8e3 commit 419952f

File tree

8 files changed

+43
-6
lines changed

8 files changed

+43
-6
lines changed

docs/working-notes/todo2.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,10 @@ https://github.com/markhorn-dev/astro-nano
192192
// no images, astro db
193193
https://github.com/flavienbonvin/flavien-bonvin
194194

195+
// excellent css, wide column
196+
https://lea.verou.me/
197+
https://lea.verou.me/blog/2023/going-lean/#public-or-private-repo%3F
198+
195199
-----------
196200
za local state mora react ili solid
197201
for state between pages nanostore with localStorage

docs/working-notes/todo3.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -453,6 +453,7 @@ tree diagram for layouts hierarchy
453453
analytics
454454
shaped text around images, home and about pages
455455
better roadmap
456+
add youtube, twitter in footer
456457
----
457458
// 4.10
458459
in BaseHead.astro

src/components/Share.astro

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@ export interface Props extends SocialShareProps {
2121
const { class: className, ...shareProps } = Astro.props;
2222
2323
const { title, description } = DEFAULT_METADATA;
24-
const { SITE_URL } = CONFIG;
24+
const { AUTHOR_TWITTER } = CONFIG;
2525
2626
// via is only for twitter
27-
const defaultProps = { description, title, via: SITE_URL };
27+
const defaultProps = { description, title, via: AUTHOR_TWITTER };
2828
2929
// dont change order because of colors
3030
const buttons = [

src/config.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ const configData: ConfigType = {
3939
AUTHOR_EMAIL: '[email protected]',
4040
AUTHOR_GITHUB: 'https://github.com/nemanjam',
4141
AUTHOR_LINKEDIN: 'https://www.linkedin.com/in/nemanja-mitic',
42+
AUTHOR_TWITTER: 'https://x.com/nemanja_codes',
43+
AUTHOR_YOUTUBE: 'https://www.youtube.com/@nemanja_codes',
4244
REPO_URL: 'https://github.com/nemanjam/nemanjam.github.io',
4345
};
4446

src/constants/image.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,14 @@ export const IMAGE_SIZES = {
3737
width: TW_SCREENS.MD,
3838
height: TW_SCREENS.HEIGHTS.MD,
3939
},
40+
MDX_XXS: { width: TW_SCREENS.XXS },
4041
MDX_XS: { width: TW_SCREENS.XS },
4142
MDX_SM: { width: TW_SCREENS.SM },
4243
MDX_MD: { width: TW_SCREENS.MD },
4344
MDX_LG: { width: TW_SCREENS.LG },
4445
MDX_XL: { width: TW_SCREENS.XL },
4546
/** width and height required for remote images */
47+
MDX_XXS_16_9: { width: TW_SCREENS.XXS, height: TW_SCREENS.HEIGHTS.XXS },
4648
MDX_XS_16_9: { width: TW_SCREENS.XS, height: TW_SCREENS.HEIGHTS.XS },
4749
MDX_SM_16_9: { width: TW_SCREENS.SM, height: TW_SCREENS.HEIGHTS.SM },
4850
MDX_MD_16_9: { width: TW_SCREENS.MD, height: TW_SCREENS.HEIGHTS.MD },

src/pages/about.mdx

Lines changed: 27 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,38 @@ description: 'Lorem ipsum dolor sit amet'
66

77
import { Image } from 'astro:assets';
88

9+
import { CONFIG } from '../config';
910
import { IMAGE_SIZES } from '../constants/image';
11+
import Link from '../components/Link.astro';
1012
import Electronics1Image from '../assets/images/all-images/electronics1.jpg';
1113

14+
15+
export const { SITE_URL, AUTHOR_GITHUB, AUTHOR_LINKEDIN, AUTHOR_TWITTER, AUTHOR_YOUTUBE, REPO_URL } = CONFIG;
16+
1217
# About
1318

14-
<Image {...IMAGE_SIZES.FIXED.MDX_SM} src={Electronics1Image} alt="Veronica transmitter board" />
19+
<Image {...IMAGE_SIZES.FIXED.MDX_SM} src={Electronics1Image} alt="Veronica transmitter board" />
20+
21+
My name is Nemanja, I am a full-stack developer with experience in React.js, Next.js, and Node.js. In the past, I have worked with C# and ASP.NET, and lately, I have developed an interest in Python and FastAPI. I also like to experiment with DevOps and homelab self-hosting.
22+
23+
My hobbies are fishing, lure building, bicycling, playing guitar, composing in FL Studio, and DIY electronics.
1524

16-
Aliquip quis commodo proident et dolor irure irure tempor voluptate. Exercitation pariatur ipsum nulla nulla laboris velit cupidatat amet adipisicing consectetur quis quis irure. Quis ullamco sint cupidatat reprehenderit deserunt. Et sunt anim ex ipsum sit quis dolor excepteur mollit aute commodo veniam velit.
25+
If you want to contact me about coding, or if you need a companion for fishing or jamming, use the links below.
1726

27+
<p class="my-2">
28+
<label class="font-bold">GitHub:</label>
29+
<Link href={AUTHOR_GITHUB} target="_blank">{AUTHOR_GITHUB}</Link>
30+
</p>
31+
<p class="my-2">
32+
<label class="font-bold">LinkedIn:</label>
33+
<Link href={AUTHOR_LINKEDIN} target="_blank">{AUTHOR_LINKEDIN}</Link>
34+
</p>
35+
<p class="my-2">
36+
<label class="font-bold">Twitter:</label>
37+
<Link href={AUTHOR_TWITTER} target="_blank">{AUTHOR_TWITTER}</Link>
38+
</p>
39+
<p class="my-2">
40+
<label class="font-bold">YouTube:</label>
41+
<Link href={AUTHOR_YOUTUBE} target="_blank">{AUTHOR_YOUTUBE}</Link>
42+
</p>
1843

src/pages/index.mdx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,9 @@ import { Image } from 'astro:assets';
99
import { IMAGE_SIZES } from '../constants/image';
1010
import River10Image from '../assets/images/all-images/river10.jpg';
1111

12-
# Hello visitor
12+
# Hello and welcome
1313

1414
<Image {...IMAGE_SIZES.FIXED.MDX_MD} src={River10Image} alt="Fishing spot" />
1515

16-
Irure non reprehenderit aute velit proident ad reprehenderit. Laborum quis ea tempor ullamco aute qui ad et qui ipsum est mollit eu. Aliquip non officia amet reprehenderit irure. Et voluptate ea veniam cillum dolor labore commodo culpa. Culpa eiusmod mollit sunt nisi dolor ullamco velit in aliquip et ea duis eu.
16+
Welcome to my coding blog. Here, I will share my coding experiments and thoughts on React.js, Next.js, Node.js, Astro, Python, DevOps, and more. Feel free to read, explore, and comment. If you are feeling overwhelmed by coding, you can take a break and enjoy some random landscape photos from the articles. Maybe in the future, we will create a separate gallery for them. We will see.
17+

src/schemas/config.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,7 @@ export const configSchema = z.object({
2020
AUTHOR_EMAIL: z.string().email(),
2121
AUTHOR_GITHUB: z.string().url(),
2222
AUTHOR_LINKEDIN: z.string().url(),
23+
AUTHOR_TWITTER: z.string().url(),
24+
AUTHOR_YOUTUBE: z.string().url(),
2325
REPO_URL: z.string().url(),
2426
});

0 commit comments

Comments
 (0)