Skip to content

Commit ef682ec

Browse files
fix: mettre à jour l'environnement en production et améliorer le style du bouton de soumission
1 parent 4354321 commit ef682ec

File tree

2 files changed

+30
-3
lines changed

2 files changed

+30
-3
lines changed

client/web/index.html

Lines changed: 29 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<!DOCTYPE html>
22
<html lang="en">
33
<head>
4-
<meta name="environment" content="local" />
4+
<meta name="environment" content="production" />
55
<meta charset="UTF-8" />
66
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
77
<title>Pastebin</title>
@@ -11,13 +11,18 @@
1111
--text-color: black;
1212
--button-bg: #007bff;
1313
--button-hover: #0056b3;
14+
--submit-bg: #007bff; /* Blue color for Submit (default) */
15+
--submit-hover: #0056b3; /* Darker blue for hover */
16+
--font-size: 16px;
1417
}
1518

1619
body.dark-mode {
1720
--bg-color: #121212;
1821
--text-color: #ffffff;
1922
--button-bg: #ff9800;
2023
--button-hover: #e68900;
24+
--submit-bg: #ff9800; /* Dark mode submit color */
25+
--submit-hover: #e68900;
2126
}
2227

2328
body {
@@ -82,6 +87,28 @@
8287
#toggleModeButton:hover {
8388
background-color: var(--button-hover);
8489
}
90+
91+
/* Submit Button Styling */
92+
button {
93+
font-size: 18px;
94+
padding: 12px 20px;
95+
margin-top: 10px;
96+
background-color: var(--submit-bg);
97+
color: white;
98+
border: none;
99+
border-radius: 8px;
100+
cursor: pointer;
101+
transition: background-color 0.3s ease, transform 0.2s ease;
102+
}
103+
104+
button:hover {
105+
background-color: var(--submit-hover);
106+
transform: scale(1.05);
107+
}
108+
109+
button:active {
110+
transform: scale(1);
111+
}
85112
</style>
86113
</head>
87114
<body>
@@ -98,6 +125,6 @@ <h1>Pastebin</h1>
98125
<div id="responseContainer"></div>
99126
<h2>latest pastes</h2>
100127
<div id="latestPasteUrls"></div>
101-
<script src="script.js"></script>
128+
<script src="pastebinscript.js"></script>
102129
</body>
103130
</html>

client/web/script.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ async function submitText() {
2424
let content;
2525
if (textData) {
2626
content = textData;
27-
console.log(`content: {content}`);
2827
} else {
2928
alert("Please enter text to be saved");
3029
return;
@@ -139,4 +138,5 @@ window.onload = function () {
139138
} else {
140139
document.getElementById("toggleModeButton").innerHTML = "🌙";
141140
}
141+
document.getElementById("pasteContent").focus();
142142
};

0 commit comments

Comments
 (0)