Skip to content

Commit

Permalink
Merge pull request #9 from axperien/task-21-background
Browse files Browse the repository at this point in the history
Добавлен анимированный звездный фон
  • Loading branch information
axperien authored Jul 12, 2022
2 parents 8cd32f4 + f986b71 commit aa9562f
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 1 deletion.
Binary file added src/assets/images/stars_pattern.png
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 src/assets/styles/abstracts/_variables.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
$glob-color-blue: #0d6efd;
$glob-color-white: #fff;

$glob-text-font-stack: "Ubuntu", "Open Sans", "Helvetica Neue Light",
"Helvetica Neue", "Helvetica", "Arial", sans-serif;
Expand Down
13 changes: 13 additions & 0 deletions src/assets/styles/base/_base.css
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,21 @@ body {

body {
font-family: $glob-text-font-stack;
color: $glob-color-white;
background: #000 url("../images/stars_pattern.png") 50% 0 / 500px auto repeat;
animation: scroll-background 20s linear infinite;
}

a {
text-decoration: none;
}

@keyframes scroll-background {
0% {
background-position: 50% 0;
}

100% {
background-position: 50% 750px;
}
}
2 changes: 1 addition & 1 deletion src/pages/NotFound/NotFound.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const NotFound = () => (
<main className="h-screen w-full flex flex-col justify-center items-center bg-[#1A2238]">
<main className="h-screen w-full flex flex-col justify-center items-center">
<h1 className="text-9xl font-extrabold text-white tracking-widest">404</h1>
<div className="bg-[#FF6A3D] px-2 text-sm rounded rotate-12 absolute">
Page Not Found
Expand Down

0 comments on commit aa9562f

Please sign in to comment.