From 5d35eec1d828d7224c27436a90bc59aa2aaa0c4a Mon Sep 17 00:00:00 2001 From: Isaak Date: Fri, 22 Dec 2023 01:24:45 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=A8=E2=9C=A8=20Handle=20submit=20butto?= =?UTF-8?q?n=20errors=20and=20update=20styles?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Enhanced the UI with improved padding, line-height, container box shadow, text alignment, and button hover effects. Integrated error handling for the submit button to display HTTP request errors effectively. Corrected script tag indentation. --- index.html | 112 +++++++++++++++++++++++++++++------------------------ 1 file changed, 61 insertions(+), 51 deletions(-) diff --git a/index.html b/index.html index 151b058..a1a794b 100644 --- a/index.html +++ b/index.html @@ -14,6 +14,7 @@ padding: 20px; line-height: 1.6; } + .container { max-width: 800px; margin: auto; @@ -23,6 +24,7 @@ box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); text-align: center; } + .button { background-color: #007bff; color: #fff; @@ -34,9 +36,11 @@ transition: background-color 0.3s; font-weight: 500; } + .button:hover { background-color: #0056b3; } + textarea { width: 100%; padding: 10px; @@ -45,64 +49,70 @@ margin-top: 10px; } - + -
-
- - -
-
- + loadData(); +