Skip to content

Commit a721ca9

Browse files
authored
feat(docs): list readers per-country availability (#646)
1 parent 748c823 commit a721ca9

File tree

8 files changed

+71
-13
lines changed

8 files changed

+71
-13
lines changed
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
---
2+
import { getIconURL, type IconName } from "@sumup-oss/icons";
3+
4+
interface Props {
5+
code: string;
6+
name: string;
7+
}
8+
9+
const { code, name } = Astro.props;
10+
const icon = `flag_${code.toLowerCase()}` as IconName;
11+
---
12+
13+
<span class="country">
14+
<img
15+
class="country-flag"
16+
src={getIconURL(icon)}
17+
height="15"
18+
width="20"
19+
alt={name}
20+
loading="lazy"
21+
/>
22+
</span>
23+
24+
<style>
25+
.country {
26+
display: inline-flex;
27+
flex-wrap: wrap;
28+
gap: 0.5rem;
29+
vertical-align: middle;
30+
}
31+
32+
.country-flag {
33+
display: inline-block;
34+
border-radius: var(--cui-border-radius-bit);
35+
object-fit: cover;
36+
margin: 0;
37+
}
38+
</style>

src/components/content/ReaderHero.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ const { alt, src, srcset, width, height } = Astro.props;
1515

1616
<style>
1717
.reader-hero {
18-
margin: 0 0 var(--cui-spacings-giga);
18+
margin: var(--cui-spacings-giga) 0;
1919
text-align: center;
2020
}
2121

src/content/docs/terminal-payments/readers/3g.mdx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@ sidebar:
66
---
77

88
import ReaderHero from '@components/content/ReaderHero.astro';
9+
import Country from '@components/content/Country.astro';
10+
11+
**Available in**: <Country code="AT" name="Austria" /> <Country code="BE" name="Belgium" /> <Country code="BG" name="Bulgaria" /> <Country code="CL" name="Chile" /> <Country code="CY" name="Cyprus" /> <Country code="CZ" name="Czech Republic" /> <Country code="DK" name="Denmark" /> <Country code="EE" name="Estonia" /> <Country code="FI" name="Finland" /> <Country code="FR" name="France" /> <Country code="DE" name="Germany" /> <Country code="GR" name="Greece" /> <Country code="HU" name="Hungary" /> <Country code="IE" name="Ireland" /> <Country code="IT" name="Italy" /> <Country code="LV" name="Latvia" /> <Country code="LT" name="Lithuania" /> <Country code="LU" name="Luxembourg" /> <Country code="MT" name="Malta" /> <Country code="NL" name="Netherlands" /> <Country code="NO" name="Norway" /> <Country code="PL" name="Poland" /> <Country code="PT" name="Portugal" /> <Country code="RO" name="Romania" /> <Country code="SK" name="Slovakia" /> <Country code="SI" name="Slovenia" /> <Country code="ES" name="Spain" /> <Country code="SE" name="Sweden" /> <Country code="CH" name="Switzerland" /> <Country code="GB" name="United Kingdom" /> <Country code="US" name="United States" />
12+
13+
The 3G reader is a standalone mobile reader with its own network connectivity and optional printer support.
914

1015
<ReaderHero
1116
alt="3G card reader"
@@ -15,8 +20,6 @@ import ReaderHero from '@components/content/ReaderHero.astro';
1520
height={556}
1621
/>
1722

18-
The 3G reader is a standalone mobile reader with its own network connectivity and optional printer support.
19-
2023
## Basic Information
2124

2225
| Category | Details |

src/content/docs/terminal-payments/readers/air.mdx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@ sidebar:
66
---
77

88
import ReaderHero from '@components/content/ReaderHero.astro';
9+
import Country from '@components/content/Country.astro';
10+
11+
**Available in**: <Country code="AT" name="Austria" /> <Country code="AU" name="Australia" /> <Country code="BE" name="Belgium" /> <Country code="BG" name="Bulgaria" /> <Country code="CL" name="Chile" /> <Country code="CO" name="Colombia" /> <Country code="HR" name="Croatia" /> <Country code="CY" name="Cyprus" /> <Country code="CZ" name="Czech Republic" /> <Country code="DK" name="Denmark" /> <Country code="EE" name="Estonia" /> <Country code="FI" name="Finland" /> <Country code="FR" name="France" /> <Country code="DE" name="Germany" /> <Country code="GR" name="Greece" /> <Country code="HU" name="Hungary" /> <Country code="IE" name="Ireland" /> <Country code="IT" name="Italy" /> <Country code="LV" name="Latvia" /> <Country code="LT" name="Lithuania" /> <Country code="LU" name="Luxembourg" /> <Country code="MT" name="Malta" /> <Country code="NL" name="Netherlands" /> <Country code="NO" name="Norway" /> <Country code="PE" name="Peru" /> <Country code="PL" name="Poland" /> <Country code="PT" name="Portugal" /> <Country code="RO" name="Romania" /> <Country code="SK" name="Slovakia" /> <Country code="SI" name="Slovenia" /> <Country code="ES" name="Spain" /> <Country code="SE" name="Sweden" /> <Country code="CH" name="Switzerland" /> <Country code="GB" name="United Kingdom" /> <Country code="US" name="United States" />
12+
13+
Air is a Bluetooth reader for merchants who run checkout from a phone, tablet, or POS app.
914

1015
<ReaderHero
1116
alt="Air card reader"
@@ -15,8 +20,6 @@ import ReaderHero from '@components/content/ReaderHero.astro';
1520
height={320}
1621
/>
1722

18-
Air is a Bluetooth reader for merchants who run checkout from a phone, tablet, or POS app.
19-
2023
## Basic Information
2124

2225
| Category | Details |

src/content/docs/terminal-payments/readers/pin-plus.mdx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@ sidebar:
66
---
77

88
import ReaderHero from '@components/content/ReaderHero.astro';
9+
import Country from '@components/content/Country.astro';
10+
11+
**Available in**: <Country code="AT" name="Austria" /> <Country code="BE" name="Belgium" /> <Country code="BR" name="Brazil" /> <Country code="CH" name="Switzerland" /> <Country code="CL" name="Chile" /> <Country code="DE" name="Germany" /> <Country code="ES" name="Spain" /> <Country code="FR" name="France" /> <Country code="GB" name="United Kingdom" /> <Country code="IE" name="Ireland" /> <Country code="IT" name="Italy" /> <Country code="NL" name="Netherlands" /> <Country code="PL" name="Poland" /> <Country code="PT" name="Portugal" /> <Country code="SE" name="Sweden" />
12+
13+
PIN+ is an older paired SumUp reader that connected to mobile devices for card-present payments.
914

1015
<ReaderHero
1116
alt="PIN+ card reader"
@@ -15,8 +20,6 @@ import ReaderHero from '@components/content/ReaderHero.astro';
1520
height={320}
1621
/>
1722

18-
PIN+ is an older paired SumUp reader that connected to mobile devices for card-present payments.
19-
2023
## Basic Information
2124

2225
| Category | Details |

src/content/docs/terminal-payments/readers/solo-lite.mdx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@ sidebar:
66
---
77

88
import ReaderHero from '@components/content/ReaderHero.astro';
9+
import Country from '@components/content/Country.astro';
10+
11+
**Available in**: <Country code="AT" name="Austria" /> <Country code="BE" name="Belgium" /> <Country code="BR" name="Brazil" /> <Country code="BG" name="Bulgaria" /> <Country code="CL" name="Chile" /> <Country code="CO" name="Colombia" /> <Country code="HR" name="Croatia" /> <Country code="CY" name="Cyprus" /> <Country code="CZ" name="Czech Republic" /> <Country code="DK" name="Denmark" /> <Country code="EE" name="Estonia" /> <Country code="FI" name="Finland" /> <Country code="FR" name="France" /> <Country code="DE" name="Germany" /> <Country code="GR" name="Greece" /> <Country code="HU" name="Hungary" /> <Country code="IE" name="Ireland" /> <Country code="IT" name="Italy" /> <Country code="LV" name="Latvia" /> <Country code="LT" name="Lithuania" /> <Country code="LU" name="Luxembourg" /> <Country code="MT" name="Malta" /> <Country code="NL" name="Netherlands" /> <Country code="NO" name="Norway" /> <Country code="PE" name="Peru" /> <Country code="PL" name="Poland" /> <Country code="PT" name="Portugal" /> <Country code="RO" name="Romania" /> <Country code="SK" name="Slovakia" /> <Country code="SI" name="Slovenia" /> <Country code="ES" name="Spain" /> <Country code="SE" name="Sweden" /> <Country code="CH" name="Switzerland" /> <Country code="GB" name="United Kingdom" /> <Country code="US" name="United States" />
12+
13+
Solo Lite is a lightweight reader that pairs with the SumUp app over Bluetooth. It is aimed at mobile businesses that want simpler hardware than Solo.
914

1015
<ReaderHero
1116
alt="Solo Lite card reader"
@@ -15,8 +20,6 @@ import ReaderHero from '@components/content/ReaderHero.astro';
1520
height={298}
1621
/>
1722

18-
Solo Lite is a lightweight reader that pairs with the SumUp app over Bluetooth. It is aimed at mobile businesses that want simpler hardware than Solo.
19-
2023
## Basic Information
2124

2225
| Category | Details |

src/content/docs/terminal-payments/readers/solo.mdx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@ sidebar:
66
---
77

88
import ReaderHero from '@components/content/ReaderHero.astro';
9+
import Country from '@components/content/Country.astro';
10+
11+
**Available in**: <Country code="AT" name="Austria" /> <Country code="AU" name="Australia" /> <Country code="BE" name="Belgium" /> <Country code="BR" name="Brazil" /> <Country code="BG" name="Bulgaria" /> <Country code="CL" name="Chile" /> <Country code="CO" name="Colombia" /> <Country code="HR" name="Croatia" /> <Country code="CY" name="Cyprus" /> <Country code="CZ" name="Czech Republic" /> <Country code="DK" name="Denmark" /> <Country code="EE" name="Estonia" /> <Country code="FI" name="Finland" /> <Country code="FR" name="France" /> <Country code="DE" name="Germany" /> <Country code="GR" name="Greece" /> <Country code="HU" name="Hungary" /> <Country code="IE" name="Ireland" /> <Country code="IT" name="Italy" /> <Country code="LV" name="Latvia" /> <Country code="LT" name="Lithuania" /> <Country code="LU" name="Luxembourg" /> <Country code="MT" name="Malta" /> <Country code="NL" name="Netherlands" /> <Country code="NO" name="Norway" /> <Country code="PE" name="Peru" /> <Country code="PL" name="Poland" /> <Country code="PT" name="Portugal" /> <Country code="RO" name="Romania" /> <Country code="SK" name="Slovakia" /> <Country code="SI" name="Slovenia" /> <Country code="ES" name="Spain" /> <Country code="SE" name="Sweden" /> <Country code="CH" name="Switzerland" /> <Country code="GB" name="United Kingdom" /> <Country code="US" name="United States" />
12+
13+
Solo is SumUp's standalone reader with a touchscreen. It can accept payments independently and can also be used in connected integration flows.
914

1015
<ReaderHero
1116
alt="Solo card reader"
@@ -15,8 +20,6 @@ import ReaderHero from '@components/content/ReaderHero.astro';
1520
height={298}
1621
/>
1722

18-
Solo is SumUp's standalone reader with a touchscreen. It can accept payments independently and can also be used in connected integration flows.
19-
2023
## Basic Information
2124

2225
| Category | Details |

src/content/docs/terminal-payments/readers/tap-to-pay.mdx

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,13 @@ sidebar:
66
---
77

88
import ReaderHero from '@components/content/ReaderHero.astro';
9+
import Country from '@components/content/Country.astro';
10+
11+
**Available in (Android)**: <Country code="AU" name="Australia" /> <Country code="AT" name="Austria" /> <Country code="BE" name="Belgium" /> <Country code="BR" name="Brazil" /> <Country code="BG" name="Bulgaria" /> <Country code="CL" name="Chile" /> <Country code="CO" name="Colombia" /> <Country code="HR" name="Croatia" /> <Country code="CY" name="Cyprus" /> <Country code="CZ" name="Czech Republic" /> <Country code="DK" name="Denmark" /> <Country code="EE" name="Estonia" /> <Country code="FI" name="Finland" /> <Country code="FR" name="France" /> <Country code="DE" name="Germany" /> <Country code="GR" name="Greece" /> <Country code="HU" name="Hungary" /> <Country code="IE" name="Ireland" /> <Country code="IT" name="Italy" /> <Country code="LV" name="Latvia" /> <Country code="LT" name="Lithuania" /> <Country code="LU" name="Luxembourg" /> <Country code="MT" name="Malta" /> <Country code="NL" name="Netherlands" /> <Country code="NO" name="Norway" /> <Country code="PE" name="Peru" /> <Country code="PL" name="Poland" /> <Country code="PT" name="Portugal" /> <Country code="RO" name="Romania" /> <Country code="SK" name="Slovakia" /> <Country code="SI" name="Slovenia" /> <Country code="ES" name="Spain" /> <Country code="SE" name="Sweden" /> <Country code="CH" name="Switzerland" /> <Country code="GB" name="United Kingdom" /> <Country code="US" name="United States" />
12+
13+
**Available in (iOS)**: <Country code="AU" name="Australia" /> <Country code="AT" name="Austria" /> <Country code="BE" name="Belgium" /> <Country code="BR" name="Brazil" /> <Country code="BG" name="Bulgaria" /> <Country code="CL" name="Chile" /> <Country code="HR" name="Croatia" /> <Country code="CY" name="Cyprus" /> <Country code="CZ" name="Czech Republic" /> <Country code="DK" name="Denmark" /> <Country code="EE" name="Estonia" /> <Country code="FI" name="Finland" /> <Country code="FR" name="France" /> <Country code="DE" name="Germany" /> <Country code="HU" name="Hungary" /> <Country code="IE" name="Ireland" /> <Country code="IT" name="Italy" /> <Country code="LV" name="Latvia" /> <Country code="LT" name="Lithuania" /> <Country code="LU" name="Luxembourg" /> <Country code="MT" name="Malta" /> <Country code="NL" name="Netherlands" /> <Country code="NO" name="Norway" /> <Country code="PL" name="Poland" /> <Country code="PT" name="Portugal" /> <Country code="RO" name="Romania" /> <Country code="SK" name="Slovakia" /> <Country code="SI" name="Slovenia" /> <Country code="ES" name="Spain" /> <Country code="SE" name="Sweden" /> <Country code="CH" name="Switzerland" /> <Country code="GB" name="United Kingdom" />
14+
15+
Tap to Pay lets merchants accept in-person contactless payments directly on a compatible phone without carrying a separate card reader.
916

1017
<ReaderHero
1118
alt="Tap to Pay on a mobile device"
@@ -15,8 +22,6 @@ import ReaderHero from '@components/content/ReaderHero.astro';
1522
height={671}
1623
/>
1724

18-
Tap to Pay lets merchants accept in-person contactless payments directly on a compatible phone without carrying a separate card reader.
19-
2025
## Basic Information
2126

2227
| Category | Details |

0 commit comments

Comments
 (0)