diff --git a/index.html b/index.html
index b2fda10..bd54413 100644
--- a/index.html
+++ b/index.html
@@ -207,9 +207,7 @@
+ ${rowItems.map(skill => `
+
+
+ ${skill.img ? `

` : '
'}
+
+
+
${skill.title}
+
${skill.date}
+
+
+ `).join('')}
+
+ `;
+}
+
+export function setSkillsBackground() {
+ const skillsSection = document.getElementById('skills');
+ if (skillsSection) {
+ skillsSection.style.cssText = `
+ padding: 20px 0px;
+ background: url("/img/spacexRocket.jpeg") no-repeat center;
+ background-size: cover;
+ height: auto;
+ display: block;
+ margin-left: auto;
+ margin-right: auto;
+ position: center;
+ `;
+ }
+}
\ No newline at end of file
diff --git a/src/main.js b/src/main.js
new file mode 100644
index 0000000..297ac4e
--- /dev/null
+++ b/src/main.js
@@ -0,0 +1,12 @@
+import { generateSkillsSection, setSkillsBackground } from './components/skills.js';
+import { initExperience } from './components/experience.js';
+import { initializePortfolio } from './components/portfolio.js';
+
+function initializeAll() {
+ generateSkillsSection();
+ setSkillsBackground();
+ initExperience();
+ initializePortfolio();
+}
+
+document.addEventListener('DOMContentLoaded', initializeAll);
\ No newline at end of file
diff --git a/src/sections/skills-items.js b/src/sections/skills-items.js
deleted file mode 100644
index 85771f0..0000000
--- a/src/sections/skills-items.js
+++ /dev/null
@@ -1,125 +0,0 @@
-const skillsData = [
- {
- img: 'img/aws-practitioner.png',
- alt: 'AWS-CloudPractitioner-2021',
- title: 'AWS Certified Practitioner',
- date: '2 January 2021'
- },
- {
- img: 'img/aws-developer.png',
- alt: 'AWS-Developer',
- title: 'AWS Certified Developer',
- date: '29 August 2021'
- },
- {
- img: 'img/aws-devops-prof.png',
- alt: 'AWS-SysOps',
- title: 'AWS Certified DevOps Engineer - Professional',
- date: '23 August 2024'
- },
-
-];
-
-const skillsQuote = {
- text: "The greatest scientific discovery was the discovery of ignorance.",
- author: "Yuval Noah Harari, Homo Deus: A History of Tomorrow"
-};
-
-function generateSkillsSection() {
- const section = document.getElementById('skills');
- if (!section) return;
-
- const container = section.querySelector('.container');
- container.innerHTML = `
-
- ${rowItems.map(skill => `
-
-
-
- ${skill.img ? `

` : '
'}
-
-
-
${skill.title}
-
${skill.date}
-
-
-
- `).join('')}
-
- `;
-}
-function generateSkillItems() {
- const total = skillsData.length;
- const rows = [];
-
- // Split into rows of 4
- for (let i = 0; i < total; i += 4) {
- const rowItems = skillsData.slice(i, i + 4);
- const rowHtml = generateRow(rowItems);
- rows.push(rowHtml);
- }
-
- return rows.join('');
- }
-
- function generateRow(rowItems) {
- const itemCount = rowItems.length;
- const colWidth = itemCount === 1 ? 12 :
- itemCount === 2 ? 6 :
- itemCount === 3 ? 4 : 3;
-
- return `
-
- ${rowItems.map(skill => `
-
-
-
- ${skill.img ? `

` : '
'}
-
-
-
${skill.title}
-
${skill.date}
-
-
-
- `).join('')}
-
- `;
- }
-function setSkillsBackground() {
- const skillsSection = document.getElementById('skills');
- if (skillsSection) {
- skillsSection.style.cssText = `
- padding: 20px 0px;
- background: url("../img/spacexRocket.jpeg") no-repeat center;
- background-size: cover;
- height: auto;
- display: block;
- margin-left: auto;
- margin-right: auto;
- position: center;
- `;
- }
-}
-
-document.addEventListener('DOMContentLoaded', () => {
- generateSkillsSection();
- setSkillsBackground();
-});
\ No newline at end of file
diff --git a/vite.config.js b/vite.config.js
index 294e410..d6634fe 100644
--- a/vite.config.js
+++ b/vite.config.js
@@ -1,7 +1,19 @@
-export default {
- base: '/awesomefalcon1.github.io/',
- build: {
- outDir: 'dist',
- sourcemap: true
- }
-}
\ No newline at end of file
+import { defineConfig } from 'vite'
+
+export default defineConfig({
+ base: './',
+ build: {
+ outDir: 'dist',
+ assetsDir: 'assets',
+ rollupOptions: {
+ input: {
+ main: '/index.html'
+ }
+ }
+ },
+ resolve: {
+ alias: {
+ '@': '/src'
+ }
+ }
+})
\ No newline at end of file