Skip to content

Commit 7e2e024

Browse files
Revert "Fix Vite asset processing - simplify config to enable image processing"
This reverts commit 55b054b.
1 parent 55b054b commit 7e2e024

4 files changed

Lines changed: 5 additions & 7 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"description": "Clean, maintainable landing page for Elmentor/DevOps Visions community",
77
"scripts": {
88
"dev": "vite",
9-
"build": "tsc; vite build",
9+
"build": "tsc && vite build",
1010
"preview": "vite preview",
1111
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
1212
"format": "prettier --write .",

src/components/sections/CirclesSection.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import React, { useEffect, useRef, useState } from 'react';
22
import Button from '../Button';
33
import '../../styles/CirclesSection.css';
4-
import circlesImage from '../../assets/images/circles-diagram.png';
54

65
// Using the exact provided descriptions
76
const ELMENTOR_CIRCLES = [
@@ -93,7 +92,7 @@ const CirclesSection: React.FC = () => {
9392
ref={diagramRef}
9493
> <div className="circles-image-wrapper">
9594
<img
96-
src={circlesImage}
95+
src="./assets/circles/elmentor-circles.png"
9796
alt="Elmentor Circles Diagram showing the layered structure from Audience to Executives"
9897
className="circles-image"
9998
loading="lazy"

src/components/sections/FounderSection.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import React from 'react';
22
import '../../styles/FounderSection.css';
3-
import founderImage from '../../assets/images/mohamed-radwan.png';
3+
import founderImage from '../../assets/images/founder/mohamed-radwan.png';
44
import { FaLinkedin, FaGithub, FaBlog, FaYoutube } from 'react-icons/fa';
55
import Button from '../Button';
66

vite.config.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,7 @@ export default defineConfig(() => ({
1010
},
1111
build: {
1212
outDir: 'dist',
13-
sourcemap: true,
14-
assetsDir: 'assets'
13+
sourcemap: true
1514
},
16-
base: '/elmentorprogram-test/'
15+
base: '/'
1716
}))

0 commit comments

Comments
 (0)