Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

updated standard home page #76

Merged
merged 1 commit into from
Oct 13, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 14 additions & 19 deletions common.css
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@
/* Variables */
:root,
::backdrop {
--main-color-nav-text: #333;
--main-color-nav-text: #222;
--main-color-nav-bg: #eee;
--main-color-nav-button-bg: #ccc;
--main-color-nav-border: #a3e;
--main-color-nav-button-border: #b9d;
--main-color-bg: #ccc;
--main-color-text: #333;
--main-color-bg: #ddd;
--main-color-text: #222;
--dialog-color-backdrop: rgb(100 100 100 / 70%);
--main-a-link-color: #488948;
--main-a-hover-color: #319131;
Expand All @@ -25,7 +25,7 @@
--high-readability-font: "Lexend Deca", sans-serif;
--print-readability-font: "Gentium Book Basic", serif;
--handwritten-font: "Sam Handwritten A", sans-serif;
--main-font-headers: var(--handwritten-font);
--main-font-headers: var(--high-readability-font);
--main-font-body: var(--high-readability-font);
--main-font-size: 10pt;
--top-nav-height: 0;
Expand Down Expand Up @@ -59,12 +59,12 @@
@media screen and (prefers-color-scheme: dark) {
:root,
::backdrop {
--main-color-nav-text: #ccc;
--main-color-nav-bg: #222;
--main-color-nav-text: #ddd;
--main-color-nav-bg: #111;
--main-color-nav-button-bg: #343343;
--main-color-nav-button-border: #435;
--main-color-bg: #333;
--main-color-text: #ccc;
--main-color-bg: #222;
--main-color-text: #ddd;
--dialog-color-backdrop: rgb(0 0 0 / 70%);
}
}
Expand Down Expand Up @@ -173,6 +173,12 @@
transform: scale(1);
}
}

@keyframes bouncing {
0% { transform: translateY(0);}
50% { transform: translateY(5px); }
100% { transform: translateY(0); }
}
}

/* Styles */
Expand Down Expand Up @@ -298,14 +304,3 @@ together {
white-space: nowrap;
}

hero {
display: block;
margin-top: 3vh;
margin-left: 2rem;
padding: 12px 16px 12px 6px;
font-size: 1.5rem;
}

hero h1 {
font-size: 4rem;
}
Binary file added img/portrait/sam-portrait-steampunk-2023.webp
Binary file not shown.
89 changes: 78 additions & 11 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,30 +11,97 @@
<link rel="icon" type="image/x-icon" href="favicon.ico">
<link rel="stylesheet" href="common.css">
<script src="//unpkg.com/@ungap/custom-elements/es.js"></script> <!-- Safari polyfill -->
<style>
body {
padding-top: 0;
}

hero {
display: block;
font-size: 1.5rem;
margin: 0;
margin-bottom: 4px;
width: 100%;
overflow: hidden;
aspect-ratio: 2;

font-size: 5vw;
color: hsl(77, 100%, 80%);
text-shadow: 2px -2px 6px hsl(215, 100%, 20%),
-2px 2px 6px hsl(215, 100%, 20%);

background-size: 120%;
background-repeat: no-repeat;
background-position-y: 8%;
background-position-x: left;

& p {
padding-left: 0.5em;
}
& p:last-of-type {
margin-bottom: 0;
}

& .bouncing {
width: fit-content;
animation: bouncing 500ms infinite 1s ease;
position: relative;
z-index: 0;

&::after {
content: '';
display: block;
position: absolute;
top: 0;
left: 3em;
z-index: 1;
width: 0;
height: 0;
border-style: solid;
border-width: 0.25em 0.35em 0 0.35em;
border-color: var(--main-color-text) transparent transparent transparent;
}
}
}

main {
display: flex;
flex-direction: row;
justify-content: space-evenly;
font-size: 1.5rem;

& > div {
margin: 0.25em;
}
}
</style>
</head>

<body>
<nav-header></nav-header>
<main id="main" class="page-fade">
<hero>
<p>
Here's the current test pages:
</p>
<body class="page-fade">
<hero style="background-image: url('img/portrait/sam-portrait-steampunk-2023.webp');">
<p>Sam.<br>Techy and Creative.</p>
<p>This is his portfolio,<br>a small showcase.</p>
<p>Take a look.</p>
<div class="bouncing"></div>
</hero>
<main>
<div>
<h2>Test Pages</h2>
<ul>
<li><a is="fadeout-anchor" href="vr-demo.html">VR Demo</a></li>
<li><a is="fadeout-anchor" href="project-list-view.html">Projects</a></li>
<li><a is="fadeout-anchor" href="drag-n-drop.html">Tarot Card Drag N' Drop</a></li>
<li><a is="fadeout-anchor" href="celestial-test.html">Celestial Body Animations</a></li>
</ul>
<p>
Here's alternate home pages:
</p>
</div>
<div>
<h2>Alter&shy;nate Home Pages</h2>
<ul>
<li><a is="fadeout-anchor" href="home-ala-homestar.html">Flash-Like</a></li>
<li><a is="fadeout-anchor" href="home-lcars.html">Sci-fi</a></li>
<li><a is="fadeout-anchor" href="home-console.html">TV</a></li>
</ul>
</hero>
</div>
</main>
</body>
<script type="module" src="controllers/index.js"></script>
Expand Down
Loading