style: adjust the proto interface
Browse files- src/Home/index.tsx +10 -13
- src/input.css +10 -9
src/Home/index.tsx
CHANGED
@@ -4,19 +4,16 @@ import './style.css'
|
|
4 |
export default function App() {
|
5 |
|
6 |
return (
|
7 |
-
|
8 |
-
<
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
<textarea class="h-64 w-full" readonly />
|
18 |
-
</main>
|
19 |
-
</>
|
20 |
)
|
21 |
}
|
22 |
|
|
|
4 |
export default function App() {
|
5 |
|
6 |
return (
|
7 |
+
<main class="w-screen my-24 mx-5">
|
8 |
+
<div class="w-1/2 p-3 flex justify-end">
|
9 |
+
<button>Translate</button>
|
10 |
+
</div>
|
11 |
+
<section class="flex">
|
12 |
+
{/* amber-500 */}
|
13 |
+
<textarea class="h-64 p-2 w-1/2 bg-zinc-700" placeholder="Insert input text..." />
|
14 |
+
<textarea class="h-64 p-7 w-1/2 text-2xl" placeholder='Translation' readonly />
|
15 |
+
</section>
|
16 |
+
</main>
|
|
|
|
|
|
|
17 |
)
|
18 |
}
|
19 |
|
src/input.css
CHANGED
@@ -24,14 +24,12 @@
|
|
24 |
text-rendering: optimizeLegibility;
|
25 |
-webkit-font-smoothing: antialiased;
|
26 |
-moz-osx-font-smoothing: grayscale;
|
|
|
|
|
27 |
}
|
28 |
|
29 |
-
|
30 |
-
|
31 |
-
display: flex;
|
32 |
-
place-items: center;
|
33 |
-
min-width: 320px;
|
34 |
-
min-height: 100vh;
|
35 |
}
|
36 |
|
37 |
button {
|
@@ -41,14 +39,17 @@ button {
|
|
41 |
font-size: 1em;
|
42 |
font-weight: 500;
|
43 |
font-family: inherit;
|
44 |
-
background-color:
|
45 |
cursor: pointer;
|
46 |
transition: border-color 0.25s;
|
|
|
47 |
}
|
48 |
button:hover {
|
49 |
-
|
50 |
}
|
51 |
button:focus,
|
52 |
button:focus-visible {
|
53 |
-
outline: 4px auto -webkit-focus-ring-color;
|
54 |
}
|
|
|
|
|
|
24 |
text-rendering: optimizeLegibility;
|
25 |
-webkit-font-smoothing: antialiased;
|
26 |
-moz-osx-font-smoothing: grayscale;
|
27 |
+
--primary-color: #f59e0b;
|
28 |
+
--primary-color-alt: #ca8a04;
|
29 |
}
|
30 |
|
31 |
+
textarea {
|
32 |
+
background-color: inherit;
|
|
|
|
|
|
|
|
|
33 |
}
|
34 |
|
35 |
button {
|
|
|
39 |
font-size: 1em;
|
40 |
font-weight: 500;
|
41 |
font-family: inherit;
|
42 |
+
background-color: var(--primary-color);
|
43 |
cursor: pointer;
|
44 |
transition: border-color 0.25s;
|
45 |
+
font-weight: bold;
|
46 |
}
|
47 |
button:hover {
|
48 |
+
background-color: var(--primary-color-alt);
|
49 |
}
|
50 |
button:focus,
|
51 |
button:focus-visible {
|
52 |
+
outline: 0/* 4px auto -webkit-focus-ring-color; */
|
53 |
}
|
54 |
+
|
55 |
+
|