Aiducation-Edtech-GenAI / static /student_course.css
Neurolingua's picture
Upload 17 files
c17a638 verified
raw
history blame
10.2 kB
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');
:root {
--primary-color: #4e54c8;
--secondary-color: #8f94fb;
--accent-color: #ff6b6b;
--text-color: #333;
--bg-color: #f9f9f9;
}
body {
font-family: 'Poppins', sans-serif;
margin: 0;
padding: 0;
background-color: var(--bg-color);
color: var(--text-color);
line-height: 1.6;
}
.container {
max-width: 1340px;
margin: 0 auto;
padding: 0 20px;
}
header {
background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
padding: 15px 0;
position: sticky;
top: 0;
z-index: 1000;
box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.header-content {
display: flex;
justify-content: space-between;
align-items: center;
}
.logo {
font-size: 28px;
font-weight: 700;
color: #fff;
text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}
.search-bar {
flex-grow: 1;
margin: 0 20px;
position: relative;
}
.search-bar input {
width: 100%;
padding: 12px 20px;
border: none;
border-radius: 30px;
font-size: 16px;
background-color: rgba(255,255,255,0.2);
color: #fff;
transition: all 0.3s ease;
}
.search-bar input::placeholder {
color: rgba(255,255,255,0.7);
}
.search-bar input:focus {
background-color: rgba(255,255,255,0.3);
outline: none;
}
.ai-tools {
position: absolute;
right: 10px;
top: 50%;
transform: translateY(-50%);
}
.ai-tools i {
font-size: 20px;
margin-left: 15px;
cursor: pointer;
color: #fff;
transition: all 0.3s ease;
}
.ai-tools i:hover {
color: var(--accent-color);
transform: scale(1.1);
}
.user-actions {
display: flex;
align-items: center;
}
.points-display {
font-size: 18px;
font-weight: bold;
color: #fff;
margin-right: 20px;
background-color: rgba(255,255,255,0.2);
padding: 5px 15px;
border-radius: 20px;
}
.profile-icon {
width: 40px;
height: 40px;
border-radius: 50%;
background-color: var(--accent-color);
display: flex;
align-items: center;
justify-content: center;
font-weight: bold;
color: #fff;
cursor: pointer;
transition: all 0.3s ease;
}
.profile-icon:hover {
transform: scale(1.1);
}
.nav-bar {
background-color: #fff;
padding: 10px 0;
box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.nav-bar ul {
list-style-type: none;
margin: 0;
padding: 0;
display: flex;
justify-content: center;
}
.nav-bar li {
margin: 0 15px;
}
.nav-bar a {
text-decoration: none;
color: var(--text-color);
font-weight: 600;
transition: all 0.3s ease;
}
.nav-bar a:hover {
color: var(--primary-color);
}
.hero {
background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
padding: 100px 0;
text-align: center;
color: #fff;
position: relative;
overflow: hidden;
}
.hero::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: url('https://source.unsplash.com/random/1600x900?education') no-repeat center center;
background-size: cover;
opacity: 0.1;
z-index: 0;
}
.hero-content {
position: relative;
z-index: 1;
}
.hero h1 {
font-size: 48px;
margin-bottom: 20px;
text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}
.hero p {
font-size: 20px;
margin-bottom: 30px;
text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}
.btn {
display: inline-block;
background-color: var(--accent-color);
color: #fff;
padding: 12px 30px;
text-decoration: none;
font-weight: 600;
border-radius: 30px;
transition: all 0.3s ease;
box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}
.btn:hover {
background-color: #ff4757;
transform: translateY(-3px);
}
.categories, .features, .learning-section {
padding: 60px 0;
background-color: #fff;
margin: 40px 0;
border-radius: 10px;
box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.section-title {
font-size: 32px;
text-align: center;
margin-bottom: 40px;
color: var(--primary-color);
}
.category-list, .feature-grid, .learning-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 30px;
}
.category-item, .feature-card, .learning-item {
background-color: #fff;
border-radius: 10px;
padding: 20px;
text-align: center;
transition: all 0.3s ease;
box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.category-item:hover, .feature-card:hover, .learning-item:hover {
transform: translateY(-10px);
box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}
.feature-card img, .learning-item img {
width: 100%;
height: 180px;
object-fit: cover;
border-radius: 10px;
margin-bottom: 15px;
}
.feature-card h3, .learning-title {
font-size: 20px;
margin: 10px 0;
color: var(--primary-color);
}
.feature-card p, .learning-subtitle {
font-size: 14px;
color: #666;
margin-bottom: 15px;
}
footer {
background-color: #333;
color: #fff;
padding: 40px 0;
}
.footer-content {
display: flex;
justify-content: space-between;
flex-wrap: wrap;
}
.footer-section {
flex: 1;
margin-right: 20px;
}
.footer-section h4 {
font-size: 18px;
margin-bottom: 15px;
color: var(--accent-color);
}
.footer-section ul {
list-style: none;
padding: 0;
}
.footer-section ul li {
margin-bottom: 10px;
}
.footer-section ul li a {
color: #ccc;
text-decoration: none;
transition: color 0.3s ease;
}
.footer-section ul li a:hover {
color: #fff;
}
.social-icons {
display: flex;
gap: 15px;
}
.social-icon {
color: #fff;
font-size: 24px;
transition: all 0.3s ease;
}
.social-icon:hover {
transform: scale(1.2);
color: var(--accent-color);
}
.copyright {
margin-top: 30px;
text-align: center;
color: #ccc;
}
/* Animations */
@keyframes fadeIn {
from { opacity: 0; }
to { opacity: 1; }
}
@keyframes slideIn {
from { transform: translateY(50px); opacity: 0; }
to { transform: translateY(0); opacity: 1; }
}
.fade-in {
animation: fadeIn 1s ease-out;
}
.slide-in {
animation: slideIn 0.5s ease-out;
}
:root {
--primary-color: #4e54c8;
--secondary-color: #8f94fb;
--accent-color: #ff6b6b;
--text-color: #333;
--bg-color: #f9f9f9;
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Poppins', sans-serif;
background-color: var(--bg-color);
color: var(--text-color);
line-height: 1.6;
}
.header-content {
display: flex;
justify-content: space-between;
align-items: center;
}
.nav-bar {
background-color: #fff;
padding: 10px 0;
box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.container {
max-width: 1200px;
margin: 0 auto;
padding: 0 20px;
}
header {
background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
color: white;
padding: 20px 0;
}
h1 {
font-size: 2.5em;
margin-bottom: 10px;
}
.search-box {
display: flex;
margin-bottom: 20px;
}
.search-box input {
flex-grow: 1;
padding: 10px;
font-size: 16px;
border: none;
border-radius: 5px 0 0 5px;
}
.search-box button {
padding: 10px 20px;
background-color: var(--accent-color);
color: white;
border: none;
border-radius: 0 5px 5px 0;
cursor: pointer;
}
.course-content {
display: grid;
grid-template-columns: 2fr 1fr;
gap: 20px;
margin-top: 20px;
}
.main-content, .sidebar {
background-color: white;
border-radius: 10px;
padding: 20px;
box-shadow: 0 0 10px rgba(0,0,0,0.1);
}
.video-container {
position: relative;
padding-bottom: 56.25%;
height: 0;
overflow: hidden;
margin-bottom: 20px;
}
.video-container iframe {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
}
.pdf-list, .resource-list {
list-style-type: none;
}
.pdf-list li, .resource-list li {
margin-bottom: 10px;
}
.pdf-list a, .resource-list a {
color: var(--primary-color);
text-decoration: none;
display: flex;
align-items: center;
}
.pdf-list a:hover, .resource-list a:hover {
text-decoration: underline;
}
.pdf-list i, .resource-list i {
margin-right: 10px;
}
.progress-bar {
background-color: #e0e0e0;
border-radius: 5px;
height: 20px;
margin-top: 20px;
}
.progress {
background-color: var(--accent-color);
height: 100%;
border-radius: 5px;
width: 0;
transition: width 0.5s ease-in-out;
}
@media (max-width: 768px) {
.course-content {
grid-template-columns: 1fr;
}
}