Removed some old scaffolding from the parallax library.
Changed arrow glyph.
This commit is contained in:
parent
d0481201a0
commit
5cd193a4b5
5 changed files with 111 additions and 109 deletions
|
@ -0,0 +1,69 @@
|
||||||
|
.material-symbols-outlined {
|
||||||
|
font-family: 'Material Symbols Outlined';
|
||||||
|
font-weight: normal;
|
||||||
|
font-style: normal;
|
||||||
|
font-size: 24px;
|
||||||
|
line-height: 1;
|
||||||
|
letter-spacing: normal;
|
||||||
|
text-transform: none;
|
||||||
|
display: inline-block;
|
||||||
|
white-space: nowrap;
|
||||||
|
word-wrap: normal;
|
||||||
|
direction: ltr;
|
||||||
|
-webkit-font-feature-settings: 'liga';
|
||||||
|
font-feature-settings: 'liga';
|
||||||
|
-webkit-font-smoothing: antialiased;
|
||||||
|
}
|
||||||
|
|
||||||
|
.sedan-sc-regular {
|
||||||
|
font-family: "Sedan SC", serif;
|
||||||
|
font-weight: 400;
|
||||||
|
font-style: normal;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* <uniquifier>: Use a unique and descriptive class name */
|
||||||
|
/* <weight>: Use a value from 100 to 700 */
|
||||||
|
/* .josefin-slab-<uniquifier> {
|
||||||
|
font-family: "Josefin Slab", serif;
|
||||||
|
font-optical-sizing: auto;
|
||||||
|
font-weight: <weight>;
|
||||||
|
font-style: normal;
|
||||||
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
|
.josefin-slab-500 {
|
||||||
|
font-family: "Josefin Slab", serif;
|
||||||
|
font-optical-sizing: auto;
|
||||||
|
font-weight: 500;
|
||||||
|
font-style: normal;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* <uniquifier>: Use a unique and descriptive class name */
|
||||||
|
/* <weight>: Use a value from 400 to 900 */
|
||||||
|
.playfair-display-700 {
|
||||||
|
font-family: "Playfair Display", serif;
|
||||||
|
font-optical-sizing: auto;
|
||||||
|
font-weight: 700;
|
||||||
|
font-style: normal;
|
||||||
|
}
|
||||||
|
|
||||||
|
.playfair-display-400 {
|
||||||
|
font-family: "Playfair Display", serif;
|
||||||
|
font-optical-sizing: auto;
|
||||||
|
font-weight: 400;
|
||||||
|
font-style: normal;
|
||||||
|
}
|
||||||
|
|
||||||
|
.oswald-display-700 {
|
||||||
|
font-family: "Oswald", serif;
|
||||||
|
font-optical-sizing: auto;
|
||||||
|
font-weight: 700;
|
||||||
|
font-style: normal;
|
||||||
|
}
|
||||||
|
|
||||||
|
.oswald-display-400 {
|
||||||
|
font-family: "Oswald", serif;
|
||||||
|
font-optical-sizing: auto;
|
||||||
|
font-weight: 400;
|
||||||
|
font-style: normal;
|
||||||
|
}
|
128
css/styles.css
128
css/styles.css
|
@ -3,12 +3,30 @@
|
||||||
scrollbar-color: #3b3b3b #202020;
|
scrollbar-color: #3b3b3b #202020;
|
||||||
}
|
}
|
||||||
|
|
||||||
.body-class {
|
/* This class is applied while fonts are still loading. */
|
||||||
|
html.wf-loading #hero {
|
||||||
|
opacity: 0;
|
||||||
|
}
|
||||||
|
/* This class is applied when all fonts are loaded */
|
||||||
|
html.wf-active #hero {
|
||||||
|
opacity: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
body {
|
||||||
background-color: black;
|
background-color: black;
|
||||||
color: whitesmoke;
|
color: whitesmoke;
|
||||||
width: 95dvw;
|
width: 95dvw;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#hero-section {
|
||||||
|
width: 95dvw;
|
||||||
|
height: 100dvh;
|
||||||
|
vertical-align: middle;
|
||||||
|
align-content: center;
|
||||||
|
margin: 0;
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
|
|
||||||
#hero {
|
#hero {
|
||||||
font-size: 7em;
|
font-size: 7em;
|
||||||
line-height: 0.85;
|
line-height: 0.85;
|
||||||
|
@ -21,14 +39,6 @@
|
||||||
transition-property: opacity;
|
transition-property: opacity;
|
||||||
}
|
}
|
||||||
|
|
||||||
html.wf-loading #hero {
|
|
||||||
opacity: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
html.wf-active #hero {
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
#hero-titles {
|
#hero-titles {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
|
@ -43,14 +53,16 @@ html.wf-active #hero {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
#viewport-portal {
|
#arrow-hint {
|
||||||
width: 95dvw;
|
position: absolute;
|
||||||
height: 101dvh;
|
top: 94dvh;
|
||||||
vertical-align: middle;
|
/*left: 50vh; */
|
||||||
align-content: center;
|
width: 98dvw;
|
||||||
margin: 0;
|
text-align: center;
|
||||||
padding: 0;
|
color: rgb(255, 255, 255);
|
||||||
|
opacity: 0%;
|
||||||
|
transition: 4s ease-in-out 13s;
|
||||||
|
transition-property: opacity, visibility;
|
||||||
}
|
}
|
||||||
|
|
||||||
#certifications-page {
|
#certifications-page {
|
||||||
|
@ -71,18 +83,6 @@ html.wf-active #hero {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
#arrow-hint {
|
|
||||||
position: absolute;
|
|
||||||
top: 94dvh;
|
|
||||||
/*left: 50vh; */
|
|
||||||
width: 98dvw;
|
|
||||||
text-align: center;
|
|
||||||
color: rgb(255, 255, 255);
|
|
||||||
opacity: 0%;
|
|
||||||
transition: 4s ease-in-out 13s;
|
|
||||||
transition-property: opacity, visibility;
|
|
||||||
}
|
|
||||||
|
|
||||||
#page-content {
|
#page-content {
|
||||||
/* opacity: 0%;
|
/* opacity: 0%;
|
||||||
visibility: hidden; */
|
visibility: hidden; */
|
||||||
|
@ -91,73 +91,3 @@ html.wf-active #hero {
|
||||||
padding: 10px;
|
padding: 10px;
|
||||||
position: relative;
|
position: relative;
|
||||||
}
|
}
|
||||||
|
|
||||||
.material-symbols-outlined {
|
|
||||||
font-family: 'Material Symbols Outlined';
|
|
||||||
font-weight: normal;
|
|
||||||
font-style: normal;
|
|
||||||
font-size: 24px;
|
|
||||||
line-height: 1;
|
|
||||||
letter-spacing: normal;
|
|
||||||
text-transform: none;
|
|
||||||
display: inline-block;
|
|
||||||
white-space: nowrap;
|
|
||||||
word-wrap: normal;
|
|
||||||
direction: ltr;
|
|
||||||
-webkit-font-feature-settings: 'liga';
|
|
||||||
font-feature-settings: 'liga';
|
|
||||||
-webkit-font-smoothing: antialiased;
|
|
||||||
}
|
|
||||||
|
|
||||||
.sedan-sc-regular {
|
|
||||||
font-family: "Sedan SC", serif;
|
|
||||||
font-weight: 400;
|
|
||||||
font-style: normal;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* <uniquifier>: Use a unique and descriptive class name */
|
|
||||||
/* <weight>: Use a value from 100 to 700 */
|
|
||||||
/* .josefin-slab-<uniquifier> {
|
|
||||||
font-family: "Josefin Slab", serif;
|
|
||||||
font-optical-sizing: auto;
|
|
||||||
font-weight: <weight>;
|
|
||||||
font-style: normal;
|
|
||||||
}
|
|
||||||
*/
|
|
||||||
|
|
||||||
.josefin-slab-500 {
|
|
||||||
font-family: "Josefin Slab", serif;
|
|
||||||
font-optical-sizing: auto;
|
|
||||||
font-weight: 500;
|
|
||||||
font-style: normal;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* <uniquifier>: Use a unique and descriptive class name */
|
|
||||||
/* <weight>: Use a value from 400 to 900 */
|
|
||||||
.playfair-display-700 {
|
|
||||||
font-family: "Playfair Display", serif;
|
|
||||||
font-optical-sizing: auto;
|
|
||||||
font-weight: 700;
|
|
||||||
font-style: normal;
|
|
||||||
}
|
|
||||||
|
|
||||||
.playfair-display-400 {
|
|
||||||
font-family: "Playfair Display", serif;
|
|
||||||
font-optical-sizing: auto;
|
|
||||||
font-weight: 400;
|
|
||||||
font-style: normal;
|
|
||||||
}
|
|
||||||
|
|
||||||
.oswald-display-700 {
|
|
||||||
font-family: "Oswald", serif;
|
|
||||||
font-optical-sizing: auto;
|
|
||||||
font-weight: 700;
|
|
||||||
font-style: normal;
|
|
||||||
}
|
|
||||||
|
|
||||||
.oswald-display-400 {
|
|
||||||
font-family: "Oswald", serif;
|
|
||||||
font-optical-sizing: auto;
|
|
||||||
font-weight: 400;
|
|
||||||
font-style: normal;
|
|
||||||
}
|
|
15
index.html
15
index.html
|
@ -15,20 +15,27 @@
|
||||||
<meta property="og:description" content="Profile page of Nathan Peckham">
|
<meta property="og:description" content="Profile page of Nathan Peckham">
|
||||||
<meta property="og:url" content="https://profile.kn8design.com">
|
<meta property="og:url" content="https://profile.kn8design.com">
|
||||||
<meta property="og:site_name" content="Nathan Peckham">
|
<meta property="og:site_name" content="Nathan Peckham">
|
||||||
|
|
||||||
|
<link rel="apple-touch-icon" sizes="180x180" href="favicon/apple-touch-icon.png">
|
||||||
|
<link rel="icon" type="image/png" sizes="32x32" href="favicon/favicon-32x32.png">
|
||||||
|
<link rel="icon" type="image/png" sizes="16x16" href="favicon/favicon-16x16.png">
|
||||||
|
<link rel="manifest" href="/site.webmanifest">
|
||||||
|
|
||||||
<link rel="stylesheet" href="css/styles.css">
|
<link rel="stylesheet" href="css/styles.css">
|
||||||
<link rel="stylesheet" href="css/font-styles.css">
|
<link rel="stylesheet" href="css/font-styles.css">
|
||||||
|
<!-- Google WebFont library for loading custom fonts. Helps to avoid FOUT, among other things. -->
|
||||||
|
<script src="https://ajax.googleapis.com/ajax/libs/webfont/1.6.26/webfont.js"></script>
|
||||||
<script src="scripts/font-scripts.js"></script>
|
<script src="scripts/font-scripts.js"></script>
|
||||||
<script src="scripts/scripts.js"></script>
|
<script src="scripts/scripts.js"></script>
|
||||||
|
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body class="body-class">
|
<body>
|
||||||
<div id="page-content">
|
<div id="page-content">
|
||||||
<div id="viewport-portal" data-hover-only="true" data-relative-input="true" pointer-events="true">
|
<div id="hero-section">
|
||||||
<div id="hero" class="playfair-display-700">Nathan Peckham</div>
|
<div id="hero" class="playfair-display-700">Nathan Peckham</div>
|
||||||
<div id="hero-titles" class="playfair-display-400"> </div>
|
<div id="hero-titles" class="playfair-display-400"> </div>
|
||||||
<div id="arrow-hint" class="material-symbols-outlined">arrow_downward</div>
|
<div id="arrow-hint" class="material-symbols-outlined">expand_circle_down</div>
|
||||||
</div>
|
</div>
|
||||||
<div id="certifications-page">
|
<div id="certifications-page">
|
||||||
<div id="certifications-title" class="josefin-slab-500">Certifications</div>
|
<div id="certifications-title" class="josefin-slab-500">Certifications</div>
|
||||||
|
|
|
@ -1,6 +1,3 @@
|
||||||
// Google WebFont library for loading custom fonts. Helps to avoid FOUT.
|
|
||||||
<script src="https://ajax.googleapis.com/ajax/libs/webfont/1.6.26/webfont.js"></script>
|
|
||||||
|
|
||||||
WebFont.load({
|
WebFont.load({
|
||||||
google: {
|
google: {
|
||||||
families: ['Oswald', 'Josefin Slab', 'Playfair Display', 'Sedan SC', 'Material Symbols Outlined']
|
families: ['Oswald', 'Josefin Slab', 'Playfair Display', 'Sedan SC', 'Material Symbols Outlined']
|
||||||
|
|
|
@ -15,10 +15,9 @@ const hero_title_rotator = () => {
|
||||||
window.onload = function(){
|
window.onload = function(){
|
||||||
console.debug("DOM Loaded");
|
console.debug("DOM Loaded");
|
||||||
setInterval(hero_title_rotator, HERO_TITLE_INTERVAL);
|
setInterval(hero_title_rotator, HERO_TITLE_INTERVAL);
|
||||||
|
window.onscroll = clearArrowHint;
|
||||||
};
|
};
|
||||||
|
|
||||||
window.onscroll = clearArrowHint;
|
|
||||||
|
|
||||||
function clearArrowHint() {
|
function clearArrowHint() {
|
||||||
console.debug("Clearing Arrow Hint");
|
console.debug("Clearing Arrow Hint");
|
||||||
var arrow_hint = document.getElementById("arrow-hint");
|
var arrow_hint = document.getElementById("arrow-hint");
|
||||||
|
|
Loading…
Reference in a new issue