dev1/src/components/Dashboard.css
2024-12-30 22:53:42 +00:00

143 lines
2.8 KiB
CSS

/* Dashboard.css */
/* Main Dashboard Layout */
.dashboard {
display: grid;
grid-template-columns: 1fr 2fr; /* Two columns: careers on the left, RIASEC on the right */
gap: 20px;
min-height: 100vh; /* Full height */
padding: 20px;
background-color: #f4f7fa;
}
.dashboard-content {
flex-grow: 1; /* Push acknowledgment to the bottom */
}
/* Sections in Dashboard */
.dashboard section {
background-color: #ffffff;
padding: 15px;
border-radius: 8px;
box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
border-left: 4px solid #6a9fb5;
}
.dashboard section:hover {
transform: translateY(-3px);
box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}
/* Headings */
h2 {
font-size: 1.4rem;
color: #2b4a67;
margin-bottom: 10px;
border-bottom: 1px solid #e0e0e0;
padding-bottom: 4px;
}
/* Career Suggestions Grid */
.career-suggestions-container {
display: flex;
flex-direction: column;
gap: 10px;
}
.career-suggestions-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); /* Flexible grid */
gap: 10px; /* Even spacing */
padding: 10px;
}
.career-button {
padding: 10px;
background-color: #007bff;
color: white;
border: none;
border-radius: 4px;
cursor: pointer;
text-align: center;
white-space: normal; /* Allow wrapping */
}
.career-button:hover {
background-color: #0056b3;
}
/* RIASEC Scores and Descriptions */
.riasec-container {
display: flex;
flex-direction: column;
gap: 20px;
}
.riasec-scores {
padding: 15px;
border-radius: 8px;
background-color: #ffffff;
box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
}
.riasec-descriptions {
padding: 15px;
border-radius: 8px;
background-color: #f1f8ff;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.riasec-descriptions ul {
list-style: none;
padding: 0;
}
.riasec-descriptions li {
margin-bottom: 10px;
line-height: 1.6;
}
.riasec-descriptions strong {
color: #007bff;
}
/* Data Source Acknowledgment */
.data-source-acknowledgment {
grid-column: span 2; /* Make acknowledgment span both columns */
margin-top: 20px;
padding: 10px;
border-top: 1px solid #ccc;
font-size: 12px;
color: #666;
text-align: center;
}
/* Chart Container */
.chart-container {
margin: 20px 0;
max-width: 600px;
margin-left: auto;
margin-right: auto;
}
/* Sign Out Button */
.sign-out-container {
text-align: center;
margin-top: 20px;
}
.sign-out-btn {
padding: 10px 20px;
background-color: #007bff;
color: white;
border: none;
cursor: pointer;
font-size: 1rem;
width: 150px;
}
.sign-out-btn:hover {
background-color: #0056b3;
}