14 changed files with 1027 additions and 7 deletions
@ -0,0 +1,10 @@
|
||||
import React from 'react'; |
||||
import './Categories.scss'; |
||||
|
||||
const Categories = () => ( |
||||
<div className="Categories"> |
||||
Categories Component |
||||
</div> |
||||
); |
||||
|
||||
export default Categories; |
@ -0,0 +1,12 @@
|
||||
.Contact { |
||||
font-family: "PT Sans", sans-serif; |
||||
padding: 2rem 1rem; |
||||
.contact-title { |
||||
font-weight: bold; |
||||
font-size: 1.3rem; |
||||
padding-bottom: 2rem; |
||||
} |
||||
.contact-content { |
||||
padding-bottom: 6rem; |
||||
} |
||||
} |
@ -0,0 +1,36 @@
|
||||
import React, { useEffect, useState } from "react"; |
||||
import "./Contact.scss"; |
||||
import ReactMarkdown from "react-markdown"; |
||||
import { url } from "../../variables"; |
||||
|
||||
function Contact() { |
||||
const [{ title, content }, setContent] = useState({ |
||||
title: "", |
||||
content: "", |
||||
}); |
||||
|
||||
useEffect(() => { |
||||
interface HomeProps { |
||||
title: string; |
||||
content: string; |
||||
} |
||||
const getContent = async (): Promise<HomeProps> => { |
||||
const response = await fetch(`${url}/contact`); |
||||
const data = await response.json(); |
||||
setContent(data); |
||||
return data; |
||||
}; |
||||
|
||||
getContent().then(); |
||||
}, []); |
||||
return ( |
||||
<div className="Contact"> |
||||
<h3 className="contact-title">{title}</h3> |
||||
<div className="contact-content"> |
||||
<ReactMarkdown>{content}</ReactMarkdown> |
||||
</div> |
||||
</div> |
||||
); |
||||
} |
||||
|
||||
export default Contact; |
@ -0,0 +1,12 @@
|
||||
.Legal { |
||||
font-family: "PT Sans", sans-serif; |
||||
padding: 1rem; |
||||
.legal-title { |
||||
font-weight: bold; |
||||
font-size: 1.3rem; |
||||
padding-bottom: 2rem; |
||||
} |
||||
.legal-content { |
||||
padding-bottom: 2rem; |
||||
} |
||||
} |
@ -0,0 +1,37 @@
|
||||
import React, { useEffect, useState } from "react"; |
||||
import { url } from "../../variables"; |
||||
import "./Legal.scss"; |
||||
import ReactMarkdown from "react-markdown"; |
||||
|
||||
function Legal() { |
||||
const [{ title, content }, setContent] = useState({ |
||||
title: "", |
||||
content: "", |
||||
}); |
||||
|
||||
useEffect(() => { |
||||
interface HomeProps { |
||||
title: string; |
||||
content: string; |
||||
} |
||||
const getContent = async (): Promise<HomeProps> => { |
||||
const response = await fetch(`${url}/impressum`); |
||||
const data = await response.json(); |
||||
setContent(data); |
||||
return data; |
||||
}; |
||||
|
||||
getContent().then(); |
||||
}, []); |
||||
|
||||
return ( |
||||
<div className="Legal"> |
||||
<h3 className="legal-title">{title}</h3> |
||||
<div className="legal-content"> |
||||
<ReactMarkdown>{content}</ReactMarkdown> |
||||
</div> |
||||
</div> |
||||
); |
||||
} |
||||
|
||||
export default Legal; |
@ -0,0 +1,10 @@
|
||||
import React from 'react'; |
||||
import './Partners.scss'; |
||||
|
||||
const Partners = () => ( |
||||
<div className="Partners"> |
||||
Partners Component |
||||
</div> |
||||
); |
||||
|
||||
export default Partners; |
@ -0,0 +1,12 @@
|
||||
.Privacy { |
||||
font-family: "PT Sans", sans-serif; |
||||
padding: 1rem; |
||||
.privacy-title { |
||||
font-weight: bold; |
||||
font-size: 1.3rem; |
||||
padding-bottom: 2rem; |
||||
} |
||||
.privacy-content { |
||||
padding-bottom: 2rem; |
||||
} |
||||
} |
@ -0,0 +1,37 @@
|
||||
import React, { useEffect, useState } from "react"; |
||||
import { url } from "../../variables"; |
||||
import "./Privacy.scss"; |
||||
import ReactMarkdown from "react-markdown"; |
||||
|
||||
function Privacy() { |
||||
const [{ title, content }, setContent] = useState({ |
||||
title: "", |
||||
content: "", |
||||
}); |
||||
|
||||
useEffect(() => { |
||||
interface HomeProps { |
||||
title: string; |
||||
content: string; |
||||
} |
||||
const getContent = async (): Promise<HomeProps> => { |
||||
const response = await fetch(`${url}/datenschutz`); |
||||
const data = await response.json(); |
||||
setContent(data); |
||||
return data; |
||||
}; |
||||
|
||||
getContent().then(); |
||||
}, []); |
||||
|
||||
return ( |
||||
<div className="Privacy"> |
||||
<h3 className="privacy-title">{title}</h3> |
||||
<div className="privacy-content"> |
||||
<ReactMarkdown>{content}</ReactMarkdown> |
||||
</div> |
||||
</div> |
||||
); |
||||
} |
||||
|
||||
export default Privacy; |
Loading…
Reference in new issue