Skip to content

Commit

Permalink
class names changed
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxWolts committed Oct 31, 2022
1 parent 87a33b7 commit e909f3e
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 36 deletions.
26 changes: 13 additions & 13 deletions src/components/maxwolts/PasswordGenerator.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,9 @@ export const PasswordGenerator = () => {
}, [classAnimation, classAnimationCopy])

return (
<main className='maxwolts-panda-pass'>
<div className='panda-pass'>
<div className='panda-pass-section-selector'>
<main className='maxwolts-panda-pass-main'>
<div className='maxwolts-panda-pass'>
<div className='maxwolts-panda-pass-section-selector'>
<button
onClick={() => {
changeSecction(false)
Expand Down Expand Up @@ -121,22 +121,22 @@ export const PasswordGenerator = () => {
</div>
</div>
<div className='maxwolts-result'>
<div className='maxwolts-panda-face'>
<div className='maxwolts-panda'>
<div className='maxwolts-panda-content'>
<div
className={`panda-face ${classAnimationCopy ? 'panda-rotate-head-animation' : ''} ${
classAnimation ? 'maxwolts-panda-animation-face-front' : ''
}`}
className={`maxwolts-panda-face ${
classAnimationCopy ? 'maxwolts-panda-rotate-head-animation' : ''
} ${classAnimation ? 'maxwolts-panda-animation-face-front' : ''}`}
>
<div className='panda-eyes'>
<div className='panda-eye-left'></div>
<div className='panda-eye-right'></div>
<div className='maxwolts-panda-eyes'>
<div className='maxwolts-panda-eye-left'></div>
<div className='maxwolts-panda-eye-right'></div>
</div>
<div className='panda-nose'></div>
<div className='maxwolts-panda-nose'></div>
</div>
<div
className={`panda-sign ${
classAnimationCopy ? 'panda-sign-activate-animation' : ''
className={`maxwolts-panda-sign ${
classAnimationCopy ? 'maxwolts-panda-sign-activate-animation' : ''
}`}
>
<p>{password ? 'Copied' : 'add word/s'}</p>
Expand Down
44 changes: 21 additions & 23 deletions src/components/maxwolts/style.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.maxwolts-panda-pass {
.maxwolts-panda-pass-main {
display: flex;
flex-direction: column;
align-items: center;
Expand All @@ -9,7 +9,7 @@
font-size: 22px;
}

.panda-pass {
.maxwolts-panda-pass {
position: relative;
width: 100vw;
min-width: 300px;
Expand All @@ -21,7 +21,7 @@
overflow: hidden;
}

.panda-pass-section-selector button {
.maxwolts-panda-pass-section-selector button {
width: 50%;
font-size: 22px;
padding: 10px;
Expand Down Expand Up @@ -59,8 +59,6 @@
transform-style: preserve-3d;
transform-origin: bottom;
transition: transform 1s;

/* transform: rotateX(90deg); */
}

.maxwolts-result-content input {
Expand Down Expand Up @@ -168,7 +166,7 @@
color: #f9f9f9;
}

.maxwolts-panda-face {
.maxwolts-panda {
position: absolute;
bottom: 0.7%;
height: 100%;
Expand All @@ -184,10 +182,10 @@
}

.maxwolts-panda-animation-face-front {
animation: panda-animation-face-front 2s linear;
animation: maxwolts-panda-animation-face-front 2s linear;
}

@keyframes panda-animation-face-front {
@keyframes maxwolts-panda-animation-face-front {
40% {
transform: rotateX(-40deg);
}
Expand All @@ -201,7 +199,7 @@
}
}

.panda-face {
.maxwolts-panda-face {
height: 180px;
width: 180px;
background-color: #f9f9f9;
Expand All @@ -210,8 +208,8 @@
transition: transform 0.5s;
}

.panda-face::before,
.panda-face::after {
.maxwolts-panda-face::before,
.maxwolts-panda-face::after {
content: '';
position: absolute;
top: 5%;
Expand All @@ -221,15 +219,15 @@
border-radius: 50%;
}

.panda-face::after {
.maxwolts-panda-face::after {
right: -50px;
}

.panda-face::before {
.maxwolts-panda-face::before {
left: -50px;
}

.panda-eyes {
.maxwolts-panda-eyes {
position: absolute;
display: flex;
justify-content: space-between;
Expand All @@ -239,16 +237,16 @@
transform: translate(-50%, 0);
}

.panda-eye-left,
.panda-eye-right {
.maxwolts-panda-eye-left,
.maxwolts-panda-eye-right {
position: relative;
height: 49px;
width: 34px;
background-color: #161616;
border-radius: 50%;
}

.panda-nose {
.maxwolts-panda-nose {
position: absolute;
top: 60%;
left: 50%;
Expand All @@ -260,7 +258,7 @@
border-color: #161616 transparent transparent;
}

.panda-sign {
.maxwolts-panda-sign {
z-index: 1;
position: absolute;
top: 50%;
Expand All @@ -277,11 +275,11 @@
text-align: center;
}

.panda-sign-activate-animation {
animation: animation-panda-sign 3s linear;
.maxwolts-panda-sign-activate-animation {
animation: maxwolts-animation-panda-sign 3s linear;
}

.panda-sign::before {
.maxwolts-panda-sign::before {
z-index: 0;
content: '';
position: absolute;
Expand All @@ -291,7 +289,7 @@
background-color: burlywood;
}

@keyframes animation-panda-sign {
@keyframes maxwolts-animation-panda-sign {
20% {
transform: translate(0%, -50%) rotateX(0deg);
}
Expand All @@ -305,7 +303,7 @@
}
}

.panda-rotate-head-animation {
.maxwolts-panda-rotate-head-animation {
transform: rotateZ(-10deg);
transition: transform 1s;
}
Expand Down

0 comments on commit e909f3e

Please sign in to comment.