style: Clean up and improve styling

This commit is contained in:
Jose Daniel G. Percy 2025-04-08 03:21:14 +08:00
parent 58f7f09fbd
commit 6c23b77056
3 changed files with 64 additions and 55 deletions

View File

@ -4,6 +4,9 @@
<meta charset="UTF-8"> <meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>LMS Prototype</title> <title>LMS Prototype</title>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap" rel="stylesheet">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css"> <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css">
<link rel="stylesheet" href="/src/style.css"> <link rel="stylesheet" href="/src/style.css">
</head> </head>

View File

@ -12,77 +12,82 @@ body {
margin: 0; margin: 0;
padding: 0; padding: 0;
overflow: hidden; overflow: hidden;
font-family: sans-serif; font-family: 'Roboto', sans-serif;
} }
.login-container { .login-container {
background-image: url('./assets/images.jpg'); /* Replace with your logo path */ background-image: url('./assets/images.jpg');
/* Replace with your logo path */
background-repeat: no-repeat; background-repeat: no-repeat;
background-position: center top; /* Center the logo at the top */ background-position: center top;
background-size: 80x 80px; /* Adjust the size of the logo */ /* Center the logo at the top */
padding-top: 60px; /* Add padding to create space for the logo */ background-size: 80x 80px;
text-align: center; /* Center text and form elements */ /* 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 { .logo {
width: 80px; /* Set the width of the logo */ width: 80px;
height: 80px; /* Set the height of the logo */ /* Set the width of the logo */
border-radius: 50%; /* Make the logo circular */ height: 80px;
background-image: url('./assets/images.jpg'); /* Replace with your logo path */ /* Set the height of the logo */
background-size: cover; /* Cover the entire area */ border-radius: 50%;
margin: 0 auto 20px; /* Center the logo and add space below */ /* Make the logo circular */
} background-image: url('./assets/images.jpg');
/* Replace with your logo path */
.widget-header { background-size: cover;
/* Cover the entire area */
text-align: center; /* Center the text */ margin: 0 auto 20px;
margin-top: 20px; /* Space between logo and header */ /* Center the logo and add space below */
font-size: 24px; /* Adjust font size as needed */
font-weight: bold; /* Make the text bold if desired */
} }
.mb-3 { .mb-3 {
margin-bottom: 15px; /* Space between form groups */ margin-bottom: 15px;
} /* Space between form groups */
.btn {
margin-top: 10px; /* Space above the button */
} }
.scrolling-background { .scrolling-background {
position: fixed; position: fixed;
top: 0; top: 0;
left: 0; left: 0;
width: 100%; width: 100%;
height: 100vh; height: 100vh;
background-image: url('./assets/after-sunset-minimal-4k-zm-3840x2400.jpg'); background-image: url('./assets/after-sunset-minimal-4k-zm-3840x2400.jpg');
background-repeat: repeat-x; background-repeat: repeat-x;
background-size: auto 100%; background-size: auto 100%;
animation: scroll-bg 30s linear infinite; animation: scroll-bg 30s linear infinite;
z-index: -2; z-index: -2;
} }
.logo { .logo {
display: block; display: block;
margin: 0 auto 20px; /* Center the logo and add space below */ margin: 0 auto 20px;
max-width: 100px; /* Adjust the size as needed */ /* Center the logo and add space below */
max-width: 100px;
/* Adjust the size as needed */
} }
@keyframes scroll-bg { @keyframes scroll-bg {
from { from {
background-position: 0 0; background-position: 0 0;
} }
to {
background-position: -100% 0; to {
} background-position: -100% 0;
}
} }
.color-overlay { .color-overlay {
position: fixed; position: fixed;
top: 0; top: 0;
left: 0; left: 0;
width: 100vw; width: 100vw;
height: 100vh; height: 100vh;
background-color: rgba(33, 37, 41, 0.925); background-color: rgba(33, 37, 41, 0.925);
z-index: -1; z-index: -1;
} }
.widget { .widget {
@ -94,6 +99,7 @@ body {
} }
.widget-header { .widget-header {
font-size: 18px;
margin-bottom: 10px; margin-bottom: 10px;
font-weight: bold; font-weight: bold;
} }

View File

@ -7,7 +7,7 @@ export class RegisterWidget extends Widget {
constructor(message?: string) { constructor(message?: string) {
super(); super();
this.message = message || "Please register first.. "; this.message = message || "";
} }
render(): HTMLElement { render(): HTMLElement {