Skip to content

Commit

Permalink
Adjust footer + mp3 source paths
Browse files Browse the repository at this point in the history
  • Loading branch information
gerdesque committed Nov 26, 2022
1 parent 2e98e75 commit 30a469d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 18 deletions.
13 changes: 0 additions & 13 deletions next.config.js
Original file line number Diff line number Diff line change
@@ -1,17 +1,4 @@
module.exports = {
trailingSlash: true,
assetPrefix: `../`,
webpack: (config, { dev, isServer }) => {
if (!dev && !isServer) {
config.resolve.alias = {
...config.resolve.alias,
'react/jsx-runtime.js': 'preact/compat/jsx-runtime',
react: 'preact/compat',
'react-dom/test-utils': 'preact/test-utils',
'react-dom': 'preact/compat',
}
}

return config
},
}
8 changes: 4 additions & 4 deletions src/components/Footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,12 @@ export const Footer = () => {
<Grid container alignItems="center" textAlign="center" flexWrap="wrap" justifyContent="center" my="2rem">
<Grid item minWidth="220px">
<CustomLink href="https://www.arbeiterjugend.de">
<img src="../footer/archiv.webp" alt={'Archiv der Arbeiter:innenjugend'} width={160} height={138} />
<img src="../../footer/archiv.webp" alt={'Archiv der Arbeiter:innenjugend'} width={160} height={138} />
</CustomLink>
</Grid>
<Grid item minWidth="220px">
<CustomLink href="https://digitalwarenkombinat.de/">
<img src="../copyright.svg" alt={'Digitalwarenkombinat'} width={138} height={138} />
<img src="../../copyright.svg" alt={'Digitalwarenkombinat'} width={138} height={138} />
<Typography component="h3" variant="h6" color="text.primary">
Digitalwarenkombinat
</Typography>
Expand All @@ -41,10 +41,10 @@ export const Footer = () => {
<Grid item xs={12} mt={2}>
<CustomLink href="https://www.kulturstiftung-des-bundes.de/dive-in">
<Box sx={{ display: { xs: 'none', md: 'block' } }}>
<img src="../footer/ksb_horizontal.webp" alt={'Kulturstiftung des Bundes'} height={138} />
<img src="../../footer/ksb_horizontal.webp" alt={'Kulturstiftung des Bundes'} height={138} />
</Box>
<Box sx={{ display: { xs: 'block', md: 'none' } }}>
<img src="../footer/ksb.webp" alt={'Kulturstiftung des Bundes'} width={160} />
<img src="../../footer/ksb.webp" alt={'Kulturstiftung des Bundes'} width={160} />
</Box>
</CustomLink>
</Grid>
Expand Down
2 changes: 1 addition & 1 deletion src/services/Call.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export const Call = ({ number, caller, onEnd }) => {
number &&
caller !== null &&
load({
src: `./revolutionstelephone/${number.slice(1)}.mp3`,
src: `../revolutionstelephone/${number.slice(1)}.mp3`,
autoplay: true,
onend: () => onEnd(),
onstop: () => onEnd(),
Expand Down

0 comments on commit 30a469d

Please sign in to comment.