Skip to content

Commit

Permalink
Merge pull request #1 from TomyBDev/staging
Browse files Browse the repository at this point in the history
Added working header
  • Loading branch information
TomyBDev authored Feb 2, 2024
2 parents 0329429 + 361bba4 commit 5eed76d
Show file tree
Hide file tree
Showing 4 changed files with 72 additions and 32 deletions.
14 changes: 6 additions & 8 deletions Objects/header.html
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
<header>
<nav>
<ul class="navbar">
<li class="navbaritem"><img class="logo" src="../images/cropped-smallerlogo.webp"></img></li>
<li class="navbaritem" style="margin-left: 30%;"></li>
<li class="navbaritem"><a class="navbaritemtext" href=":D">CV</a></li>
<li class="navbaritem"><a class="navbaritemtext" href="D:">Home</a></li>
</ul>
<header class="header">
<img class="logo" src="../images/cropped-smallerlogo.webp"></img>
<div></div>
<nav class="navbar">
<a class="navbaritemtext" href="../cv.html">CV</a>
<a class="navbaritemtext" href="../index.html">Home</a>
</nav>
</header>
28 changes: 28 additions & 0 deletions cv.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>ThomasB Porfolio</title>
<link rel="stylesheet" href="styles/global.css">
<script src="https://code.jquery.com/jquery-1.10.2.js"></script>
</head>

<body>
<div class="wholeapp">
<div></div>
<div class="mainbody">
<div id="nav-placeholder"></div>
<p>CV</p>
</div>
<div></div>
</div>

<script>
$(function(){
$("#nav-placeholder").load("objects/header.html");
});
</script>

</body>
</html>
14 changes: 11 additions & 3 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,24 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>ThomasB Porfolio</title>
<link rel="stylesheet" href="styles/global.css">
<link rel="stylesheet" href="objects/header.css">
<script src="https://code.jquery.com/jquery-1.10.2.js"></script>
</head>

<body>
<div class="wholeapp">
<div></div>
<div class="mainbody">
<p>heaskldjaskld</p>
</div>
<div id="nav-placeholder"></div>
<p>Home</p>
</div>
<div></div>
</div>

<script>
$(function(){
$("#nav-placeholder").load("objects/header.html");
});
</script>

</body>
</html>
48 changes: 27 additions & 21 deletions styles/global.css
Original file line number Diff line number Diff line change
Expand Up @@ -28,40 +28,46 @@ html {
}

.mainbody {
border-color: aqua;
/*border-color: aqua;
border-style: solid;
border-width: 3px;
border-width: 3px;*/
}

.navbar {
width: 100%;
padding: 0;
margin: 0;
list-style-type: none;

border-color: rgb(255, 0, 0);
border-style: solid;
border-width: 3px;
.header {
display: grid;
grid-template-columns: auto minmax(0, 1fr) auto;
}

.navbaritem {
display: inline;
vertical-align: middle;

border-color: rgb(195, 0, 255);
border-style: solid;
border-width: 3px;
width: 15%;
.navbar {
display: grid;
grid-template-columns: auto auto;
}

.navbaritemtext {
color: hsla(55, 16%, 84%, 0.247);
font-family: RobotoMono-Bold;
text-decoration: none;
font-size: 2.5vw;
font-size: 2rem;
transition: 0.3s;
margin-left: 25px;
margin-right: 25px;
margin-top: 10px;

/*border-color: rgb(195, 0, 255);
border-style: solid;
border-width: 3px;*/
}

.navbaritemtext:hover {
color: #DCDBCF;
}

.logo {
width: 30%;
width: 12rem;
height: auto;
margin: 10px;

/*border-color: rgb(195, 0, 255);
border-style: solid;
border-width: 3px;*/
}

0 comments on commit 5eed76d

Please sign in to comment.