Skip to content

Commit 159756d

Browse files
committed
Adds sitemap.xml, tooltips for buttons
1 parent 87fd802 commit 159756d

5 files changed

Lines changed: 36 additions & 7 deletions

File tree

public/robots.txt

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# *
2+
User-agent: *
3+
Allow: /
4+
5+
# Host
6+
Host: https://codejovz.vercel.app/
7+
8+
# Sitemaps
9+
Sitemap: https://codejovz.vercel.app/sitemap.xml

public/sitemap-0.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:news="http://www.google.com/schemas/sitemap-news/0.9" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:mobile="http://www.google.com/schemas/sitemap-mobile/1.0" xmlns:image="http://www.google.com/schemas/sitemap-image/1.1" xmlns:video="http://www.google.com/schemas/sitemap-video/1.1">
3+
<url><loc>https://codejovz.vercel.app/</loc><lastmod>2025-12-28T13:17:51.730Z</lastmod><changefreq>daily</changefreq><priority>1.0</priority></url>
4+
</urlset>

public/sitemap.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
3+
<sitemap><loc>https://codejovz.vercel.app/sitemap-0.xml</loc></sitemap>
4+
</sitemapindex>

src/App.css

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -367,13 +367,14 @@ line{
367367
}
368368

369369
#menu_icon{
370-
position: absolute;
371-
top: 20px;
372-
right: 30px;
373-
z-index: 999;
374-
width: 40px;
375-
height: 40px;
376-
transition: all 1s;
370+
cursor: pointer;
371+
position: absolute;
372+
top: 20px;
373+
right: 30px;
374+
z-index: 999;
375+
width: 40px;
376+
height: 40px;
377+
transition: all 1s;
377378
}
378379

379380
#menu_icon:hover{

src/Menu.tsx

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,15 @@ export default function Menu() {
66
let diagonal: boolean = false;
77
const menuIcon = document.getElementById('menu_icon') as HTMLElement | null;
88
const menu = document.getElementById('menu') as HTMLElement | null;
9+
let menuTitle: SVGTitleElement | null = null;
910
const body = document.body;
1011

1112
if (menuIcon) {
13+
// For SVG, use <title> element for tooltip
14+
menuTitle = document.createElementNS('http://www.w3.org/2000/svg', 'title');
15+
menuTitle.textContent = "Open Menu";
16+
menuIcon.appendChild(menuTitle);
17+
1218
menuIcon.onclick = () => {
1319
const line1 = document.getElementById('line1') as HTMLElement | null;
1420
const line2 = document.getElementById('line2') as HTMLElement | null;
@@ -23,6 +29,7 @@ export default function Menu() {
2329
menu.style.display = 'block';
2430
menu.style.transform = 'translateX(0)';
2531
body.style.overflow = 'hidden';
32+
if (menuTitle) menuTitle.textContent = "Close Menu";
2633
diagonal = true;
2734
} else {
2835
line1.style.transform = ' translateX(0px) translateY(0px) rotate(0deg)';
@@ -31,6 +38,7 @@ export default function Menu() {
3138
menu.style.transform = 'translateX(0px)';
3239
menu.style.display = 'none';
3340
body.style.overflow = 'auto';
41+
if (menuTitle) menuTitle.textContent = "Open Menu";
3442
diagonal = false;
3543
}
3644
};
@@ -55,6 +63,7 @@ export default function Menu() {
5563
let incompleta = true;
5664

5765
if (boton1 && naranja && CLContent) {
66+
boton1.title = "Open Cover Letter";
5867
boton1.addEventListener('click', (e) => {
5968
e.preventDefault();
6069

@@ -82,6 +91,7 @@ export default function Menu() {
8291
body.style.overflow = 'hidden';
8392

8493
CLContent.style.animation = 'muestraParrafo 0.3s ease-in-out forwards';
94+
boton1.title = "Close Cover Letter";
8595
incompleta = false;
8696
});
8797
} else {
@@ -103,6 +113,7 @@ export default function Menu() {
103113
body.style.overflow = 'auto';
104114

105115
CLContent.style.animation = 'ocultaParrafo 0.3s ease-in-out forwards';
116+
boton1.title = "Open Cover Letter";
106117
incompleta = true;
107118
});
108119
}

0 commit comments

Comments
 (0)