Redesign frontend
This commit is contained in:
2 files changed
+34
-100
No files matched your search
@@ -2,7 +2,7 @@
|
|||||||
"$schema": "https://schema.tauri.app/config/2",
|
"$schema": "https://schema.tauri.app/config/2",
|
||||||
"productName": "Password Generator",
|
"productName": "Password Generator",
|
||||||
"version": "1.0.1",
|
"version": "1.0.1",
|
||||||
"identifier": "xyz.lncvrt.password-generator.app",
|
"identifier": "xyz.lncvrt.passwordgenerator",
|
||||||
"build": {
|
"build": {
|
||||||
"beforeDevCommand": "bun run dev",
|
"beforeDevCommand": "bun run dev",
|
||||||
"devUrl": "http://localhost:5173",
|
"devUrl": "http://localhost:5173",
|
||||||
@@ -13,10 +13,10 @@
|
|||||||
"windows": [
|
"windows": [
|
||||||
{
|
{
|
||||||
"title": "Password Generator",
|
"title": "Password Generator",
|
||||||
"width": 580,
|
"width": 400,
|
||||||
"height": 580,
|
"height": 600,
|
||||||
"resizable": false,
|
"minWidth": 400,
|
||||||
"maximizable": false
|
"minHeight": 600
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"security": {
|
"security": {
|
||||||
|
|||||||
+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 max-w-none max-h-none w-[calc(100vw-32px)] h-[calc(100vh-32px)] bg-(--col1) border border-(--col3) p-4 rounded-lg overflow-auto;
|
||||||
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 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-full;
|
||||||
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 select-text;
|
||||||
display: flex;
|
|
||||||
flex-direction: column;
|
|
||||||
align-items: center;
|
|
||||||
justify-content: center;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.password-display {
|
.password-display {
|
||||||
font-size: 1.2rem;
|
@apply w-full mb-2 p-2 bg-(--col3) border border-(--col5) rounded-lg wrap-break-word text-sm;
|
||||||
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