Skip to content

Commit 55b054b

Browse files
Fix Vite asset processing - simplify config to enable image processing
1 parent 5b4283c commit 55b054b

4 files changed

Lines changed: 7 additions & 5 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: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
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';
45

56
// Using the exact provided descriptions
67
const ELMENTOR_CIRCLES = [
@@ -92,7 +93,7 @@ const CirclesSection: React.FC = () => {
9293
ref={diagramRef}
9394
> <div className="circles-image-wrapper">
9495
<img
95-
src="./assets/circles/elmentor-circles.png"
96+
src={circlesImage}
9697
alt="Elmentor Circles Diagram showing the layered structure from Audience to Executives"
9798
className="circles-image"
9899
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/founder/mohamed-radwan.png';
3+
import founderImage from '../../assets/images/mohamed-radwan.png';
44
import { FaLinkedin, FaGithub, FaBlog, FaYoutube } from 'react-icons/fa';
55
import Button from '../Button';
66

vite.config.ts

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

0 commit comments

Comments
 (0)