Skip to content

Commit 762ba6b

Browse files
author
Bouwmeester, Kevin
committed
Attempt fix for references not pointing to pages + attempt fix not loading html in iframe
1 parent 7da47e5 commit 762ba6b

2 files changed

Lines changed: 21 additions & 21 deletions

File tree

app/constants.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -70,10 +70,10 @@ export const BUBBLETEAVIZ_STATUS = 'Active';
7070

7171

7272
export const MENU_ITEMS = [
73-
{ name: 'Industrial Collaborations', route: './industrial-collabs' },
74-
{ name: 'SEiGS 2025', route: './seigs25' },
75-
{ name: 'Projects & Tools', route: './projects' },
76-
{ name: 'Knowledge Hub', route: './knowledge-hub' },
77-
{ name: 'News', route: './news' },
78-
{ name: 'Contact us', route: './contacts' }
73+
{ name: 'Industrial Collaborations', route: '@app/industrial-collabs' },
74+
{ name: 'SEiGS 2025', route: '@app/seigs25' },
75+
{ name: 'Projects & Tools', route: '@app/projects' },
76+
{ name: 'Knowledge Hub', route: '@app/knowledge-hub' },
77+
{ name: 'News', route: '@app/news' },
78+
{ name: 'Contact us', route: '@app/contacts' }
7979
];

app/knowledge-hub/ECS/page.tsx

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,9 @@ import { KevinContact } from '@/app/person-constants';
1010
import { MENU_ITEMS as menuItems } from '../../constants';
1111

1212
import ECSImage from '../../../public/knowledge-hub/ECS/ECS.jpg';
13+
import ECSHTML from '../../../public/knowledge-hub/ECS/paper.html';
1314

1415

15-
// Prefix for where the assets live under /public
16-
const SRC = '/knowledge-hub/ECS/paper.html';
17-
1816
export default function Home() {
1917
const iframeRef = useRef<HTMLIFrameElement | null>(null);
2018
// Auto-resize iframe height after it loads (same-origin, so allowed)
@@ -59,19 +57,21 @@ export default function Home() {
5957
alt="Full-width image"
6058
style={{ width: 'auto', height: 'auto' }}
6159
/>
62-
<a href="https://doi.org/10.1016/j.simpat.2020.102243"> Vico: An entity-component-system based co-simulation framework</a>
60+
<a href="https://doi.org/10.1016/j.simpat.2020.102243">
61+
Vico: An entity-component-system based co-simulation framework
62+
</a>
6363

64-
<iframe
65-
ref={iframeRef}
66-
src={SRC}
67-
title="Paper"
68-
style={{
69-
width: '100%',
70-
height: '80vh', // initial height; will auto-resize
71-
border: 'none',
72-
background: 'transparent',
73-
}}
74-
/>
64+
<iframe
65+
ref={iframeRef}
66+
src={ECSHTML.src}
67+
title="Paper"
68+
style={{
69+
width: '100%',
70+
height: '80vh', // initial height; will auto-resize
71+
border: 'none',
72+
background: 'transparent',
73+
}}
74+
/>
7575

7676
{/* Contact Section */}
7777
<div className="border-t mt-4 pt-4">

0 commit comments

Comments
 (0)