Skip to content

Commit

Permalink
SEO Configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
Canestin committed Jul 13, 2022
1 parent 84a2d9f commit 4a5de7d
Show file tree
Hide file tree
Showing 12 changed files with 67 additions and 11 deletions.
14 changes: 9 additions & 5 deletions .htaccess
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,12 @@ RewriteEngine on
#-----------------------

RewriteRule ^home$ index.html
RewriteRule ^projects$ projects.html
RewriteRule ^about$ about.html
RewriteRule ^accueil$ accueil.html
RewriteRule ^apropos$ apropos.html
RewriteRule ^projets$ projets.html [L]
RewriteRule ^en/projects$ en/projects.html
RewriteRule ^en/about$ en/about.html
RewriteRule ^en$ index.html
RewriteRule ^en/$ index.html
RewriteRule ^fr/accueil$ fr/accueil.html
RewriteRule ^fr/$ fr/accueil.html
RewriteRule ^fr$ fr/accueil.html
RewriteRule ^fr/apropos$ fr/apropos.html
RewriteRule ^fr/projets$ fr/projets.html [L]
13 changes: 13 additions & 0 deletions css/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,19 @@ header{
animation: none;
}

.canou{
width: 100vw;
height: 93vh;
padding: 25% 0 0 0;
margin: 0;
display: flex;
flex-direction: column;
justify-content: start;
align-items: center;
row-gap: 35px;
background-color: #050a30;
}

.navbar a {
color: #5bcba7;
}
Expand Down
1 change: 1 addition & 0 deletions en/about.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
<meta name="author" content="Canestin Ndong">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="icon" type="image/x-icon" href="../img/favicon.ico">
<link rel="stylesheet" href="../css/about.css">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
Expand Down
1 change: 1 addition & 0 deletions en/projects.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
<meta name="author" content="Canestin Ndong">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="icon" type="image/x-icon" href="../img/favicon.ico">
<link rel="stylesheet" href="../css/projects.css">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
Expand Down
3 changes: 2 additions & 1 deletion fr/accueil.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,13 @@
<meta name="author" content="Canestin Ndong">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="icon" type="image/x-icon" href="../img/favicon.ico">
<link rel="stylesheet" href="../css/index.css">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Jost:wght@300;400;500&family=Poppins:wght@300;400&display=swap" rel="stylesheet">
<script src="https://kit.fontawesome.com/4c7496d2f0.js" crossorigin="anonymous"></script>
<script src="../js/index.js" defer></script>
<script src="../js/App.js" defer></script>
<title>Accueil</title>
</head>
<body>
Expand Down
1 change: 1 addition & 0 deletions fr/apropos.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
<meta name="author" content="Canestin Ndong">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="icon" type="image/x-icon" href="../img/favicon.ico">
<link rel="stylesheet" href="../css/about.css">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
Expand Down
1 change: 1 addition & 0 deletions fr/projets.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
<meta name="author" content="Canestin Ndong">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="icon" type="image/x-icon" href="../img/favicon.ico">
<link rel="stylesheet" href="../css/projects.css">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
Expand Down
Binary file added img/favicon.ico
Binary file not shown.
Binary file added img/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 3 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
<!DOCTYPE html>
<html lang="fr">
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="description" content="Site web personnel">
<meta name="keywords" content="HTML, CSS, JavaScript">
<meta name="author" content="Canestin Ndong">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="google-site-verification" content="FN8hssDtRXkbLrP_mwRQ_KeP8WmulsB-fkWsmVxvKFo" />
<link rel="icon" type="image/x-icon" href="img/favicon.ico">
<link rel="stylesheet" href="css/index.css">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
Expand Down
8 changes: 4 additions & 4 deletions js/index.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
const menu = document.querySelector('#menu');

menu.addEventListener("click", () => {
if(menu.getAttribute('src') === "../img/menu.png"){
if(menu.getAttribute('src') === "img/menu.png"){
document.getElementById('home').style.display = "none";
menu.setAttribute("src", "../img/x.png");
menu.setAttribute("src", "img/x.png");
document.querySelector(".navbar").classList.toggle("canou");
document.querySelector(".navbar").classList.toggle("navbarMask");
} else if(menu.getAttribute('src') === "../img/x.png"){
} else if(menu.getAttribute('src') === "img/x.png"){
document.getElementById('home').style.display = "flex";
menu.setAttribute("src", "../img/menu.png");
menu.setAttribute("src", "img/menu.png");
document.querySelector(".navbar").classList.toggle("canou");
document.querySelector(".navbar").classList.toggle("navbarMask");
} else {
Expand Down
32 changes: 32 additions & 0 deletions sitemap.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
<?xml version="1.0" encoding="UTF-8"?>
<urlset
xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9
http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd">
<!-- created with Free Online Sitemap Generator www.xml-sitemaps.com -->


<url>
<loc>https://canestin-ndong.fr/</loc>
<lastmod>2022-07-12T23:21:24+00:00</lastmod>
<priority>1.00</priority>
</url>
<url>
<loc>https://canestin-ndong.fr/home</loc>
<lastmod>2022-07-12T23:21:24+00:00</lastmod>
<priority>0.80</priority>
</url>
<url>
<loc>https://canestin-ndong.fr/en/about</loc>
<lastmod>2022-07-12T23:00:07+00:00</lastmod>
<priority>0.80</priority>
</url>
<url>
<loc>https://canestin-ndong.fr/en/projects</loc>
<lastmod>2022-07-12T23:00:07+00:00</lastmod>
<priority>0.80</priority>
</url>


</urlset>

0 comments on commit 4a5de7d

Please sign in to comment.