Skip to content

Commit c0ecf0a

Browse files
css
1 parent 2d2699e commit c0ecf0a

File tree

4 files changed

+122
-5
lines changed

4 files changed

+122
-5
lines changed

bg.png

195 KB
Loading

index.html

+19-3
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,24 @@
1010
</head>
1111

1212
<body>
13-
<textarea class="hash" placeholder="kee"></textarea>
14-
<textarea class="txt" placeholder="msg"></textarea>
15-
<textarea class="txtHash" placeholder="msg-hash"></textarea>
13+
<div class="bg bloc">
14+
<div class="double">
15+
<p class="bg">Write the key you want...</p>
16+
<textarea class="bg input hash" placeholder="kee"></textarea>
17+
</div>
18+
<div class="double">
19+
<p class="bg">Write the message you want to encrypt...</p>
20+
<textarea class="bg input txt" placeholder="msg"></textarea>
21+
</div>
22+
<div class="double">
23+
<p class="bg">Write the message you want to decipher...</p>
24+
<textarea class="bg input txtHash" placeholder="msg-hash"></textarea>
25+
</div>
26+
27+
<div class="double">
28+
<a class="bg footer" href="https://rmbi.ch/vital/donation"></a>
29+
<a class="bg footer" href="https://github.com/Vital-Vuillaume">ⓒ 2024 - Vital production</a>
30+
</div>
31+
</div>
1632
</body>
1733
</html>

msg-hash.css

+101
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,107 @@ body {
1313

1414
min-height: 100vh;
1515
color: white;
16+
background-image: url(bg.png);
17+
background-attachment: fixed;
18+
background-position: center;
19+
background-size: cover;
20+
background-repeat: no-repeat;
21+
background-color: black;
22+
font-size: 1.2em;
1623

1724
}
1825

26+
.bloc {
27+
28+
position: absolute;
29+
left: 50%;
30+
top: 50%;
31+
transform: translate(-50%, -50%);
32+
33+
}
34+
35+
.bg {
36+
37+
background-color: rgba(255, 255, 255, 0.25);
38+
backdrop-filter: blur(15px);
39+
max-width: max-content;
40+
padding: 10px;
41+
border-radius: 10px;
42+
color: white;
43+
44+
}
45+
46+
.double {
47+
48+
display: flex;
49+
justify-content:space-between;
50+
gap: 30px;
51+
margin: 20px;
52+
align-items: center;
53+
54+
}
55+
56+
.input {
57+
58+
resize: none;
59+
border: none;
60+
height: 70px;
61+
transition: 1.5s;
62+
63+
}
64+
65+
.input:focus {
66+
67+
outline: none;
68+
box-shadow: inset 0 0 0 2px rgb(240, 242, 252);
69+
background-color: rgba(99, 78, 174, 0.301);
70+
71+
}
72+
73+
.input:-moz-placeholder {
74+
75+
color: white;
76+
77+
}
78+
79+
.input::placeholder {
80+
81+
color: white;
82+
83+
}
84+
85+
.footer {
86+
87+
text-decoration: none;
88+
font-size: 0.9em;
89+
90+
}
91+
92+
@media screen and (max-width: 750px) {
93+
94+
.bloc {
95+
96+
width: 90%;
97+
98+
}
99+
100+
.double {
101+
102+
flex-direction: column;
103+
104+
}
105+
106+
.double:last-child {
107+
108+
flex-direction: row;
109+
110+
}
111+
112+
.input {
113+
114+
height: 150px;
115+
font-size: 1.5em;
116+
117+
}
118+
119+
}

msg-hash.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,12 @@ txt.addEventListener("input", function() {
2828
try {
2929
let encrypted = encryptDecrypt(txt.value, hashValue);
3030
txtHash.value = btoa(encrypted);
31-
} catch (error) {}
31+
} catch {}
3232
});
3333

3434
txtHash.addEventListener("input", function() {
3535
try {
3636
let decrypted = atob(txtHash.value);
3737
txt.value = encryptDecrypt(decrypted, hashValue);
38-
} catch (error) {}
38+
} catch {}
3939
});

0 commit comments

Comments
 (0)