Skip to content

Commit

Permalink
💪 Final Changes!
Browse files Browse the repository at this point in the history
+ Audio Player
+ Credits Fixes
+ Navbar Fixes
+ Links Check Fixes
+ Scroll Animations!
  • Loading branch information
KingPr0o7 committed Mar 6, 2023
1 parent 09ac765 commit 490e99b
Show file tree
Hide file tree
Showing 21 changed files with 343 additions and 135 deletions.
File renamed without changes
Binary file added images/graphics/britannica-favicon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
1 change: 1 addition & 0 deletions images/icons/pause.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions images/icons/play.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
190 changes: 144 additions & 46 deletions index.css
Original file line number Diff line number Diff line change
Expand Up @@ -20,24 +20,39 @@ a {
text-decoration: none;
}

.hidden {
opacity: 0;
transition: opacity 2s;
}

.show {
opacity: 1;
}

/* */
/* Navigation Bar */
/* */

#navbar[deactivated], #navbar[activated] {
#navbar {
display: none;
}

#navbar[activated] {
padding: 25px;
color: white;
backdrop-filter: blur(10px);
-webkit-backdrop-filter: blur(10px);
height: 75px;
display: flex;
width: 100%;
position: fixed;
top: 0;
position: sticky;
font-family: 'Charm', cursive;
font-size: clamp(0.8rem, 2vw, 1.4rem);
align-items: center;
justify-content: space-between;
opacity: 0;
transition: all 400ms ease-in-out;
transition: opacity 400ms ease-in-out;
}

#navbar[activated] {
Expand Down Expand Up @@ -69,7 +84,9 @@ a {
text-align: center;
}

/* Content */
/* */
/* Scroll Containment */
/* */

#scroll-wrapper {
height: 100%;
Expand All @@ -78,7 +95,9 @@ a {
overflow-y: scroll;
}

/* */
/* Landing Page */
/* */

#background {
position: absolute;
Expand All @@ -90,14 +109,8 @@ a {
object-fit: cover;
}

#background[fadeOut] {
animation: backgroundFadeOut 1s ease-in-out forwards;
}


#background[fadeIn] {
animation: backgroundFadeIn 1s ease-in-out forwards;
}
#background[fadeOut] {animation: backgroundFadeOut 1s ease-in-out forwards;}
#background[fadeIn] {animation: backgroundFadeIn 1s ease-in-out forwards;}

@keyframes backgroundFadeOut {
0% {opacity: 100%;}
Expand Down Expand Up @@ -137,7 +150,58 @@ a {
100% {opacity: 1;}
}

/* Overview */
/* */
/* Audio Controls */
/* */

#audio {
display: flex;
align-items: center;
justify-content: space-between;
z-index: 3;
top: calc(100% - 60px);
left: 50%;
transform: translate(-50%);
position: fixed;
width: 250px;
height: 50px;
border-radius: 10px;
background-color: #323232;
padding: 10px;
}

#track-picture {
width: 32px;
height: 32px;
}

#track-details {
display: flex;
align-items: center;
justify-content: center;
gap: 10px;
}

#track-text-info {
display: flex;
justify-content: center;
flex-direction: column;
color: white;
font-family: 'Noto Sans', sans-serif;
font-size: clamp(0.8rem, 2vw, 1rem);
}

#audio-state {
width: 32px;
height: 32px;
}

#audio-state:hover {cursor: pointer;}

/* */
/* Page Setup */
/* */

.section {
min-height: calc(100% - 75px);
width: 100%;
Expand All @@ -153,15 +217,6 @@ a {
font-size: clamp(2.5rem, 5vw, 5rem);
}

#overview-wrapper, #meaning-wrapper {
display: flex;
align-items: center;
justify-content: center;
flex-direction: row;
gap: 25px;
height: 100%;
}

.paragraph-image {
height: auto;
max-width: 40%;
Expand Down Expand Up @@ -193,10 +248,27 @@ a {
font-size: clamp(1rem, 4vw, 2rem);
}

/* */
/* Overview/(Underlying) Meaning Page */
/* */

#overview-wrapper, #meaning-wrapper {
display: flex;
align-items: center;
justify-content: center;
flex-direction: row;
gap: 25px;
height: 100%;
}

#meaning {
padding: 25px;
}

/* */
/* Links Page */
/* */

#links-title {
padding: 0;
}
Expand Down Expand Up @@ -236,28 +308,43 @@ a {
color: gainsboro;
}

.link, .credit-link {
.link {
display: flex;
align-items: center;
justify-content: space-between;
padding: 12px;
width: 50%;
border-radius: 8px;
background-color: #323232;
opacity: 0;
}

.link:nth-child(1) {transition-delay: 100ms;}
.link:nth-child(2) {transition-delay: 200ms;}
.link:nth-child(3) {transition-delay: 300ms;}
.link:nth-child(4) {transition-delay: 400ms;}

.credit-link {
opacity: 1;
display: flex;
align-items: center;
justify-content: space-between;
padding: 12px;
width: 50%;
border-radius: 8px;
background-color: #323232;
}

.link[appear] {
animation: appear 500ms ease-in-out forwards;
}
.credit-link:nth-child(1) {transition-delay: 100ms;}
.credit-link:nth-child(2) {transition-delay: 200ms;}
.credit-link:nth-child(3) {transition-delay: 300ms;}
.credit-link:nth-child(4) {transition-delay: 400ms;}
.credit-link:nth-child(5) {transition-delay: 500ms;}
.credit-link:nth-child(6) {transition-delay: 600ms;}
.credit-link:nth-child(7) {transition-delay: 700ms;}

.link[disappear] {
animation: disappear 500ms ease-in-out forwards;
}

.link[appear] {animation: appear 500ms ease-in-out forwards;}

.link[disappear] {animation: disappear 500ms ease-in-out forwards;}

@keyframes disappear {
0% {opacity: 1;}
Expand Down Expand Up @@ -296,6 +383,12 @@ a {
height: 18px;
}

/* Animations */

/* */
/* Link Modal */
/* */

#link-modal {
width: 50%;
height: 100%;
Expand All @@ -304,13 +397,9 @@ a {
opacity: 0;
}

#link-modal[appear] {
animation: appear 500ms 500ms ease-in-out forwards;
}
#link-modal[appear] {animation: appear 500ms 500ms ease-in-out forwards;}

#link-modal[disappear] {
animation: disappear 500ms ease-in-out forwards;
}
#link-modal[disappear] {animation: disappear 500ms ease-in-out forwards;}

@keyframes appear {
0% {opacity: 0;}
Expand Down Expand Up @@ -371,6 +460,10 @@ a {
font-size: clamp(0.8rem, 4vw, 1rem);
}

/* */
/* Credits Page */
/* */

.credit-favicon {
width: 48px;
height: 48px;
Expand All @@ -383,15 +476,11 @@ a {
gap: 10px;
}

#audio-controls {
position: fixed;
top: 100%;
right: 0%;
width: 200px;
height: 100px;
background-color: wheat;
}
/* */
/* Dynamic Content Awareness */
/* */

/* Phone/Tablet Size */
@media screen and (max-width: 950px) {
#overview-wrapper {
flex-direction: column;
Expand All @@ -413,8 +502,17 @@ a {
}
}

@media screen and (max-width: 501px) {
#navbar-links-left, #navbar-links-right {
display: none;
}
#navbar[deactivated], #navbar[activated] {
justify-content: center;
}
}

@media screen and (max-width: 320px) {
#links-wrapper {
#links-wrapper, #credits-wrapper {
padding: 0 0 0 0;
}
}
Loading

0 comments on commit 490e99b

Please sign in to comment.