Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions about.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@

<div class="app-shell">
<aside class="sidebar" id="aboutSidebar">
<div class="user-chip">
<a href="profile.html" class="user-chip user-chip-link">
<div class="avatar">TC</div>
<div>
<div class="name">Team Name</div>
<div class="mini">Student account</div>
</div>
</div>
</a>

<nav class="menu">
<a href="dashboard.html">Home</a>
Expand Down
4 changes: 2 additions & 2 deletions ai.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@

<div class="app-shell">
<aside class="sidebar" id="aiSidebar">
<div class="user-chip">
<a href="profile.html" class="user-chip user-chip-link">
<div class="avatar">TC</div>
<div>
<div class="name">Team Name</div>
<div class="mini">Student account</div>
</div>
</div>
</a>

<nav class="menu">
<a href="dashboard.html">Home</a>
Expand Down
221 changes: 221 additions & 0 deletions css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,15 @@ input:focus, textarea:focus, select:focus {
color: var(--muted);
}

.user-chip-link {
cursor: pointer;
transition: background-color 0.2s ease;
}

.user-chip-link:hover {
background: var(--menu-hover);
}

.menu {
display: grid;
gap: 6px;
Expand Down Expand Up @@ -1198,6 +1207,218 @@ input:focus, textarea:focus, select:focus {
font-weight: 500;
}

/* ---------- PROFILE PAGE ---------- */
.profile-hero {
background: var(--card);
border: 1px solid var(--border);
border-radius: var(--radius-lg);
padding: 32px;
margin-bottom: 8px;
box-shadow: var(--shadow);
}

.profile-header {
display: flex;
align-items: center;
gap: 24px;
flex-wrap: wrap;
}

.profile-avatar {
width: 80px;
height: 80px;
border-radius: 50%;
background: var(--primary);
color: #fff;
display: grid;
place-items: center;
font-weight: 800;
font-size: 1.75rem;
}

.profile-info h1 {
margin: 0 0 6px;
font-size: 1.75rem;
font-weight: 800;
}

.profile-role {
margin: 0;
color: var(--primary);
font-weight: 600;
font-size: 0.95rem;
}

.profile-meta {
margin: 8px 0 0;
color: var(--muted);
font-size: 0.9rem;
}

.profile-stats-grid {
display: grid;
grid-template-columns: repeat(4, minmax(0, 1fr));
gap: 16px;
}

.profile-stat-card {
background: var(--card);
border: 1px solid var(--border);
border-radius: var(--radius);
padding: 20px;
display: flex;
align-items: center;
gap: 16px;
box-shadow: var(--shadow);
}

.profile-stat-icon {
font-size: 2rem;
}

.profile-stat-content {
display: flex;
flex-direction: column;
gap: 4px;
}

.profile-stat-value {
font-size: 1.5rem;
font-weight: 800;
color: var(--primary);
}

.profile-stat-label {
font-size: 0.85rem;
color: var(--muted);
font-weight: 600;
}

.profile-activity-grid {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 20px;
}

.profile-activity-card {
background: var(--card);
border: 1px solid var(--border);
border-radius: var(--radius);
padding: 20px;
box-shadow: var(--shadow);
}

.profile-activity-card h3 {
margin: 0 0 16px;
font-size: 1.1rem;
font-weight: 700;
}

.activity-list {
margin: 0;
padding: 0;
list-style: none;
}

.activity-list li {
padding: 8px 0;
border-bottom: 1px solid var(--border-subtle);
font-size: 0.95rem;
}

.activity-list li:last-child {
border-bottom: none;
}

.activity-done {
color: var(--success);
margin-right: 8px;
}

.activity-next {
color: var(--primary);
margin-right: 8px;
}

.activity-pending {
color: var(--muted);
margin-right: 8px;
}

.quiz-summary {
display: flex;
flex-direction: column;
gap: 12px;
}

.quiz-summary-row {
display: flex;
justify-content: space-between;
align-items: center;
padding: 8px 0;
border-bottom: 1px solid var(--border-subtle);
}

.quiz-summary-row:last-child {
border-bottom: none;
}

.quiz-summary-row span {
color: var(--muted);
font-size: 0.95rem;
}

.quiz-summary-row strong {
color: var(--primary);
}

.profile-info-card {
background: var(--card);
border: 1px solid var(--border);
border-radius: var(--radius);
padding: 20px;
box-shadow: var(--shadow);
}

.profile-info-row {
display: flex;
justify-content: space-between;
align-items: center;
padding: 12px 0;
border-bottom: 1px solid var(--border-subtle);
}

.profile-info-row:last-child {
border-bottom: none;
}

.profile-info-label {
color: var(--muted);
font-size: 0.95rem;
}

.profile-info-value {
font-weight: 600;
color: var(--text);
}

.profile-actions {
margin-top: 32px;
display: flex;
gap: 12px;
flex-wrap: wrap;
}

@media (max-width: 768px) {
.profile-stats-grid {
grid-template-columns: repeat(2, 1fr);
}

.profile-activity-grid {
grid-template-columns: 1fr;
}
}

/* ---------- RESPONSIVE UPDATES ---------- */
@media (max-width: 1024px) {
.resource-grid,
Expand Down
4 changes: 2 additions & 2 deletions dashboard.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@

<div class="app-shell">
<aside class="sidebar" id="dashboardSidebar">
<div class="user-chip">
<a href="profile.html" class="user-chip user-chip-link">
<div class="avatar">TC</div>
<div>
<div class="name">Team Name</div>
<div class="mini">Student account</div>
</div>
</div>
</a>

<nav class="menu">
<a href="dashboard.html" class="active">Home</a>
Expand Down
3 changes: 3 additions & 0 deletions js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,3 +51,6 @@ toggleSidebar("menuToggleResources", "resourcesSidebar");

// About
toggleSidebar("menuToggleAbout", "aboutSidebar");

// Profile
toggleSidebar("menuToggleProfile", "profileSidebar");
4 changes: 2 additions & 2 deletions lesson.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@

<div class="lesson-shell">
<aside class="sidebar" id="lessonSidebar">
<div class="user-chip">
<a href="profile.html" class="user-chip user-chip-link">
<div class="avatar">TC</div>
<div>
<div class="name">Team Name</div>
<div class="mini">Learning panel</div>
</div>
</div>
</a>

<nav class="menu">
<a href="dashboard.html">Home</a>
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"name":"coderv","version":"1.0.0","description":"A web-based programming learning platform","scripts":{"start":"serve","serve":"serve","dev":"serve"},"devDependencies":{"serve":"^14.2.4"}}
Loading