Redesign frontend
This commit is contained in:
1 file changed
+29
-95
+29
-95
@@ -1,142 +1,76 @@
|
|||||||
@import "tailwindcss";
|
@import "tailwindcss";
|
||||||
|
|
||||||
* {
|
* {
|
||||||
margin: 0;
|
@apply box-border m-0 p-0;
|
||||||
padding: 0;
|
|
||||||
box-sizing: border-box;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
body {
|
body {
|
||||||
|
@apply bg-(--col0) text-white flex justify-center items-center h-screen text-center select-none;
|
||||||
font-family: "Lexend", sans-serif;
|
font-family: "Lexend", sans-serif;
|
||||||
background-color: #1e1e1e;
|
|
||||||
color: #e0e0e0;
|
--col0: rgb(8, 8, 8);
|
||||||
display: flex;
|
--col1: rgb(16, 16, 16);
|
||||||
justify-content: center;
|
--col2: rgb(32, 32, 32);
|
||||||
align-items: center;
|
--col3: rgb(48, 48, 48);
|
||||||
height: 100vh;
|
--col4: rgb(64, 64, 64);
|
||||||
text-align: center;
|
--col5: rgb(80, 80, 80);
|
||||||
user-select: none;
|
--col6: rgb(96, 96, 96);
|
||||||
|
--col7: rgb(112, 112, 112);
|
||||||
|
--col8: rgb(128, 128, 128);
|
||||||
}
|
}
|
||||||
|
|
||||||
.container {
|
.container {
|
||||||
width: 90vw;
|
@apply w-[90vw] h-[90vh] bg-(--col1) border border-(--col3) p-4 rounded-lg;
|
||||||
height: 90vh;
|
|
||||||
padding: 20px;
|
|
||||||
border-radius: 10px;
|
|
||||||
background-color: #2a2a2a;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
h1 {
|
h1 {
|
||||||
font-size: 2.5rem;
|
@apply mb-2;
|
||||||
margin-bottom: 10px;
|
|
||||||
color: #b3b3ff;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
p {
|
p {
|
||||||
font-size: 1rem;
|
@apply text-base mb-4;
|
||||||
margin-bottom: 20px;
|
|
||||||
color: #aaa;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.form {
|
.form {
|
||||||
display: flex;
|
@apply flex flex-col items-center gap-2;
|
||||||
flex-direction: column;
|
|
||||||
align-items: center;
|
|
||||||
gap: 15px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.slider-section {
|
.slider-section {
|
||||||
display: flex;
|
@apply flex flex-col items-center w-full;
|
||||||
flex-direction: column;
|
|
||||||
align-items: center;
|
|
||||||
width: 100%;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#password-length {
|
#password-length {
|
||||||
width: 80vw;
|
@apply w-[80vw];
|
||||||
background: #333;
|
}
|
||||||
border: 2px solid #444;
|
|
||||||
border-radius: 5px;
|
button {
|
||||||
height: 6px;
|
@apply bg-(--col3) hover:bg-(--col5) border border-(--col5) hover:border-(--col7) rounded-lg cursor-pointer transition-colors;
|
||||||
}
|
}
|
||||||
|
|
||||||
.preset-buttons {
|
.preset-buttons {
|
||||||
display: flex;
|
@apply flex gap-2 flex-wrap justify-center;
|
||||||
gap: 10px;
|
|
||||||
flex-wrap: wrap;
|
|
||||||
justify-content: center;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.preset-btn {
|
.preset-btn {
|
||||||
padding: 10px 15px;
|
@apply px-2 py-1;
|
||||||
font-size: 1rem;
|
|
||||||
cursor: pointer;
|
|
||||||
background-color: #6a4cfc;
|
|
||||||
border: none;
|
|
||||||
color: white;
|
|
||||||
border-radius: 5px;
|
|
||||||
transition: background-color 0.3s;
|
|
||||||
}
|
|
||||||
|
|
||||||
.preset-btn:hover {
|
|
||||||
background-color: #7e61ff;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.generate-btn {
|
.generate-btn {
|
||||||
padding: 10px 20px;
|
@apply px-4 py-2;
|
||||||
font-size: 1.2rem;
|
|
||||||
background-color: #6a4cfc;
|
|
||||||
border: none;
|
|
||||||
color: white;
|
|
||||||
border-radius: 5px;
|
|
||||||
cursor: pointer;
|
|
||||||
transition: background-color 0.3s;
|
|
||||||
}
|
|
||||||
|
|
||||||
.generate-btn:hover {
|
|
||||||
background-color: #7e61ff;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.result-section {
|
.result-section {
|
||||||
margin-top: 20px;
|
@apply flex flex-col items-center justify-center mt-2;
|
||||||
display: flex;
|
|
||||||
flex-direction: column;
|
|
||||||
align-items: center;
|
|
||||||
justify-content: center;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.password-display {
|
.password-display {
|
||||||
font-size: 1.2rem;
|
@apply w-[80vw] mb-2 p-2 bg-(--col3) border border-(--col5) rounded-lg wrap-break-word;
|
||||||
word-wrap: break-word;
|
|
||||||
margin-bottom: 10px;
|
|
||||||
background-color: #333;
|
|
||||||
color: #fff;
|
|
||||||
padding: 15px;
|
|
||||||
border-radius: 5px;
|
|
||||||
width: 80vw;
|
|
||||||
margin-bottom: 20px;
|
|
||||||
font-size: 15px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.result-buttons {
|
.result-buttons {
|
||||||
display: flex;
|
@apply flex flex-row gap-2.5 justify-center items-center;
|
||||||
flex-direction: row;
|
|
||||||
gap: 10px;
|
|
||||||
justify-content: center;
|
|
||||||
align-items: center;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.copy-btn {
|
.copy-btn {
|
||||||
padding: 10px 20px;
|
@apply px-4 py-2;
|
||||||
font-size: 1rem;
|
|
||||||
background-color: #6a4cfc;
|
|
||||||
border: none;
|
|
||||||
color: white;
|
|
||||||
border-radius: 5px;
|
|
||||||
cursor: pointer;
|
|
||||||
transition: background-color 0.3s;
|
|
||||||
}
|
|
||||||
|
|
||||||
.copy-btn:hover {
|
|
||||||
background-color: #7e61ff;
|
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user