From 6c23b7705648e91ec9e2c45770c0389f78e8a5c2 Mon Sep 17 00:00:00 2001 From: aki Date: Tue, 8 Apr 2025 03:21:14 +0800 Subject: [PATCH] style: Clean up and improve styling --- index.html | 3 + src/style.css | 114 ++++++++++++++++++---------------- src/widgets/RegisterWidget.ts | 2 +- 3 files changed, 64 insertions(+), 55 deletions(-) diff --git a/index.html b/index.html index 7df5f36..e39bcea 100644 --- a/index.html +++ b/index.html @@ -4,6 +4,9 @@ LMS Prototype + + + diff --git a/src/style.css b/src/style.css index 2b8606e..92bfd20 100644 --- a/src/style.css +++ b/src/style.css @@ -12,77 +12,82 @@ body { margin: 0; padding: 0; overflow: hidden; - font-family: sans-serif; -} -.login-container { - background-image: url('./assets/images.jpg'); /* Replace with your logo path */ - background-repeat: no-repeat; - background-position: center top; /* Center the logo at the top */ - background-size: 80x 80px; /* Adjust the size of the logo */ - padding-top: 60px; /* Add padding to create space for the logo */ - text-align: center; /* Center text and form elements */ -} -.logo { - width: 80px; /* Set the width of the logo */ - height: 80px; /* Set the height of the logo */ - border-radius: 50%; /* Make the logo circular */ - background-image: url('./assets/images.jpg'); /* Replace with your logo path */ - background-size: cover; /* Cover the entire area */ - margin: 0 auto 20px; /* Center the logo and add space below */ + font-family: 'Roboto', sans-serif; } -.widget-header { - - text-align: center; /* Center the text */ - margin-top: 20px; /* Space between logo and header */ - font-size: 24px; /* Adjust font size as needed */ - font-weight: bold; /* Make the text bold if desired */ - +.login-container { + background-image: url('./assets/images.jpg'); + /* Replace with your logo path */ + background-repeat: no-repeat; + background-position: center top; + /* Center the logo at the top */ + background-size: 80x 80px; + /* Adjust the size of the logo */ + padding-top: 60px; + /* Add padding to create space for the logo */ + text-align: center; + /* Center text and form elements */ +} + +.logo { + width: 80px; + /* Set the width of the logo */ + height: 80px; + /* Set the height of the logo */ + border-radius: 50%; + /* Make the logo circular */ + background-image: url('./assets/images.jpg'); + /* Replace with your logo path */ + background-size: cover; + /* Cover the entire area */ + margin: 0 auto 20px; + /* Center the logo and add space below */ } .mb-3 { - margin-bottom: 15px; /* Space between form groups */ -} - -.btn { - margin-top: 10px; /* Space above the button */ + margin-bottom: 15px; + /* Space between form groups */ } .scrolling-background { - position: fixed; - top: 0; - left: 0; - width: 100%; - height: 100vh; - background-image: url('./assets/after-sunset-minimal-4k-zm-3840x2400.jpg'); - background-repeat: repeat-x; - background-size: auto 100%; - animation: scroll-bg 30s linear infinite; - z-index: -2; + position: fixed; + top: 0; + left: 0; + width: 100%; + height: 100vh; + background-image: url('./assets/after-sunset-minimal-4k-zm-3840x2400.jpg'); + background-repeat: repeat-x; + background-size: auto 100%; + animation: scroll-bg 30s linear infinite; + z-index: -2; } + .logo { display: block; - margin: 0 auto 20px; /* Center the logo and add space below */ - max-width: 100px; /* Adjust the size as needed */ + margin: 0 auto 20px; + /* Center the logo and add space below */ + max-width: 100px; + /* Adjust the size as needed */ } @keyframes scroll-bg { - from { - background-position: 0 0; - } - to { - background-position: -100% 0; - } + from { + background-position: 0 0; + } + + to { + background-position: -100% 0; + } } .color-overlay { - position: fixed; - top: 0; - left: 0; - width: 100vw; - height: 100vh; - background-color: rgba(33, 37, 41, 0.925); - z-index: -1; + position: fixed; + top: 0; + left: 0; + width: 100vw; + height: 100vh; + background-color: rgba(33, 37, 41, 0.925); + z-index: -1; } .widget { @@ -94,6 +99,7 @@ body { } .widget-header { + font-size: 18px; margin-bottom: 10px; font-weight: bold; } diff --git a/src/widgets/RegisterWidget.ts b/src/widgets/RegisterWidget.ts index 05715f0..8441c5c 100644 --- a/src/widgets/RegisterWidget.ts +++ b/src/widgets/RegisterWidget.ts @@ -7,7 +7,7 @@ export class RegisterWidget extends Widget { constructor(message?: string) { super(); - this.message = message || "Please register first.. "; + this.message = message || ""; } render(): HTMLElement {