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

Create Splash Screen #60

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
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
59 changes: 59 additions & 0 deletions public/css/splash.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
@import url('https://fonts.googleapis.com/css?family=Staatliches');
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Importing fonts in CSS isn't a good option ;)


body {
margin: 0;
font-family: 'Staatliches', cursive;
}

.loader {
position: fixed;
left: 0;
top: 0;
background: #e6e2dd;
width: 100%;
height: 100vh;
animation: backgroundChange .5s linear 3.5s forwards;
}

.load-text {
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
position: absolute;
font-size: 10vmax;
width: fit-content;
display: flex;
animation: colorChange .5s linear 3.5s forwards;
}

.loaded-text {
transform: scale(1.5);
animation: scaleText .5s linear 1s forwards;
}

.loading-text {
width: 0;
color: #d48369;
overflow: hidden;
animation: expand .5s linear 2s forwards;
}

@keyframes scaleText {
from {transform: scale(1.5)}
to {transform: scale(1)}
}

@keyframes expand {
from {width: 0;}
to {width: 35vmax;}
}

@keyframes backgroundChange {
from {background-color: #e6e2dd}
to {background-color: #373a36}
}

@keyframes colorChange {
from {color: #373a36}
to {color: #e6e2dd}
}
19 changes: 19 additions & 0 deletions views/splash.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta charset="utf-8">
<title>Splash Screen</title>
<link rel="stylesheet" href="splash.css">
</head>

<body>
<div class="loader">
<div class="load-text">
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think <p> tag will be better here

<div class="loaded-text">ONE</div>
<div class="loading-text">STOPHELP</div>
</div>
</div>

</body>

</html>