Skip to content

Commit

Permalink
feat: add darkening and blur at the preview
Browse files Browse the repository at this point in the history
  • Loading branch information
haxgun committed Oct 30, 2023
1 parent 4efc839 commit c4a1e82
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
Binary file removed public/img/bg.png
Binary file not shown.
Binary file added public/img/previews/sunset.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
15 changes: 13 additions & 2 deletions src/scss/main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -417,14 +417,24 @@ input.nickname {
}
.preview {
flex: 1;
background-image: url("/img/bg.png");
background-color: $background-color_9;
background-image: url("/img/previews/sunset.png");
background-color: $background-color_6;
width: 100%;
height: 100%;
background-position: center;
background-repeat: no-repeat;
background-size: cover;
position: relative;
&::after {
content: "";
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: rgba(0,0,0,.5);
backdrop-filter: blur(10px);
}
}
.generate {
display: flex;
Expand Down Expand Up @@ -453,6 +463,7 @@ input.nickname {
right: 0;
top: 0;
bottom: 0;
z-index: 1;
}
.colorpicker {
appearance: none;
Expand Down

0 comments on commit c4a1e82

Please sign in to comment.