Skip to content

Commit 3d88968

Browse files
committed
Refactor: Remove progress bar implementation from carousel; clean up related code in carousel.js and CSS
1 parent 12142df commit 3d88968

File tree

3 files changed

+0
-33
lines changed

3 files changed

+0
-33
lines changed

public/assets/css/components/carousel.css

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -120,20 +120,3 @@
120120
flex-direction: column;
121121
align-items: center;
122122
}
123-
124-
/* Visual indicator for current position */
125-
.carousel-progress {
126-
height: 4px;
127-
width: 80%;
128-
background-color: rgba(0, 0, 0, 0.1);
129-
border-radius: 2px;
130-
margin: 0 auto 1rem;
131-
overflow: hidden;
132-
}
133-
134-
.carousel-progress-bar {
135-
height: 100%;
136-
background-color: var(--accent-color);
137-
transition: width 0.5s ease-in-out;
138-
border-radius: 2px;
139-
}

public/assets/js/index.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -110,8 +110,6 @@ function renderProjects(projects = []) {
110110

111111
// Render skills
112112
function renderSkills(skills) {
113-
console.log('Skills data received:', skills); // Debug log
114-
115113
if (!skills) {
116114
console.error('No skills data provided');
117115
return;
@@ -124,8 +122,6 @@ function renderSkills(skills) {
124122
'.skills-group:nth-child(2) .skills-grid'
125123
);
126124

127-
console.log('Grid elements:', { technicalGrid, professionalGrid }); // Debug log
128-
129125
if (!technicalGrid || !professionalGrid) {
130126
console.error('Skills grid elements not found', {
131127
technicalGrid: !!technicalGrid,

public/assets/js/utils/carousel.js

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -123,18 +123,6 @@ export class Carousel {
123123
}
124124
}
125125

126-
createProgressBar(container) {
127-
const progressContainer = document.createElement('div');
128-
progressContainer.className = 'carousel-progress';
129-
130-
this.progressBar = document.createElement('div');
131-
this.progressBar.className = 'carousel-progress-bar';
132-
this.progressBar.style.width = `${(1 / this.totalSlides) * 100}%`;
133-
134-
progressContainer.appendChild(this.progressBar);
135-
container.appendChild(progressContainer);
136-
}
137-
138126
getItemsPerSlide() {
139127
const viewportWidth = window.innerWidth;
140128

0 commit comments

Comments
 (0)