Skip to content

Commit 6bd26cb

Browse files
authored
✨ Add Leihharfen image to page, Add line break for headlines on small screen (#71)
* 🍱 Add Leihharfen image * 💄 Not-Related: Increase width in zubehör text * ✨ Add Leihharfen image to Leihharfen page * 🏷️ Add JSX.Element to headline type * ✨ Make headlines in harfen pages responsive Breaks into two lines when screen is small
1 parent 3dcf2d3 commit 6bd26cb

File tree

7 files changed

+42
-31
lines changed

7 files changed

+42
-31
lines changed

src/components/Content.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ type ContentProps = {
55
children: ReactChild[] | ReactChild;
66
className?: string;
77
flow: string;
8-
headline: string;
8+
headline: string | JSX.Element;
99
};
1010

1111
function Content({ children, className, flow, headline }: ContentProps) {

src/images/harfen/leihharfen.jpg

305 KB
Loading

src/pages/harfen/fiona.tsx

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,13 @@ import Layout from "../../components/Layout";
55
import Navbar from "../../components/navbar/Navbar";
66

77
function Fiona() {
8+
const headline = (
9+
<div className="grid grid-flow-row gap-y-2 md:gap-y-0 md:grid-flow-col md:justify-start md:gap-x-3">
10+
<span>fiona</span>
11+
<span>(36 Saiten)</span>
12+
</div>
13+
);
14+
815
return (
916
<Layout>
1017
<Helmet
@@ -19,13 +26,9 @@ function Fiona() {
1926
htmlAttributes={{ lang: "de" }}
2027
/>
2128
<Navbar />
22-
<Content
23-
className="lg:grid-flow-col"
24-
flow="col"
25-
headline="fiona (36 Saiten)"
26-
>
29+
<Content className="lg:grid-flow-col" flow="col" headline={headline}>
2730
<p>Fotos der Harfe folgen bald.</p>
28-
<div className="md:w-7/12 lg:w-10/12">
31+
<div className="md:w-10/12 lg:w-10/12">
2932
<p className="mb-5 lg:w-9/12 text-lg">
3033
Mit 36 Saiten und einer Größe von etwa 140 cm ist das Modell
3134
&quot;Fiona&quot; das größte in der Reihe.

src/pages/harfen/isabeau.tsx

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,13 @@ import Layout from "../../components/Layout";
55
import Navbar from "../../components/navbar/Navbar";
66

77
function Isabeau() {
8+
const headline = (
9+
<div className="grid grid-flow-row gap-y-2 md:gap-y-0 md:grid-flow-col md:justify-start md:gap-x-3">
10+
<span>isabeau</span>
11+
<span>(29 Saiten)</span>
12+
</div>
13+
);
14+
815
return (
916
<Layout>
1017
<Helmet
@@ -19,13 +26,9 @@ function Isabeau() {
1926
htmlAttributes={{ lang: "de" }}
2027
/>
2128
<Navbar />
22-
<Content
23-
className="lg:grid-flow-col"
24-
flow="col"
25-
headline="isabeau (29 Saiten)"
26-
>
29+
<Content className="lg:grid-flow-col" flow="col" headline={headline}>
2730
<p>Fotos der Harfe folgen bald.</p>
28-
<div className="md:w-7/12 lg:w-10/12">
31+
<div className="md:w-10/12 lg:w-10/12">
2932
<p className="mb-5 lg:w-9/12 text-lg">
3033
Die kleine Harfe - ideal für Einsteiger:innen, für unterwegs und
3134
alle, die ein handliches Instrument suchen.

src/pages/harfen/wyda.tsx

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,13 @@ function Wyda() {
3030
},
3131
];
3232

33+
const headline = (
34+
<div className="grid grid-flow-row gap-y-2 md:gap-y-0 md:grid-flow-col md:justify-start md:gap-x-3">
35+
<span>wyda</span>
36+
<span>(34 Saiten)</span>
37+
</div>
38+
);
39+
3340
return (
3441
<Layout>
3542
<Helmet
@@ -44,15 +51,11 @@ function Wyda() {
4451
htmlAttributes={{ lang: "de" }}
4552
/>
4653
<Navbar />
47-
<Content
48-
className="lg:grid-flow-col"
49-
flow="col"
50-
headline="wyda (34 Saiten)"
51-
>
54+
<Content className="lg:grid-flow-col" flow="col" headline={headline}>
5255
<div className="lg:pl-20 sm:pl-0">
5356
<ImageSlider images={wydaImages} />
5457
</div>
55-
<div className="md:w-7/12 lg:w-10/12">
58+
<div className="md:w-10/12 lg:w-10/12">
5659
<p className="mb-5 w-11/12 text-lg">
5760
Die Mittlere von Albrecht Nüchters Harfen:
5861
<br />

src/pages/leihharfen.tsx

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,19 @@ import Navbar from "../components/navbar/Navbar";
33
import Layout from "../components/Layout";
44
import ButtonLink from "../components/button/ButtonLink";
55
import Content from "../components/Content";
6-
// import { StaticImage } from "gatsby-plugin-image";
76
import { Helmet } from "react-helmet";
7+
import ImageSlider from "../components/imageslider/ImageSlider";
8+
import { ReactImageGalleryItem } from "react-image-gallery";
9+
import leihharfen from "../images/harfen/leihharfen.jpg";
810

911
const Leihharfen = () => {
12+
const leihharfenImages: ReactImageGalleryItem[] = [
13+
{
14+
original: leihharfen,
15+
originalClass: "cursor-default",
16+
},
17+
];
18+
1019
return (
1120
<Layout>
1221
<Helmet
@@ -22,7 +31,7 @@ const Leihharfen = () => {
2231
/>
2332
<Navbar />
2433
<Content flow="col" headline="leihharfen">
25-
<div className="lg:pl-20 md:w-7/12 lg:w-9/12">
34+
<div className="lg:pl-20 md:w-11/12 lg:w-10/12 order-2 lg:order-1">
2635
<p className="mb-5 w-11/12">
2736
Sie möchten eine Harfe leihen? Bei uns finden Sie eine große Auswahl
2837
an Harfen in den unterschiedlichsten Größen und Ausführungen. <br />
@@ -32,15 +41,8 @@ const Leihharfen = () => {
3241
<p className="mb-10">Anfragen bitte telefonisch oder per E-Mail.</p>
3342
<ButtonLink destination="kontakt" label="Kontakt" primary={true} />
3443
</div>
35-
<div className="pr-10">
36-
{/* no image available at the moment */}
37-
{/* <StaticImage
38-
src="../images/placeholder_dude.jpg"
39-
alt="placeholder image"
40-
placeholder="blurred"
41-
width={400}
42-
height={500}
43-
/> */}
44+
<div className="lg:pr-20 sm:pl-0 order-1 lg:order-2">
45+
<ImageSlider images={leihharfenImages} />
4446
</div>
4547
</Content>
4648
</Layout>

src/pages/zubehoer.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ function Zubehoer() {
4343
<div className="lg:pl-20 sm:pl-0">
4444
<ImageSlider images={zubehoerImages} />
4545
</div>
46-
<div className="md:w-7/12 lg:w-10/12">
46+
<div className="md:w-11/12 lg:w-10/12">
4747
<p className="mb-5 w-11/12 text-lg">
4848
Passend zu den Harfen gibt es bei uns hochwertige Transporttaschen,
4949
Saiten und Stimmschlüssel.

0 commit comments

Comments
 (0)