Skip to content

Commit

Permalink
Responsive bg image
Browse files Browse the repository at this point in the history
  • Loading branch information
artemave committed Oct 18, 2023
1 parent 841b6b0 commit 630531f
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 1 deletion.
Binary file modified assets/stars.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/stars_1080.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/stars_2729.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/stars_3840.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 13 additions & 1 deletion styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,26 @@ html {
}

body {
background: black url('./assets/stars.jpg') no-repeat top center fixed;
background: black url('./assets/stars_1080.jpg') no-repeat top center fixed;
background-size: cover;
font-family: 'Pathway Gothic One', sans-serif;
font-weight: 600;
height: 100%;
margin: 0;
}

@media (min-width: 768px) {
body {
background-image: url('./assets/stars_2729.jpg');
}
}

@media (min-width: 1080px) {
body {
background-image: url('./assets/stars_3840.jpg');
}
}

#scene {
position: relative;
height: 100%;
Expand Down

0 comments on commit 630531f

Please sign in to comment.