Skip to content

Commit 1346b9a

Browse files
authored
Add SEO changes & minor styling improvements (#29)
* Update header styling * Add robots.ts file * Add SEO-related files and changes * Update README.md * Add LICENSE file * Bump app to version v0.7.7
1 parent 2a6c699 commit 1346b9a

File tree

9 files changed

+88
-11
lines changed

9 files changed

+88
-11
lines changed

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2025 Alexandru Moraru
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Next.js Personal Website Theme
22

3-
This is a custom personal website theme built using [Next.js](https://nextjs.org), bootstrapped with
3+
This is a custom personal website theme built using [Next.js](https://nextjs.org), bootstrapped with
44
[`create-next-app`](https://nextjs.org/docs/app/api-reference/cli/create-next-app). It’s designed as a minimal,
55
performance-focused starting point for showcasing your **work**, **writing**, and **projects**.
66

@@ -75,7 +75,7 @@ Planned improvements and current/future features:
7575
- [ ] Project pages
7676
- [ ] Work Items
7777
- [ ] Blog posts
78-
- [ ] 🔍 Improve content structure, accessibility, and SEO
78+
- [X] 🔍 Improve content structure, accessibility, and SEO
7979
- [ ] 🧪 Add tests and linting support for better maintainability
8080
- [ ] ❔ Add guides (i.e., READMEs) for creating blog/project/work pages
8181
- [X] 🔢 Add sorting/filtering functionality for:
@@ -85,6 +85,9 @@ Planned improvements and current/future features:
8585
- [ ] 🖼 Add theme customization options:
8686
- [ ] Color palette
8787
- [ ] Layout options
88+
- [ ] 📄 Add recommended similar blog posts items to the bottom of each blog post
89+
- [ ] 📄 Add blog post categories pages
90+
- [ ] 📄 Add pagination to blog posts
8891

8992
---
9093

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "nextjs-portofolio-website",
3-
"version": "0.7.6",
3+
"version": "0.7.7",
44
"private": true,
55
"scripts": {
66
"dev": "next dev",

src/app/layout.tsx

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,6 @@ const gabarito = Gabarito({
1313
export const metadata: Metadata = {
1414
title: 'Next.js Developer Portfolio Template',
1515
description: 'Developer-focused portfolio starter built with Next.js, TypeScript, TailwindCSS, and optimized for SEO.',
16-
robots: {
17-
index: false,
18-
follow: false
19-
},
2016
icons: {
2117
icon: '/icons/favicon.ico',
2218
shortcut: '/icons/favicon.ico',

src/app/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export default function Home() {
3030
whileInView={{opacity: 1, y: 0}}
3131
transition={{duration: 1}}
3232
viewport={{once: true}}
33-
className="text-center mt-10"
33+
className="text-center mt-2"
3434
>
3535
{/* Introductory Text */}
3636
<h1 className="text-3xl sm:text-4xl font-bold mb-4 text-gray-900 dark:text-gray-100">

src/app/robots.ts

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
import type {MetadataRoute} from 'next'
2+
3+
/**
4+
* Generates a robots.txt file for the website.
5+
*/
6+
export default function robots(): MetadataRoute.Robots {
7+
return {
8+
rules: [
9+
{
10+
userAgent: 'Googlebot',
11+
allow: ['/']
12+
},
13+
{
14+
userAgent: ['Applebot', 'Bingbot'],
15+
disallow: ['/'],
16+
},
17+
{
18+
userAgent: '*',
19+
disallow: '/',
20+
},
21+
],
22+
sitemap: 'https://nextjs-portofolio-website.vercel.app/sitemap.xml',
23+
}
24+
}

src/app/sitemap.ts

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
import type {MetadataRoute} from 'next';
2+
3+
/**
4+
* Generates a sitemap.xml file for the website.
5+
*/
6+
export default function sitemap(): MetadataRoute.Sitemap {
7+
return [
8+
{
9+
url: 'https://nextjs-portofolio-website.vercel.app',
10+
lastModified: new Date(),
11+
changeFrequency: 'weekly',
12+
priority: 1
13+
},
14+
{
15+
url: 'https://nextjs-portofolio-website.vercel.app/work',
16+
lastModified: new Date(),
17+
changeFrequency: 'yearly',
18+
priority: 0.8
19+
},
20+
{
21+
url: 'https://nextjs-portofolio-website.vercel.app/projects',
22+
lastModified: new Date(),
23+
changeFrequency: 'monthly',
24+
priority: 0.8
25+
},
26+
{
27+
url: 'https://nextjs-portofolio-website.vercel.app/blog',
28+
lastModified: new Date(),
29+
changeFrequency: 'weekly',
30+
priority: 0.8
31+
},
32+
]
33+
}

src/components/Header.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export default function Header() {
1313
return (
1414
<header
1515
id="headerPortfolio"
16-
className="sticky top-0 z-50 w-full bg-zinc-50 text-black dark:bg-zinc-900 dark:text-white transition-colors
16+
className="sticky top-0 z-50 w-full bg-zinc-50 text-black dark:bg-black dark:text-white transition-colors
1717
border-b dark:border-gray-800 border-gray-300 backdrop-blur-sm shadow-md"
1818
>
1919
<div

0 commit comments

Comments
 (0)