Compare commits

..

No commits in common. "871be3a9af2f98f240bc63f655c3d9b4b3708305" and "34d47cfc4cc8be5e7f71a5f539b846c4b6cc063c" have entirely different histories.

4 changed files with 126 additions and 121 deletions

View File

@ -1,26 +0,0 @@
<!DOCTYPE html>
<html lang="en">
<head>
<?php include "./page-blocks/head.php"; ?>
<title>Contact</title>
</head>
<body>
<?php include "./page-blocks/menu.php"; ?>
<h1 class="page-title">Contact</h1>
<div class="page-main-content">
<a href="/downloads/vcard.vcf" class="download-link">Add me to your contacts</a>
<h2>Find me elsewhere</h2>
<a href="https://fb.me/fred.boniface" target="_blank" rel="noreferrer noopener">Facebook</a>
<a href="https://github.com/frdbonif" target="_blank" rel="noreferrer noopener">GitHub</a>
<a href="https://500px.com/p/fredboniface" target="_blank" rel="noreferrer noopener">500px</a>
</div>
<?php include "./page-blocks/footer.php"; ?>
</body>
</html>

View File

@ -39,14 +39,6 @@ body {
padding-top: 45px; padding-top: 45px;
} }
.download-link {
background-color: #444444;
color: #f1f1f1;
border: 0px;
border-radius: 10px;
text-align: center;
}
footer { footer {
background-color: rgb(61, 61, 61); background-color: rgb(61, 61, 61);
color: #eeeeee; color: #eeeeee;
@ -58,92 +50,121 @@ footer {
left: 0; left: 0;
} }
/* The sidebar menu */ /* NAVBAR STYLING BELOW */
.sidebar {
height: 100%; /* Add a black background color to the top navigation */
width: 0; /* Hidden by default */ .topnav {
position: fixed; background-color: #333;
z-index: 1; overflow: hidden;
position: absolute;
width: 100%;
left: 0;
top: 0; top: 0;
right: 0;
background-color: #111;
overflow-x: hidden; /* Disable horizontal scroll */
padding-top: 60px; /* Place content 60px from the top */
transition: 0.5s; /* 0.5 second transition effect to slide in the sidebar */
} }
/* The sidebar links */ /* Style the links inside the navigation bar */
.sidebar a { .topnav a {
padding: 8px 8px 8px 32px; float: left;
text-decoration: none; font-family: monospace;
text-align: right;
font-size: 25px;
color: #818181;
display: block; display: block;
transition: 0.3s; color: #f2f2f2;
text-align: center;
padding: 14px 16px;
text-decoration: none;
font-size: 17px;
} }
/* When you mouse over the navigation links, change their color */ /* Hide the link that should open and close the topnav on small screens */
.sidebar a:hover { .topnav .icon {
color: #f1f1f1; display: none;
} }
/* Position and style the close button (top right corner) */ /* Dropdown container - needed to position the dropdown content */
.sidebar .close { .dropdown {
position: absolute; float: left;
top: 0; overflow: hidden;
right: 25px;
font-size: 36px;
margin-left: 50px;
} }
/* Position the div containing the open button */ /* Style the dropdown button to fit inside the topnav */
.inflate { .dropdown .dropbtn {
position: absolute; font-size: 17px;
top: 10px;
right: 10px;
}
/* The button used to open the sidebar */
.open {
font-size: 20px;
cursor: pointer;
background-color: rgba(0, 0, 0, 0);
color: white;
padding: 10px 15px;
border: none; border: none;
outline: none;
color: white;
padding: 14px 16px;
background-color: inherit;
font-family: monospace;
margin: 0;
} }
.open:hover { /* Style the dropdown content (hidden by default) */
background-color: #444; .dropdown-content {
display: none;
position: absolute;
background-color: #f9f9f9;
min-width: 160px;
box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
z-index: 1;
} }
/* Screens Wider than 600px */ /* Style the links inside the dropdown */
@media screen and (min-width: 600px) { .dropdown-content a {
/*Hide sidebar open/close buttons*/ float: none;
.inflate {display: none;} color: black;
.sidebar .close {display: none;} padding: 12px 16px;
text-decoration: none;
display: block;
text-align: left;
}
/*Change Menu Dimensions*/ /* Add a dark background on topnav links and the dropdown button on hover */
.sidebar { .topnav a:hover, .dropdown:hover .dropbtn {
background-color: #555;
color: white;
}
/* Add a grey background to dropdown links on hover */
.dropdown-content a:hover {
background-color: #ddd;
color: black;
}
/* Show the dropdown menu when the user moves the mouse over the dropdown button */
.dropdown:hover .dropdown-content {
display: block;
}
/* When the screen is less than 600 pixels wide, hide all links, except for the first one ("Home"). Show the link that contains should open and close the topnav (.icon) */
@media screen and (max-width: 600px) {
.topnav a:not(:first-child), .dropdown .dropbtn {
display: none;
}
.topnav a.icon {
float: right;
display: block;
}
}
/* The "responsive" class is added to the topnav with JavaScript when the user clicks on the icon. This class makes the topnav look good on small screens (display the links vertically instead of horizontally) */
@media screen and (max-width: 600px) {
.topnav.responsive {
position: absolute;
}
.topnav.responsive a.icon {
position: absolute;
right: 0;
top: 0;
}
.topnav.responsive a {
float: none;
display: block;
text-align: left;
}
.topnav.responsive .dropdown {float: none;}
.dropdown-content {position: relative;}
.topnav.responsive .dropdown .dropbtn {
display: block;
width: 100%; width: 100%;
height: 10px; text-align: left;
padding-top: 5px;
padding-bottom: 40px;
padding-left: 50px;
} }
/* Float links */
.sidebar a {
float: left;
padding-top: 10px;
}
.sidebar a:first-child {
margin-left: 30px;
}
/*Provice space for top menu*/
.page-title {padding-top: 100px}
} }

View File

@ -1,7 +1,9 @@
function inflateSidebar() { /* Toggle between adding and removing the "responsive" class to topnav when the user clicks on the icon */
document.getElementById("sidebar").style.width = "150px"; function hamburger() {
} var x = document.getElementById("myTopnav");
if (x.className === "topnav") {
function collapseSidebar() { x.className += " responsive";
document.getElementById("sidebar").style.width = "0px"; } else {
x.className = "topnav";
}
} }

View File

@ -1,11 +1,19 @@
<div id="sidebar" class="sidebar"> <div class="topnav" id="myTopnav">
<a href="javascript:void(0)" class="close" onclick="collapseSidebar()">&times;</a> <a href="/">Home</a>
<a href="/">Home</a> <a href="/gpg.php">GPG</a>
<a href="/gpg.php">GPG/PGP</a> <div class="dropdown">
<a href="/projects.php">Projects</a> <button class="dropbtn">Downloads &#129142;</button>
<a href="/contact.php">Contact</a> <div class="dropdown-content">
</div> <a href="/downloads/vcard.vcf">vCard</a>
</div>
<div class="inflate" id="inflate"> </div>
<button class="open" onclick="inflateSidebar()">&#9776;</button> <div class="dropdown">
</div> <button class="dropbtn">Socials &#129142;</button>
<div class="dropdown-content">
<a href="https://fb.me/fred.boniface" target="_blank" rel="noreferrer noopener">Facebook</a>
<a href="https://500px.com/p/fredboniface" target="_blank" rel="noreferrer noopener">500px</a>
</div>
</div>
<a href="/projects.php">Projects</a>
<a href="javascript:void(0);" class="icon" onclick="hamburger()">&#9776;</a>
</div>