style: Clean up and improve styling
This commit is contained in:
parent
58f7f09fbd
commit
6c23b77056
@ -4,6 +4,9 @@
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<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="/src/style.css">
|
||||
</head>
|
||||
|
||||
114
src/style.css
114
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;
|
||||
}
|
||||
|
||||
@ -7,7 +7,7 @@ export class RegisterWidget extends Widget {
|
||||
|
||||
constructor(message?: string) {
|
||||
super();
|
||||
this.message = message || "Please register first.. ";
|
||||
this.message = message || "";
|
||||
}
|
||||
|
||||
render(): HTMLElement {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user