Skip to content

Commit

Permalink
💄 Style: update fireblog ui
Browse files Browse the repository at this point in the history
  • Loading branch information
Sye0w committed Oct 4, 2024
1 parent 63a2d94 commit a28af9a
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 29 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@
}

h2 {
@include shine-effect;
@include title-text;
text-align: center;
color: $blueviolet;
Expand Down
29 changes: 0 additions & 29 deletions src/app/views/auth/auth/auth.component.scss
Original file line number Diff line number Diff line change
@@ -1,37 +1,8 @@
@use '../../../../partials/_variables.scss' as *;
@use '../../../../partials/mixins' as *;

// Shine effect mixin
@mixin shine-effect {
position: relative;
overflow: hidden;

&::after {
content: '';
position: absolute;
top: -50%;
left: -50%;
width: 200%;
height: 200%;
background: linear-gradient(
to right,
rgba(255, 255, 255, 0) 0%,
rgba(255, 255, 255, 0.3) 50%,
rgba(255, 255, 255, 0) 100%
);
transform: rotate(30deg);
animation: shine 3s infinite linear;
}
}

@keyframes shine {
0% {
transform: translateX(-100%) rotate(30deg);
}
100% {
transform: translateX(100%) rotate(30deg);
}
}

main {
height: 100%;
Expand Down
30 changes: 30 additions & 0 deletions src/partials/_mixins.scss
Original file line number Diff line number Diff line change
Expand Up @@ -123,3 +123,33 @@
}
}

@mixin shine-effect {
position: relative;
overflow: hidden;

&::after {
content: '';
position: absolute;
top: -50%;
left: -50%;
width: 200%;
height: 200%;
background: linear-gradient(
to right,
rgba(255, 255, 255, 0) 0%,
rgba(255, 255, 255, 0.3) 50%,
rgba(255, 255, 255, 0) 100%
);
transform: rotate(30deg);
animation: shine 3s infinite linear;
}
}

@keyframes shine {
0% {
transform: translateX(-100%) rotate(30deg);
}
100% {
transform: translateX(100%) rotate(30deg);
}
}

0 comments on commit a28af9a

Please sign in to comment.