asset path correction

This commit is contained in:
sandhiya-hepl
2026-07-14 17:28:13 +05:30
parent e49933e702
commit c440b643aa
13 changed files with 54 additions and 35 deletions
+4 -2
View File
@@ -1,4 +1,6 @@
import { useEffect, useRef, useState, Component } from 'react';
const BASE = import.meta.env.BASE_URL;
import {
LayoutDashboard,
Sparkles,
@@ -93,7 +95,7 @@ function LoginPreview() {
return (
<div className="login-preview">
<div className="login-preview-intro">
<img src="/assets/cavin_logo.svg" alt="Cavin Infotech" />
<img src={`${BASE}assets/cavin_logo.svg`} alt="Cavin Infotech" />
<div>
<h1>Content <span>Manager</span></h1>
<p>Preview the live website before you sign in. Edits publish instantly after login.</p>
@@ -501,7 +503,7 @@ export default function App() {
<aside className={`admin-sidebar ${sidebarOpen ? 'open' : ''}`}>
<div className="admin-sidebar-brand">
<img src="/assets/cavin_logo.svg" alt="Cavin Infotech" />
<img src={`${BASE}assets/cavin_logo.svg`} alt="Cavin Infotech" />
<h2>Content Manager</h2>
<p>Cavin Infotech Website</p>
</div>