From 8fb9d2d5376e6cb19cf277b9fdfc200d84bda2d6 Mon Sep 17 00:00:00 2001 From: mrdog233o5 Date: Thu, 11 Apr 2024 21:32:09 +0800 Subject: added styles for website --- website/index.html | 13 ++++++----- website/main.js | 9 ++++---- website/style.css | 63 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 76 insertions(+), 9 deletions(-) (limited to 'website') diff --git a/website/index.html b/website/index.html index 89c3538..7fdbf3b 100644 --- a/website/index.html +++ b/website/index.html @@ -4,12 +4,15 @@ - Apple comverter + + Apple converter -

apple option key convertor

- -

- +

apple converter

+
+ + +
+ ˘ ?¿ - `.split("\n"); + +\n\n`.split("\n"); function convert(input, mode) { input = input.split(""); @@ -136,8 +137,8 @@ function autoConvert() { window.requestAnimationFrame(autoConvert); } -copyBtn.onclick = event => { - navigator.clipboard.writeText(output.innerText); -} +copyBtn.addEventListener("click", (event) => { + navigator.clipboard.writeText(output.value); +}); autoConvert(); \ No newline at end of file diff --git a/website/style.css b/website/style.css index e69de29..7b8b37a 100644 --- a/website/style.css +++ b/website/style.css @@ -0,0 +1,63 @@ +* { + margin: 0; + padding: 0; + font-family: "SF Pro Text", "Myriad Set Pro", "SF Pro Icons", "Helvetica Neue", Helvetica, Arial, sans-serif; + font-weight: normal; + color: #A3A3A3; +} + +h1 { + text-align: center; +} + +body { + background: #181A1B; + padding: 10px; +} + +.textareaContainer { + position: relative; + display: flex; + gap: 10px; + margin: 10px 0px; + height: 60vw; +} + +textarea { + width: 100%; + border: none; + border-radius: 15px; + padding: 20px; + font-size: 20px; +} + +textarea:focus { + outline: none; +} + +#input { + resize: none; + background: #141414; + border: #181A1B 1px solid; +} + +#output { + resize: none; + background: #1E2021; +} + +#copyBtn { + background: #141414; + border: #181A1B 1px solid; + padding: 10px; + border-radius: 100em; + transition: all 0.3s; +} + +#copyBtn:focus { + outline: none; +} + +#copyBtn:hover { + background: #1E2021; +} \ No newline at end of file -- cgit v1.2.3