Added base.css. Logo now redirects to main page

This commit is contained in:
Yohan Boujon 2023-06-20 20:14:27 +02:00
parent 3075403ee5
commit b9ccc68a15
11 changed files with 27 additions and 17 deletions

View file

@ -14,6 +14,7 @@
<link
href="https://fonts.googleapis.com/css2?family=Josefin+Sans:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;1,100;1,200;1,300;1,400;1,500;1,600;1,700&family=Rubik:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap"
rel="stylesheet">
<link href="css/base.css" rel="stylesheet">
<link href="css/navbar.css" rel="stylesheet">
</head>

View file

@ -21,7 +21,9 @@
</ul>
</div>
<div id="navbar_logo-container">
<a id="navbar_logo-home">
<img class="navbar_logo"><img>
</a>
</div>
</nav>
<div id="navbar_padding"></div>

15
css/base.css Normal file
View file

@ -0,0 +1,15 @@
* {
box-sizing: border-box;
padding: 0;
margin: 0;
scroll-behavior: smooth;
}
h1 {
font-family: "Comic Sans MS", "Comic Sans", cursive;
}
p {
font-family: 'Josefin Sans', sans-serif;
}

View file

@ -1,18 +1,3 @@
* {
box-sizing: border-box;
padding: 0;
margin: 0;
scroll-behavior: smooth;
}
h1 {
font-family: "Comic Sans MS", "Comic Sans", cursive;
}
p {
font-family: 'Josefin Sans', sans-serif;
}
.anim-text {
display: none;
opacity: 0;

View file

@ -24,7 +24,7 @@
}
.navbar_logo {
height: inherit;
height: 5rem;
}
#navbar_text-container {

View file

@ -14,6 +14,7 @@
<link
href="https://fonts.googleapis.com/css2?family=Josefin+Sans:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;1,100;1,200;1,300;1,400;1,500;1,600;1,700&family=Rubik:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap"
rel="stylesheet">
<link href="../css/base.css" rel="stylesheet">
<link href="../css/navbar.css" rel="stylesheet">
</head>

View file

@ -14,6 +14,7 @@
<link
href="https://fonts.googleapis.com/css2?family=Josefin+Sans:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;1,100;1,200;1,300;1,400;1,500;1,600;1,700&family=Rubik:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap"
rel="stylesheet">
<link href="../css/base.css" rel="stylesheet">
<link href="../css/navbar.css" rel="stylesheet">
</head>

View file

@ -14,6 +14,7 @@
<link
href="https://fonts.googleapis.com/css2?family=Josefin+Sans:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;1,100;1,200;1,300;1,400;1,500;1,600;1,700&family=Rubik:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap"
rel="stylesheet">
<link href="css/base.css" rel="stylesheet">
<link href="css/navbar.css" rel="stylesheet">
<link href="css/index.css" rel="stylesheet">
</head>

View file

@ -14,6 +14,7 @@
<link
href="https://fonts.googleapis.com/css2?family=Josefin+Sans:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;1,100;1,200;1,300;1,400;1,500;1,600;1,700&family=Rubik:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap"
rel="stylesheet">
<link href="../css/base.css" rel="stylesheet">
<link href="../css/navbar.css" rel="stylesheet">
</head>

View file

@ -14,6 +14,7 @@
<link
href="https://fonts.googleapis.com/css2?family=Josefin+Sans:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;1,100;1,200;1,300;1,400;1,500;1,600;1,700&family=Rubik:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap"
rel="stylesheet">
<link href="../css/base.css" rel="stylesheet">
<link href="../css/navbar.css" rel="stylesheet">
</head>

View file

@ -86,6 +86,8 @@ function resetNavbar() {
//Setting the logo URL
document.getElementsByClassName("navbar_logo")[0].src = urlStr+"/assets/Logo.png";
//Setting the logo href
document.getElementById("navbar_logo-home").href = urlStr;
//Setting the href links for in directory links
var urlOffset = urlStr.length