diff --git a/src/fragmentarium/ui/info/ExternalNumberLink.tsx b/src/fragmentarium/ui/info/ExternalNumberLink.tsx
index 30b9509af..0a4f0fcfa 100644
--- a/src/fragmentarium/ui/info/ExternalNumberLink.tsx
+++ b/src/fragmentarium/ui/info/ExternalNumberLink.tsx
@@ -1,28 +1,20 @@
import ExternalLink from 'common/ExternalLink'
-import cdliLogo from './logos/cdli.png'
-import bdtnsLogo from './logos/bdtns.png'
-import archibabLogo from './logos/archibab.jpeg'
-import urOnlineLogo from './logos/ur-online.jpeg'
-import hilprechtJenaLogo from './logos/hilprecht-jena.png'
-import hilprechtHeidelbergLogo from './logos/hilprecht-heidelberg.png'
import React from 'react'
interface Props {
externalNumber: string
baseUrl: string
label: string
- logo: string
}
function ExternalNumberLink({
baseUrl,
externalNumber,
label,
- logo,
}: Props): JSX.Element {
const url = `${baseUrl}${encodeURIComponent(externalNumber)}`
return (
-
+ {`${label} (${externalNumber})`}
)
}
@@ -33,7 +25,6 @@ export function CdliLink({ number }: { number: string }): JSX.Element {
externalNumber={number}
baseUrl={'https://cdli.mpiwg-berlin.mpg.de/'}
label={'CDLI'}
- logo={cdliLogo}
/>
)
}
@@ -43,7 +34,6 @@ export function BdtnsLink({ number }: { number: string }): JSX.Element {
externalNumber={number}
baseUrl={'http://bdtns.filol.csic.es/'}
label={'BDTNS'}
- logo={bdtnsLogo}
/>
)
}
@@ -53,7 +43,6 @@ export function ArchibabLink({ number }: { number: string }): JSX.Element {
externalNumber={number}
baseUrl={'http://www.archibab.fr/'}
label={'Archibab'}
- logo={archibabLogo}
/>
)
}
@@ -63,7 +52,6 @@ export function UrOnlineLink({ number }: { number: string }): JSX.Element {
externalNumber={number}
baseUrl={'http://www.ur-online.org/subject/'}
label={'Ur Online'}
- logo={urOnlineLogo}
/>
)
}
@@ -73,7 +61,6 @@ export function HilprechtJenaLink({ number }: { number: string }): JSX.Element {
externalNumber={number}
baseUrl={'https://hilprecht.mpiwg-berlin.mpg.de/object3d/'}
label={'Hilprecht Collection'}
- logo={hilprechtJenaLogo}
/>
)
}
@@ -87,7 +74,6 @@ export function HilprechtHeidelbergLink({
externalNumber={number}
baseUrl={'https://doi.org/10.11588/heidicon/'}
label={'Hilprecht Collection – HeiCuBeDa'}
- logo={hilprechtHeidelbergLogo}
/>
)
}
diff --git a/src/fragmentarium/ui/info/ExternalResources.css b/src/fragmentarium/ui/info/ExternalResources.css
deleted file mode 100644
index 07a6b9722..000000000
--- a/src/fragmentarium/ui/info/ExternalResources.css
+++ /dev/null
@@ -1,14 +0,0 @@
-.ExternalResources {
- text-align: center;
-}
-
-.ExternalResources a {
- display: block;
-}
-
-.ExternalResources__image {
- height: auto;
- max-height: 3.5em;
- max-width: 100%;
- margin: 0.2em;
-}
diff --git a/src/fragmentarium/ui/info/ExternalResources.sass b/src/fragmentarium/ui/info/ExternalResources.sass
new file mode 100644
index 000000000..5ba34bab5
--- /dev/null
+++ b/src/fragmentarium/ui/info/ExternalResources.sass
@@ -0,0 +1,10 @@
+.ExternalResources
+ &__image
+ height: auto
+ max-height: 3.5em
+ max-width: 100%
+ margin: 0.2em
+
+ &__items
+ padding: 0
+ list-style-position: inside
diff --git a/src/fragmentarium/ui/info/ExternalResources.tsx b/src/fragmentarium/ui/info/ExternalResources.tsx
index 47c0bbe7d..a0ed9c414 100644
--- a/src/fragmentarium/ui/info/ExternalResources.tsx
+++ b/src/fragmentarium/ui/info/ExternalResources.tsx
@@ -5,7 +5,7 @@ import ExternalLink from 'common/ExternalLink'
import { Fragment } from 'fragmentarium/domain/fragment'
import { FragmentLink } from 'fragmentarium/domain/museum'
-import './ExternalResources.css'
+import './ExternalResources.sass'
import {
BdtnsLink,
CdliLink,
@@ -43,12 +43,16 @@ export default function ExternalResources({
[fragment.hilprechtHeidelbergNumber, HilprechtHeidelbergLink],
]
return (
-
+
{fragment.hasLink && }
{externalNumbers.map(
([number, LinkComponent], index) =>
- number &&
+ number && (
+ -
+
+
+ )
)}
-
+
)
}
diff --git a/src/fragmentarium/ui/info/logos/archibab.jpeg b/src/fragmentarium/ui/info/logos/archibab.jpeg
deleted file mode 100644
index 417dedcd4..000000000
Binary files a/src/fragmentarium/ui/info/logos/archibab.jpeg and /dev/null differ
diff --git a/src/fragmentarium/ui/info/logos/bdtns.png b/src/fragmentarium/ui/info/logos/bdtns.png
deleted file mode 100644
index 35385ef3c..000000000
Binary files a/src/fragmentarium/ui/info/logos/bdtns.png and /dev/null differ
diff --git a/src/fragmentarium/ui/info/logos/cdli.png b/src/fragmentarium/ui/info/logos/cdli.png
deleted file mode 100644
index 25be12578..000000000
Binary files a/src/fragmentarium/ui/info/logos/cdli.png and /dev/null differ
diff --git a/src/fragmentarium/ui/info/logos/hilprecht-heidelberg.png b/src/fragmentarium/ui/info/logos/hilprecht-heidelberg.png
deleted file mode 100644
index 2838cba53..000000000
Binary files a/src/fragmentarium/ui/info/logos/hilprecht-heidelberg.png and /dev/null differ
diff --git a/src/fragmentarium/ui/info/logos/hilprecht-jena.png b/src/fragmentarium/ui/info/logos/hilprecht-jena.png
deleted file mode 100644
index 88f563ccb..000000000
Binary files a/src/fragmentarium/ui/info/logos/hilprecht-jena.png and /dev/null differ
diff --git a/src/fragmentarium/ui/info/logos/ur-online.jpeg b/src/fragmentarium/ui/info/logos/ur-online.jpeg
deleted file mode 100644
index 09a9109c1..000000000
Binary files a/src/fragmentarium/ui/info/logos/ur-online.jpeg and /dev/null differ