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%;
width: 0; /* Hidden by default */
position: fixed;
z-index: 1;
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 */ /* Add a black background color to the top navigation */
.sidebar a { .topnav {
padding: 8px 8px 8px 32px; background-color: #333;
text-decoration: none; overflow: hidden;
text-align: right;
font-size: 25px;
color: #818181;
display: block;
transition: 0.3s;
}
/* When you mouse over the navigation links, change their color */
.sidebar a:hover {
color: #f1f1f1;
}
/* Position and style the close button (top right corner) */
.sidebar .close {
position: absolute; position: absolute;
top: 0;
right: 25px;
font-size: 36px;
margin-left: 50px;
}
/* Position the div containing the open button */
.inflate {
position: absolute;
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;
}
.open:hover {
background-color: #444;
}
/* Screens Wider than 600px */
@media screen and (min-width: 600px) {
/*Hide sidebar open/close buttons*/
.inflate {display: none;}
.sidebar .close {display: none;}
/*Change Menu Dimensions*/
.sidebar {
width: 100%; width: 100%;
height: 10px; left: 0;
padding-top: 5px; top: 0;
padding-bottom: 40px; }
padding-left: 50px;
} /* Style the links inside the navigation bar */
.topnav a {
/* Float links */ float: left;
.sidebar a { font-family: monospace;
float: left; display: block;
padding-top: 10px; color: #f2f2f2;
} text-align: center;
padding: 14px 16px;
.sidebar a:first-child { text-decoration: none;
margin-left: 30px; font-size: 17px;
} }
/*Provice space for top menu*/ /* Hide the link that should open and close the topnav on small screens */
.page-title {padding-top: 100px} .topnav .icon {
display: none;
}
/* Dropdown container - needed to position the dropdown content */
.dropdown {
float: left;
overflow: hidden;
}
/* Style the dropdown button to fit inside the topnav */
.dropdown .dropbtn {
font-size: 17px;
border: none;
outline: none;
color: white;
padding: 14px 16px;
background-color: inherit;
font-family: monospace;
margin: 0;
}
/* Style the dropdown content (hidden by default) */
.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;
}
/* Style the links inside the dropdown */
.dropdown-content a {
float: none;
color: black;
padding: 12px 16px;
text-decoration: none;
display: block;
text-align: left;
}
/* Add a dark background on topnav links and the dropdown button on hover */
.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%;
text-align: left;
}
} }

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/PGP</a> <a href="/gpg.php">GPG</a>
<div class="dropdown">
<button class="dropbtn">Downloads &#129142;</button>
<div class="dropdown-content">
<a href="/downloads/vcard.vcf">vCard</a>
</div>
</div>
<div class="dropdown">
<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="/projects.php">Projects</a>
<a href="/contact.php">Contact</a> <a href="javascript:void(0);" class="icon" onclick="hamburger()">&#9776;</a>
</div> </div>
<div class="inflate" id="inflate">
<button class="open" onclick="inflateSidebar()">&#9776;</button>
</div>