Files
TestMesa/backend/frontend/static/css/index.css
2024-12-17 13:07:06 -08:00

351 lines
6.3 KiB
CSS

:root {
--black: #050316;
--background: #bbe2c5;
--primary: #7fd781;
--secondary: #eeeed3;
--accent: #ac552a;
--soft-lavender: #a29bfe;
--light-blue: #74b9ff;
}
.ibm-plex-sans-thin {
font-family: "IBM Plex Sans", sans-serif;
font-weight: 100;
font-style: normal;
}
.ibm-plex-sans-extralight {
font-family: "IBM Plex Sans", sans-serif;
font-weight: 200;
font-style: normal;
}
.ibm-plex-sans-light {
font-family: "IBM Plex Sans", sans-serif;
font-weight: 300;
font-style: normal;
}
.ibm-plex-sans-regular {
font-family: "IBM Plex Sans", sans-serif;
font-weight: 400;
font-style: normal;
}
.ibm-plex-sans-medium {
font-family: "IBM Plex Sans", sans-serif;
font-weight: 500;
font-style: normal;
}
.ibm-plex-sans-semibold {
font-family: "IBM Plex Sans", sans-serif;
font-weight: 600;
font-style: normal;
}
.ibm-plex-sans-bold {
font-family: "IBM Plex Sans", sans-serif;
font-weight: 700;
font-style: normal;
}
.ibm-plex-sans-thin-italic {
font-family: "IBM Plex Sans", sans-serif;
font-weight: 100;
font-style: italic;
}
.ibm-plex-sans-extralight-italic {
font-family: "IBM Plex Sans", sans-serif;
font-weight: 200;
font-style: italic;
}
.ibm-plex-sans-light-italic {
font-family: "IBM Plex Sans", sans-serif;
font-weight: 300;
font-style: italic;
}
.ibm-plex-sans-regular-italic {
font-family: "IBM Plex Sans", sans-serif;
font-weight: 400;
font-style: italic;
}
.ibm-plex-sans-medium-italic {
font-family: "IBM Plex Sans", sans-serif;
font-weight: 500;
font-style: italic;
}
.ibm-plex-sans-semibold-italic {
font-family: "IBM Plex Sans", sans-serif;
font-weight: 600;
font-style: italic;
}
.ibm-plex-sans-bold-italic {
font-family: "IBM Plex Sans", sans-serif;
font-weight: 700;
font-style: italic;
}
body {
background-color: var(--background);
background: linear-gradient(to right, var(--soft-lavender), var(--light-blue));
color: #fff;
/* Adjust text color accordingly */
}
.main-logo {
width: 100px;
}
p {
font-family: IBM Plex Sans !important;
}
a {
text-decoration: none;
}
.navbar {
position: fixed;
width: 100%;
}
.login-container {
background-color: #fff;
border-radius: 8px;
max-width: 400px;
width: 100%;
color: black;
margin-top: 10%;
}
/* src/components/HeroSection.css */
.hero-section {
padding: 75px 0;
height: 100vh;
}
.hero-content-container {
margin-top: 10%;
background: #fff;
color: black;
border: 2px solid #fff;
border-radius: 10px;
overflow: hidden;
display: flex;
justify-content: center;
/* Center content horizontally */
align-items: center;
/* Center content vertically */
}
.hero-content {
text-align: left;
max-width: 500px;
padding: 20px;
}
.hero-image {
flex: 1;
}
/* Rest of your styles remain unchanged */
.hero-content button {
font-size: 1.2rem;
padding: 10px 20px;
margin-top: 2em;
margin-left: auto;
/* Adjust the margin as needed */
margin-right: auto;
/* Adjust the margin as needed */
display: block;
/* Make it a block element for auto margins to work */
}
.hero-image-col {
flex: 1;
/* Allow the image to take remaining space */
}
.hero-image {
width: 300px;
}
aside {
position: fixed;
left: 0;
top: 72px;
bottom: 0px;
padding: 10px;
background-color: #212529;
width: 100px;
}
.hub-content {
margin: 0 auto 0 100px;
display: flex;
flex-direction: column;
gap: 15px, 0;
height: 100vh; /* Full viewport height */
overflow: hidden; /* Prevents content from overflowing */
}
@media screen and (max-width: 800px) {
.hub-content {
margin-left: 100px;
}
}
/* General styling for the message bar */
.message-bar {
display: flex;
align-items: center;
padding: 10px;
background-color: #212529;
border-top: 1px solid #23272a;
position: sticky;
bottom: 0;
z-index: 10;
}
/* Input field styling */
.message-input {
flex-grow: 1;
padding: 10px;
margin-right: 10px;
font-size: 16px;
border: 1px solid #40444b;
border-radius: 5px;
background-color: #40444b;
color: white;
outline: none;
}
/* Placeholder color for input */
.message-input::placeholder {
color: #b9bbbe;
}
/* Send button styling */
.send-button {
padding: 10px 15px;
font-size: 16px;
color: white;
background-color: #5865f2; /* Discord-like blue */
border: none;
border-radius: 5px;
cursor: pointer;
transition: background-color 0.2s ease;
}
.send-button:hover {
background-color: #4752c4; /* Darker shade on hover */
}
.send-button:active {
background-color: #3c45a5; /* Even darker shade on click */
}
/* Scrollable messages area */
.hub-messages {
flex-grow: 1; /* Fills remaining space */
overflow-y: auto; /* Makes this section scrollable */
display: flex;
flex-direction: column-reverse;
padding: 15px;
background-color: #36393f; /* Discord-like background */
color: #ffffff; /* Default text color */
}
/* Individual message container */
.message {
display: flex;
flex-direction: column;
padding: 8px 12px;
margin-bottom: 10px;
background-color: #2f3136; /* Slightly darker than background */
border-radius: 5px;
transition: background-color 0.2s ease;
}
/* Hover effect for messages */
.message:hover {
background-color: #3c3f45; /* Highlight on hover */
}
/* User's name styling */
.message-user {
font-weight: bold;
color: #7289da; /* Discord-like blue for usernames */
margin-bottom: 4px; /* Space between username and message */
font-size: 14px;
}
/* Message content styling */
.message-content {
color: #dcddde; /* Subtle off-white for message text */
font-size: 14px;
line-height: 1.4; /* Improve readability */
word-wrap: break-word; /* Handle long messages */
}
/* Scrollbar customization */
.hub-messages::-webkit-scrollbar {
width: 8px;
}
.hub-messages::-webkit-scrollbar-thumb {
background-color: #202225; /* Subtle scrollbar */
border-radius: 4px;
}
.hub-messages::-webkit-scrollbar-thumb:hover {
background-color: #2c2f33; /* Slightly brighter on hover */
}
/* Media queries for responsiveness */
@media (max-width: 600px) {
.hub-messages {
padding: 10px;
}
.message {
padding: 6px 10px;
}
.message-user,
.message-content {
font-size: 13px;
}
}
/* Adjustments for small screens */
@media (max-width: 800px) {
.message-bar {
padding: 8px;
}
.message-input {
font-size: 14px;
}
.send-button {
font-size: 14px;
padding: 8px 12px;
}
}