Compare commits
14 Commits
34d47cfc4c
...
871be3a9af
Author | SHA1 | Date |
---|---|---|
Fred Boniface | 871be3a9af | |
Fred Boniface | 90137cc4ca | |
Fred Boniface | 8993616660 | |
Fred Boniface | 53d1a0c182 | |
Fred Boniface | aa2fbd43e6 | |
Fred Boniface | b683ea67c4 | |
Fred Boniface | 167c92e704 | |
Fred Boniface | a5662a7d99 | |
Fred Boniface | 8cd1ed4cf9 | |
Fred Boniface | 702770f867 | |
Fred Boniface | 0bc857263a | |
Fred Boniface | fa3a99508e | |
Fred Boniface | 2644708818 | |
Fred Boniface | 405bf98f69 |
|
@ -0,0 +1,26 @@
|
||||||
|
<!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>
|
183
css/styles.css
183
css/styles.css
|
@ -39,6 +39,14 @@ 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;
|
||||||
|
@ -50,121 +58,92 @@ footer {
|
||||||
left: 0;
|
left: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* NAVBAR STYLING BELOW */
|
/* The sidebar menu */
|
||||||
|
.sidebar {
|
||||||
/* Add a black background color to the top navigation */
|
height: 100%;
|
||||||
.topnav {
|
width: 0; /* Hidden by default */
|
||||||
background-color: #333;
|
position: fixed;
|
||||||
overflow: hidden;
|
|
||||||
position: absolute;
|
|
||||||
width: 100%;
|
|
||||||
left: 0;
|
|
||||||
top: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Style the links inside the navigation bar */
|
|
||||||
.topnav a {
|
|
||||||
float: left;
|
|
||||||
font-family: monospace;
|
|
||||||
display: block;
|
|
||||||
color: #f2f2f2;
|
|
||||||
text-align: center;
|
|
||||||
padding: 14px 16px;
|
|
||||||
text-decoration: none;
|
|
||||||
font-size: 17px;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Hide the link that should open and close the topnav on small screens */
|
|
||||||
.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;
|
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 */
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Style the links inside the dropdown */
|
/* The sidebar links */
|
||||||
.dropdown-content a {
|
.sidebar a {
|
||||||
float: none;
|
padding: 8px 8px 8px 32px;
|
||||||
color: black;
|
|
||||||
padding: 12px 16px;
|
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
|
text-align: right;
|
||||||
|
font-size: 25px;
|
||||||
|
color: #818181;
|
||||||
display: block;
|
display: block;
|
||||||
text-align: left;
|
transition: 0.3s;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Add a dark background on topnav links and the dropdown button on hover */
|
/* When you mouse over the navigation links, change their color */
|
||||||
.topnav a:hover, .dropdown:hover .dropbtn {
|
.sidebar a:hover {
|
||||||
background-color: #555;
|
color: #f1f1f1;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Position and style the close button (top right corner) */
|
||||||
|
.sidebar .close {
|
||||||
|
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;
|
color: white;
|
||||||
|
padding: 10px 15px;
|
||||||
|
border: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Add a grey background to dropdown links on hover */
|
.open:hover {
|
||||||
.dropdown-content a:hover {
|
background-color: #444;
|
||||||
background-color: #ddd;
|
|
||||||
color: black;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Show the dropdown menu when the user moves the mouse over the dropdown button */
|
/* Screens Wider than 600px */
|
||||||
.dropdown:hover .dropdown-content {
|
@media screen and (min-width: 600px) {
|
||||||
display: block;
|
/*Hide sidebar open/close buttons*/
|
||||||
}
|
.inflate {display: none;}
|
||||||
|
.sidebar .close {display: none;}
|
||||||
|
|
||||||
/* 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) */
|
/*Change Menu Dimensions*/
|
||||||
@media screen and (max-width: 600px) {
|
.sidebar {
|
||||||
.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%;
|
||||||
text-align: left;
|
height: 10px;
|
||||||
|
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}
|
||||||
|
|
||||||
}
|
}
|
14
js/navbar.js
14
js/navbar.js
|
@ -1,9 +1,7 @@
|
||||||
/* Toggle between adding and removing the "responsive" class to topnav when the user clicks on the icon */
|
function inflateSidebar() {
|
||||||
function hamburger() {
|
document.getElementById("sidebar").style.width = "150px";
|
||||||
var x = document.getElementById("myTopnav");
|
}
|
||||||
if (x.className === "topnav") {
|
|
||||||
x.className += " responsive";
|
function collapseSidebar() {
|
||||||
} else {
|
document.getElementById("sidebar").style.width = "0px";
|
||||||
x.className = "topnav";
|
|
||||||
}
|
|
||||||
}
|
}
|
|
@ -1,19 +1,11 @@
|
||||||
<div class="topnav" id="myTopnav">
|
<div id="sidebar" class="sidebar">
|
||||||
<a href="/">Home</a>
|
<a href="javascript:void(0)" class="close" onclick="collapseSidebar()">×</a>
|
||||||
<a href="/gpg.php">GPG</a>
|
<a href="/">Home</a>
|
||||||
<div class="dropdown">
|
<a href="/gpg.php">GPG/PGP</a>
|
||||||
<button class="dropbtn">Downloads 🡶</button>
|
<a href="/projects.php">Projects</a>
|
||||||
<div class="dropdown-content">
|
<a href="/contact.php">Contact</a>
|
||||||
<a href="/downloads/vcard.vcf">vCard</a>
|
</div>
|
||||||
</div>
|
|
||||||
</div>
|
<div class="inflate" id="inflate">
|
||||||
<div class="dropdown">
|
<button class="open" onclick="inflateSidebar()">☰</button>
|
||||||
<button class="dropbtn">Socials 🡶</button>
|
</div>
|
||||||
<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()">☰</a>
|
|
||||||
</div>
|
|
Loading…
Reference in New Issue