Removed some old scaffolding from the parallax library.

Changed arrow glyph.
This commit is contained in:
Nathan Peckham 2024-06-11 12:56:22 -05:00
parent d0481201a0
commit 5cd193a4b5
5 changed files with 111 additions and 109 deletions

View file

@ -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;
}

View file

@ -3,12 +3,30 @@
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;
color: whitesmoke;
width: 95dvw;
}
#hero-section {
width: 95dvw;
height: 100dvh;
vertical-align: middle;
align-content: center;
margin: 0;
padding: 0;
}
#hero {
font-size: 7em;
line-height: 0.85;
@ -21,14 +39,6 @@
transition-property: opacity;
}
html.wf-loading #hero {
opacity: 0;
}
html.wf-active #hero {
}
#hero-titles {
width: 100%;
height: 100%;
@ -43,14 +53,16 @@ html.wf-active #hero {
text-align: center;
}
#viewport-portal {
width: 95dvw;
height: 101dvh;
vertical-align: middle;
align-content: center;
margin: 0;
padding: 0;
#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;
}
#certifications-page {
@ -71,18 +83,6 @@ html.wf-active #hero {
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 {
/* opacity: 0%;
visibility: hidden; */
@ -91,73 +91,3 @@ html.wf-active #hero {
padding: 10px;
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;
}

View file

@ -15,20 +15,27 @@
<meta property="og:description" content="Profile page of Nathan Peckham">
<meta property="og:url" content="https://profile.kn8design.com">
<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/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/scripts.js"></script>
</head>
<body class="body-class">
<body>
<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-titles" class="playfair-display-400">&nbsp;</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 id="certifications-page">
<div id="certifications-title" class="josefin-slab-500">Certifications</div>

View file

@ -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({
google: {
families: ['Oswald', 'Josefin Slab', 'Playfair Display', 'Sedan SC', 'Material Symbols Outlined']

View file

@ -15,10 +15,9 @@ const hero_title_rotator = () => {
window.onload = function(){
console.debug("DOM Loaded");
setInterval(hero_title_rotator, HERO_TITLE_INTERVAL);
window.onscroll = clearArrowHint;
};
window.onscroll = clearArrowHint;
function clearArrowHint() {
console.debug("Clearing Arrow Hint");
var arrow_hint = document.getElementById("arrow-hint");