seperate pages and spruce up look

This commit is contained in:
Gregory Hendrickson
2023-06-09 17:19:32 -07:00
parent 3eccfc8dea
commit c22d9b2559
3 changed files with 121 additions and 28 deletions

View File

@@ -0,0 +1,34 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>About - My Profile</title>
<link rel="stylesheet" href="styles.css">
</head>
<body class="dark-grey-purple">
<header>
<div class="container">
<h1>My Profile</h1>
<div id="menu-toggle"></div>
<nav id="main-nav">
<ul>
<li><a href="index.html">Home</a></li>
<li><a href="about.html">About</a></li>
<li><a href="projects.html">Projects</a></li>
<li><a href="contact.html">Contact</a></li>
</ul>
</nav>
</div>
</header>
<main>
<section id="about">
<h2>About Me</h2>
<!-- Content for the About page goes here -->
</section>
</main>
<script src="script.js"></script>
</body>
</html>

View File

@@ -0,0 +1,34 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Contact - My Profile</title>
<link rel="stylesheet" href="styles.css">
</head>
<body class="dark-grey-purple">
<header>
<div class="container">
<h1>My Profile</h1>
<div id="menu-toggle"></div>
<nav id="main-nav">
<ul>
<li><a href="index.html">Home</a></li>
<li><a href="about.html">About</a></li>
<li><a href="projects.html">Projects</a></li>
<li><a href="contact.html">Contact</a></li>
</ul>
</nav>
</div>
</header>
<main>
<section id="contact">
<h2>Contact Me</h2>
<!-- Content for the Contact page goes here -->
</section>
</main>
<script src="script.js"></script>
</body>
</html>

View File

@@ -1,59 +1,84 @@
/* Add these styles to your existing styles.css file or create a new one */
/* Common Styles */
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
font-family: Arial, sans-serif;
}
header {
background-color: #333;
color: #fff;
.container {
max-width: 1200px;
margin: 0 auto;
padding: 20px;
}
h1 {
margin: 0;
color: #ffffff;
}
nav ul {
h2 {
margin-top: 40px;
}
ul {
list-style-type: none;
padding: 0;
margin: 0;
}
nav ul li {
display: inline;
margin-right: 10px;
}
nav ul li a {
color: #fff;
a {
text-decoration: none;
color: #ffffff;
}
main {
padding: 20px;
/* Theme Styles */
.dark-grey-purple {
background-color: #2b2b2b;
color: #ffffff;
}
#latest-commits {
margin-bottom: 20px;
}
.commit {
background-color: #f1f1f1;
border-radius: 5px;
.dark-grey-purple header {
background-color: #191919;
padding: 10px;
margin-bottom: 10px;
display: flex;
justify-content: space-between;
align-items: center;
}
.commit p {
margin: 0;
.dark-grey-purple #menu-toggle {
width: 30px;
height: 20px;
background-color: #ffffff;
border-radius: 4px;
cursor: pointer;
}
.commit p strong {
font-weight: bold;
.dark-grey-purple #main-nav {
display: none;
}
.commit p:not(:last-child) {
margin-bottom: 5px;
.dark-grey-purple #main-nav ul {
display: flex;
}
.dark-grey-purple #main-nav ul li {
margin-left: 20px;
}
/* Media Query */
@media screen and (max-width: 768px) {
.dark-grey-purple #main-nav {
display: block;
}
.dark-grey-purple #main-nav ul {
flex-direction: column;
}
.dark-grey-purple #main-nav ul li {
margin: 10px 0;
}
}