init website
|
@ -0,0 +1,70 @@
|
||||||
|
# Getting Started with Create React App
|
||||||
|
|
||||||
|
This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).
|
||||||
|
|
||||||
|
## Available Scripts
|
||||||
|
|
||||||
|
In the project directory, you can run:
|
||||||
|
|
||||||
|
### `npm start`
|
||||||
|
|
||||||
|
Runs the app in the development mode.\
|
||||||
|
Open [http://localhost:3000](http://localhost:3000) to view it in your browser.
|
||||||
|
|
||||||
|
The page will reload when you make changes.\
|
||||||
|
You may also see any lint errors in the console.
|
||||||
|
|
||||||
|
### `npm test`
|
||||||
|
|
||||||
|
Launches the test runner in the interactive watch mode.\
|
||||||
|
See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information.
|
||||||
|
|
||||||
|
### `npm run build`
|
||||||
|
|
||||||
|
Builds the app for production to the `build` folder.\
|
||||||
|
It correctly bundles React in production mode and optimizes the build for the best performance.
|
||||||
|
|
||||||
|
The build is minified and the filenames include the hashes.\
|
||||||
|
Your app is ready to be deployed!
|
||||||
|
|
||||||
|
See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information.
|
||||||
|
|
||||||
|
### `npm run eject`
|
||||||
|
|
||||||
|
**Note: this is a one-way operation. Once you `eject`, you can't go back!**
|
||||||
|
|
||||||
|
If you aren't satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project.
|
||||||
|
|
||||||
|
Instead, it will copy all the configuration files and the transitive dependencies (webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you're on your own.
|
||||||
|
|
||||||
|
You don't have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn't feel obligated to use this feature. However we understand that this tool wouldn't be useful if you couldn't customize it when you are ready for it.
|
||||||
|
|
||||||
|
## Learn More
|
||||||
|
|
||||||
|
You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started).
|
||||||
|
|
||||||
|
To learn React, check out the [React documentation](https://reactjs.org/).
|
||||||
|
|
||||||
|
### Code Splitting
|
||||||
|
|
||||||
|
This section has moved here: [https://facebook.github.io/create-react-app/docs/code-splitting](https://facebook.github.io/create-react-app/docs/code-splitting)
|
||||||
|
|
||||||
|
### Analyzing the Bundle Size
|
||||||
|
|
||||||
|
This section has moved here: [https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size](https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size)
|
||||||
|
|
||||||
|
### Making a Progressive Web App
|
||||||
|
|
||||||
|
This section has moved here: [https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app](https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app)
|
||||||
|
|
||||||
|
### Advanced Configuration
|
||||||
|
|
||||||
|
This section has moved here: [https://facebook.github.io/create-react-app/docs/advanced-configuration](https://facebook.github.io/create-react-app/docs/advanced-configuration)
|
||||||
|
|
||||||
|
### Deployment
|
||||||
|
|
||||||
|
This section has moved here: [https://facebook.github.io/create-react-app/docs/deployment](https://facebook.github.io/create-react-app/docs/deployment)
|
||||||
|
|
||||||
|
### `npm run build` fails to minify
|
||||||
|
|
||||||
|
This section has moved here: [https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify](https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify)
|
|
@ -0,0 +1,41 @@
|
||||||
|
{
|
||||||
|
"name": "test2",
|
||||||
|
"version": "0.1.0",
|
||||||
|
"private": true,
|
||||||
|
"dependencies": {
|
||||||
|
"@ant-design/icons": "^5.2.6",
|
||||||
|
"@testing-library/jest-dom": "^5.17.0",
|
||||||
|
"@testing-library/react": "^13.4.0",
|
||||||
|
"@testing-library/user-event": "^13.5.0",
|
||||||
|
"antd": "^5.12.8",
|
||||||
|
"react": "^18.2.0",
|
||||||
|
"react-dom": "^18.2.0",
|
||||||
|
"react-router-dom": "^6.21.1",
|
||||||
|
"react-scripts": "5.0.1",
|
||||||
|
"web-vitals": "^2.1.4"
|
||||||
|
},
|
||||||
|
"scripts": {
|
||||||
|
"start": "react-scripts start",
|
||||||
|
"build": "react-scripts build",
|
||||||
|
"test": "react-scripts test",
|
||||||
|
"eject": "react-scripts eject"
|
||||||
|
},
|
||||||
|
"eslintConfig": {
|
||||||
|
"extends": [
|
||||||
|
"react-app",
|
||||||
|
"react-app/jest"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"browserslist": {
|
||||||
|
"production": [
|
||||||
|
">0.2%",
|
||||||
|
"not dead",
|
||||||
|
"not op_mini all"
|
||||||
|
],
|
||||||
|
"development": [
|
||||||
|
"last 1 chrome version",
|
||||||
|
"last 1 firefox version",
|
||||||
|
"last 1 safari version"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
After Width: | Height: | Size: 159 KiB |
After Width: | Height: | Size: 475 B |
After Width: | Height: | Size: 3.8 KiB |
After Width: | Height: | Size: 44 KiB |
After Width: | Height: | Size: 41 KiB |
After Width: | Height: | Size: 38 KiB |
|
@ -0,0 +1,43 @@
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<meta charset="utf-8" />
|
||||||
|
<link rel="icon" href="%PUBLIC_URL%/favicon.ico" />
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||||
|
<meta name="theme-color" content="#000000" />
|
||||||
|
<meta
|
||||||
|
name="description"
|
||||||
|
content="Web site created using create-react-app"
|
||||||
|
/>
|
||||||
|
<link rel="apple-touch-icon" href="%PUBLIC_URL%/logo192.png" />
|
||||||
|
<!--
|
||||||
|
manifest.json provides metadata used when your web app is installed on a
|
||||||
|
user's mobile device or desktop. See https://developers.google.com/web/fundamentals/web-app-manifest/
|
||||||
|
-->
|
||||||
|
<link rel="manifest" href="%PUBLIC_URL%/manifest.json" />
|
||||||
|
<!--
|
||||||
|
Notice the use of %PUBLIC_URL% in the tags above.
|
||||||
|
It will be replaced with the URL of the `public` folder during the build.
|
||||||
|
Only files inside the `public` folder can be referenced from the HTML.
|
||||||
|
|
||||||
|
Unlike "/favicon.ico" or "favicon.ico", "%PUBLIC_URL%/favicon.ico" will
|
||||||
|
work correctly both with client-side routing and a non-root public URL.
|
||||||
|
Learn how to configure a non-root public URL by running `npm run build`.
|
||||||
|
-->
|
||||||
|
<title>React App</title>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<noscript>You need to enable JavaScript to run this app.</noscript>
|
||||||
|
<div id="root"></div>
|
||||||
|
<!--
|
||||||
|
This HTML file is a template.
|
||||||
|
If you open it directly in the browser, you will see an empty page.
|
||||||
|
|
||||||
|
You can add webfonts, meta tags, or analytics to this file.
|
||||||
|
The build step will place the bundled scripts into the <body> tag.
|
||||||
|
|
||||||
|
To begin the development, run `npm start` or `yarn start`.
|
||||||
|
To create a production bundle, use `npm run build` or `yarn build`.
|
||||||
|
-->
|
||||||
|
</body>
|
||||||
|
</html>
|
After Width: | Height: | Size: 1.4 KiB |
After Width: | Height: | Size: 627 B |
After Width: | Height: | Size: 18 KiB |
After Width: | Height: | Size: 5.2 KiB |
After Width: | Height: | Size: 9.4 KiB |
|
@ -0,0 +1,25 @@
|
||||||
|
{
|
||||||
|
"short_name": "React App",
|
||||||
|
"name": "Create React App Sample",
|
||||||
|
"icons": [
|
||||||
|
{
|
||||||
|
"src": "favicon.ico",
|
||||||
|
"sizes": "64x64 32x32 24x24 16x16",
|
||||||
|
"type": "image/x-icon"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"src": "logo192.png",
|
||||||
|
"type": "image/png",
|
||||||
|
"sizes": "192x192"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"src": "logo512.png",
|
||||||
|
"type": "image/png",
|
||||||
|
"sizes": "512x512"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"start_url": ".",
|
||||||
|
"display": "standalone",
|
||||||
|
"theme_color": "#000000",
|
||||||
|
"background_color": "#ffffff"
|
||||||
|
}
|
After Width: | Height: | Size: 48 KiB |
|
@ -0,0 +1,3 @@
|
||||||
|
# https://www.robotstxt.org/robotstxt.html
|
||||||
|
User-agent: *
|
||||||
|
Disallow:
|
After Width: | Height: | Size: 1.1 KiB |
After Width: | Height: | Size: 763 B |
|
@ -0,0 +1,49 @@
|
||||||
|
import {
|
||||||
|
Route,
|
||||||
|
Routes,
|
||||||
|
useLocation,
|
||||||
|
useNavigationType,
|
||||||
|
} from "react-router-dom";
|
||||||
|
import Home from "./pages/Home/Home";
|
||||||
|
import Imprint from "./pages/Imprint/Imprint";
|
||||||
|
import { Constants } from "./Utils";
|
||||||
|
import PageNotFound from "./pages/PageNotFound/PageNotFound";
|
||||||
|
import Navbar from "./components/Navbar/Navbar";
|
||||||
|
import Footer from "./components/Footer/Footer";
|
||||||
|
import DataPrivacy from "./pages/DataPrivacy/DataPrivacy";
|
||||||
|
import { useEffect } from "react";
|
||||||
|
|
||||||
|
function App() {
|
||||||
|
const action = useNavigationType();
|
||||||
|
const location = useLocation();
|
||||||
|
const pathname = location.pathname;
|
||||||
|
|
||||||
|
useEffect(() => {
|
||||||
|
console.log(action);
|
||||||
|
console.log(pathname);
|
||||||
|
|
||||||
|
if (action !== "POP") {
|
||||||
|
window.scrollTo(0, 0);
|
||||||
|
}
|
||||||
|
}, [action, pathname]);
|
||||||
|
|
||||||
|
return (
|
||||||
|
<>
|
||||||
|
<Navbar />
|
||||||
|
|
||||||
|
<Routes>
|
||||||
|
<Route path={Constants.ROUTE_PATHS.HOME} element={<Home />} />
|
||||||
|
<Route path={Constants.ROUTE_PATHS.IMPRINT} element={<Imprint />} />
|
||||||
|
<Route
|
||||||
|
path={Constants.ROUTE_PATHS.DATA_PRIVACY}
|
||||||
|
element={<DataPrivacy />}
|
||||||
|
/>
|
||||||
|
<Route path="*" element={<PageNotFound />} />
|
||||||
|
</Routes>
|
||||||
|
|
||||||
|
<Footer />
|
||||||
|
</>
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
export default App;
|
|
@ -0,0 +1,9 @@
|
||||||
|
/*import { render, screen } from '@testing-library/react';
|
||||||
|
import App from './App';
|
||||||
|
|
||||||
|
test('renders learn react link', () => {
|
||||||
|
render(<App />);
|
||||||
|
const linkElement = screen.getByText(/learn react/i);
|
||||||
|
expect(linkElement).toBeInTheDocument();
|
||||||
|
});
|
||||||
|
*/
|
|
@ -0,0 +1,7 @@
|
||||||
|
export const Constants = {
|
||||||
|
ROUTE_PATHS: {
|
||||||
|
HOME: "/",
|
||||||
|
IMPRINT: "/impressum",
|
||||||
|
DATA_PRIVACY: "/datenschutz",
|
||||||
|
},
|
||||||
|
};
|
|
@ -0,0 +1,11 @@
|
||||||
|
import styles from "./Banner.module.css";
|
||||||
|
|
||||||
|
export default function Banner({ title }) {
|
||||||
|
return (
|
||||||
|
<div className={styles.banner}>
|
||||||
|
<img src="/banner.jpeg" alt="Banner" className={styles.bannerImage} />
|
||||||
|
|
||||||
|
<h1 className={styles.header}>{title}</h1>
|
||||||
|
</div>
|
||||||
|
);
|
||||||
|
}
|
|
@ -0,0 +1,17 @@
|
||||||
|
.banner {
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.bannerImage {
|
||||||
|
width: 100%;
|
||||||
|
height: 430px;
|
||||||
|
object-fit: cover;
|
||||||
|
filter: brightness(0.6);
|
||||||
|
}
|
||||||
|
|
||||||
|
.header {
|
||||||
|
position: absolute;
|
||||||
|
color: white;
|
||||||
|
}
|
|
@ -0,0 +1,46 @@
|
||||||
|
import { Link } from "react-router-dom";
|
||||||
|
import styles from "./Footer.module.css";
|
||||||
|
|
||||||
|
export default function Footer() {
|
||||||
|
return (
|
||||||
|
<>
|
||||||
|
<div className={styles.footer}>
|
||||||
|
<h1>Hair Guru</h1>
|
||||||
|
<div>
|
||||||
|
<p>Dorfstraße 7</p>
|
||||||
|
<p>Berlin</p>
|
||||||
|
<p>+49 963 344954</p>
|
||||||
|
<p>hair@guru.de</p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div className={styles.socials}>
|
||||||
|
<img src="/insta.png" alt="Instagram" />
|
||||||
|
<img src="/face.png" alt="Facebook" />
|
||||||
|
<img src="/tik.png" alt="TikTok" />
|
||||||
|
<img src="/yt.png" alt="YouTube" />
|
||||||
|
<img src="/link.png" alt="LinkedIn" />
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div className={styles.imprint}>
|
||||||
|
<Link to={"/impressum"}>Impressum</Link>
|
||||||
|
<div className={styles.divider}></div>
|
||||||
|
<Link to={"/datenschutz"}>Datenschutz</Link>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div className={styles.footerCreator}>
|
||||||
|
<p>
|
||||||
|
© 2024 - Webdesign by{" "}
|
||||||
|
<a
|
||||||
|
href="https://kk-innovation.eu"
|
||||||
|
target="_blank"
|
||||||
|
rel="noopener noreferrer"
|
||||||
|
className={styles.companyName}
|
||||||
|
>
|
||||||
|
KK-Innovation
|
||||||
|
</a>
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
</>
|
||||||
|
);
|
||||||
|
}
|
|
@ -0,0 +1,60 @@
|
||||||
|
.footer {
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
align-items: center;
|
||||||
|
gap: 12px;
|
||||||
|
background-color: #1d1d1d;
|
||||||
|
flex-direction: column;
|
||||||
|
padding: 12px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.footer p {
|
||||||
|
color: #fff;
|
||||||
|
text-align: center;
|
||||||
|
margin: 0;
|
||||||
|
padding: 2px 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.footer h1 {
|
||||||
|
color: var(--color-heading-h1);
|
||||||
|
}
|
||||||
|
|
||||||
|
.footer .socials {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: row;
|
||||||
|
gap: 12px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.footer .divider {
|
||||||
|
width: 1px;
|
||||||
|
height: 20px;
|
||||||
|
background-color: #4e4e4e;
|
||||||
|
}
|
||||||
|
|
||||||
|
.footer .imprint {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: row;
|
||||||
|
gap: 12px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.footer .imprint a {
|
||||||
|
color: #fff;
|
||||||
|
text-decoration: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.footerCreator {
|
||||||
|
border-top: 1px #303030 solid;
|
||||||
|
background-color: #212121;
|
||||||
|
}
|
||||||
|
|
||||||
|
.footerCreator p {
|
||||||
|
color: #cfcfcf;
|
||||||
|
text-align: center;
|
||||||
|
margin: 0;
|
||||||
|
padding: 12px 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.footerCreator .companyName {
|
||||||
|
color: #6878d6;
|
||||||
|
text-decoration: none;
|
||||||
|
}
|
|
@ -0,0 +1,23 @@
|
||||||
|
import { CloseOutlined } from "@ant-design/icons";
|
||||||
|
import styles from "./Drawer.module.css";
|
||||||
|
import { useEffect } from "react";
|
||||||
|
|
||||||
|
export default function Drawer({ isOpen, closeDrawer }) {
|
||||||
|
useEffect(() => {
|
||||||
|
if (isOpen) {
|
||||||
|
document.body.style.overflow = "hidden";
|
||||||
|
} else {
|
||||||
|
document.body.style.overflow = "unset";
|
||||||
|
}
|
||||||
|
}, [isOpen]);
|
||||||
|
|
||||||
|
return (
|
||||||
|
<div className={`${styles.drawer} ${isOpen ? styles.draweropen : ""}`}>
|
||||||
|
<CloseOutlined
|
||||||
|
className={styles.closeIcon}
|
||||||
|
onClick={closeDrawer}
|
||||||
|
style={{ color: "#fff" }}
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
);
|
||||||
|
}
|
|
@ -0,0 +1,23 @@
|
||||||
|
.drawer {
|
||||||
|
width: 100vw;
|
||||||
|
background-color: rgba(0, 0, 0, 0.856);
|
||||||
|
height: 100vh;
|
||||||
|
top: 0;
|
||||||
|
left: 0;
|
||||||
|
z-index: 100;
|
||||||
|
opacity: 0;
|
||||||
|
pointer-events: none;
|
||||||
|
position: fixed;
|
||||||
|
transition: opacity 0.3s cubic-bezier(0.51, 0, 0.46, 0.99);
|
||||||
|
display: flex;
|
||||||
|
justify-content: flex-end;
|
||||||
|
}
|
||||||
|
|
||||||
|
.closeIcon {
|
||||||
|
padding: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.draweropen {
|
||||||
|
opacity: 1;
|
||||||
|
pointer-events: all;
|
||||||
|
}
|
|
@ -0,0 +1,41 @@
|
||||||
|
import { MenuOutlined } from "@ant-design/icons";
|
||||||
|
import styles from "./Navbar.module.css";
|
||||||
|
import { Constants } from "../../Utils";
|
||||||
|
import { useState } from "react";
|
||||||
|
import Drawer from "./Drawer";
|
||||||
|
|
||||||
|
export default function Navbar() {
|
||||||
|
const [isDrawerOpen, setIsDrawerOpen] = useState(false);
|
||||||
|
|
||||||
|
console.log(isDrawerOpen);
|
||||||
|
|
||||||
|
return (
|
||||||
|
<>
|
||||||
|
<div className={styles.navbar}>
|
||||||
|
<img src="/logo.png" alt="Logo" className={styles.logo} />
|
||||||
|
|
||||||
|
<div className={styles.rightItems}>
|
||||||
|
<div className={styles.navbarLinks}>
|
||||||
|
<a href={Constants.ROUTE_PATHS.HOME}>Startseite</a>
|
||||||
|
<a href="/about">Öffnungszeiten</a>
|
||||||
|
<a href="/services">Anfahrt</a>
|
||||||
|
<a href="/contact">Portfolio</a>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<button className={styles.button}>Termin buchen</button>
|
||||||
|
|
||||||
|
<MenuOutlined
|
||||||
|
onClick={() => setIsDrawerOpen(true)}
|
||||||
|
className={styles.menuIcon}
|
||||||
|
style={{ color: "#fff" }}
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<Drawer
|
||||||
|
isOpen={isDrawerOpen}
|
||||||
|
closeDrawer={() => setIsDrawerOpen(false)}
|
||||||
|
/>
|
||||||
|
</>
|
||||||
|
);
|
||||||
|
}
|
|
@ -0,0 +1,61 @@
|
||||||
|
.navbar {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: space-between;
|
||||||
|
background: linear-gradient(269.4deg, #242424, #333);
|
||||||
|
padding: 12px 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.rightItems {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
gap: 12px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.logo {
|
||||||
|
height: 32px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.navbarLinks {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
gap: 12px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.navbarLinks a {
|
||||||
|
color: white;
|
||||||
|
text-decoration: none;
|
||||||
|
padding: 12px;
|
||||||
|
transition: var(--default-transition);
|
||||||
|
}
|
||||||
|
|
||||||
|
.navbarLinks a:hover {
|
||||||
|
color: #bd9f52;
|
||||||
|
}
|
||||||
|
|
||||||
|
.menuIcon {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
@media screen and (max-width: 780px) {
|
||||||
|
.navbarLinks {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.menuIcon {
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.button {
|
||||||
|
background: linear-gradient(266.95deg, rgba(202, 168, 79, 0.63), #bd9f52);
|
||||||
|
border: none;
|
||||||
|
color: white;
|
||||||
|
text-align: center;
|
||||||
|
text-decoration: none;
|
||||||
|
font-size: 16px;
|
||||||
|
font-weight: bold;
|
||||||
|
border-radius: 20px;
|
||||||
|
cursor: pointer;
|
||||||
|
padding: 8px 12px;
|
||||||
|
}
|
|
@ -0,0 +1,24 @@
|
||||||
|
body {
|
||||||
|
margin: 0;
|
||||||
|
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen",
|
||||||
|
"Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue",
|
||||||
|
sans-serif;
|
||||||
|
-webkit-font-smoothing: antialiased;
|
||||||
|
-moz-osx-font-smoothing: grayscale;
|
||||||
|
background-color: #f9f9f9;
|
||||||
|
}
|
||||||
|
|
||||||
|
code {
|
||||||
|
font-family: source-code-pro, Menlo, Monaco, Consolas, "Courier New",
|
||||||
|
monospace;
|
||||||
|
}
|
||||||
|
|
||||||
|
:root {
|
||||||
|
--padding-sides: 12px;
|
||||||
|
--padding-top: 12px;
|
||||||
|
--padding-bottom: 24px;
|
||||||
|
|
||||||
|
--color-heading-h1: #caa74f;
|
||||||
|
|
||||||
|
--default-transition: 0.3s;
|
||||||
|
}
|
|
@ -0,0 +1,17 @@
|
||||||
|
import "./global.css";
|
||||||
|
import React from "react";
|
||||||
|
import ReactDOM from "react-dom/client";
|
||||||
|
import App from "./App";
|
||||||
|
import { BrowserRouter } from "react-router-dom";
|
||||||
|
|
||||||
|
const root = ReactDOM.createRoot(document.getElementById("root"));
|
||||||
|
root.render(
|
||||||
|
<BrowserRouter>
|
||||||
|
<App />
|
||||||
|
</BrowserRouter>
|
||||||
|
);
|
||||||
|
|
||||||
|
// If you want to start measuring performance in your app, pass a function
|
||||||
|
// to log results (for example: reportWebVitals(console.log))
|
||||||
|
// or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals
|
||||||
|
//reportWebVitals();
|
|
@ -0,0 +1,55 @@
|
||||||
|
import Banner from "../../components/Banner/Banner";
|
||||||
|
|
||||||
|
export default function DataPrivacy() {
|
||||||
|
return (
|
||||||
|
<>
|
||||||
|
<Banner title="Datenschutzerklärung" />
|
||||||
|
|
||||||
|
<h1>Your Company Name</h1>
|
||||||
|
|
||||||
|
<p>
|
||||||
|
Responsible for the content according to § 55 Abs. 2 RStV:
|
||||||
|
<br />
|
||||||
|
Your Name
|
||||||
|
<br />
|
||||||
|
Your Street, Your City
|
||||||
|
<br />
|
||||||
|
Phone: +49 123 456 789
|
||||||
|
<br />
|
||||||
|
Email: your.email@example.com
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<h2>Legal Information</h2>
|
||||||
|
|
||||||
|
<p>
|
||||||
|
VAT ID: DE123456789
|
||||||
|
<br />
|
||||||
|
Trade Register: HRB 98765, Local Court YourCity
|
||||||
|
<br />
|
||||||
|
Supervisory authority: Regulatory Authority YourRegion
|
||||||
|
<br />
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<h2>Disclaimer</h2>
|
||||||
|
|
||||||
|
<p>
|
||||||
|
Despite careful control, we assume no liability for the content of
|
||||||
|
external links. The operators of the linked pages are solely responsible
|
||||||
|
for their content.
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<h2>Data Privacy Policy</h2>
|
||||||
|
|
||||||
|
<p>
|
||||||
|
Your data privacy is important to us. Read our{" "}
|
||||||
|
<a href="/data-privacy-policy">Data Privacy Policy</a> for more
|
||||||
|
information.
|
||||||
|
<br />
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<h2>Copyright Notice</h2>
|
||||||
|
|
||||||
|
<p>© 2024 Your Company Name. All rights reserved.</p>
|
||||||
|
</>
|
||||||
|
);
|
||||||
|
}
|
|
@ -0,0 +1,83 @@
|
||||||
|
import styles from "./Home.module.css";
|
||||||
|
import Banner from "../../components/Banner/Banner";
|
||||||
|
|
||||||
|
export default function Home() {
|
||||||
|
return (
|
||||||
|
<>
|
||||||
|
<Banner title="Hair Guru" />
|
||||||
|
|
||||||
|
<div className={styles.openingHours}>
|
||||||
|
<h1>Unsere Öffnungszeiten</h1>
|
||||||
|
|
||||||
|
<div className={styles.openingHoursContainer}>
|
||||||
|
<div className={styles.openingHoursItem}>
|
||||||
|
<h2>MO</h2>
|
||||||
|
<p>09:00 Uhr</p>
|
||||||
|
<p>bis</p>
|
||||||
|
<p>18:00 Uhr</p>
|
||||||
|
</div>
|
||||||
|
<div className={styles.openingHoursItem}>
|
||||||
|
<h2>DI</h2>
|
||||||
|
<p>09:00 Uhr</p>
|
||||||
|
<p>bis</p>
|
||||||
|
<p>18:00 Uhr</p>
|
||||||
|
</div>
|
||||||
|
<div className={styles.openingHoursItem}>
|
||||||
|
<h2>MI</h2>
|
||||||
|
<p>09:00 Uhr</p>
|
||||||
|
<p>bis</p>
|
||||||
|
<p>18:00 Uhr</p>
|
||||||
|
</div>
|
||||||
|
<div className={styles.openingHoursItem}>
|
||||||
|
<h2>DO</h2>
|
||||||
|
<p>09:00 Uhr</p>
|
||||||
|
<p>bis</p>
|
||||||
|
<p>18:00 Uhr</p>
|
||||||
|
</div>
|
||||||
|
<div className={styles.openingHoursItem}>
|
||||||
|
<h2>FR</h2>
|
||||||
|
<p>09:00 Uhr</p>
|
||||||
|
<p>bis</p>
|
||||||
|
<p>18:00 Uhr</p>
|
||||||
|
</div>
|
||||||
|
<div className={styles.openingHoursItem}>
|
||||||
|
<h2>SA</h2>
|
||||||
|
<p>09:00 Uhr</p>
|
||||||
|
<p>bis</p>
|
||||||
|
<p>18:00 Uhr</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div className={styles.storeLocation}>
|
||||||
|
<h1>Wir sind hier</h1>
|
||||||
|
|
||||||
|
<img src="/map.png" alt="Map" />
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div className={styles.portfolio}>
|
||||||
|
<h1>Portfolio</h1>
|
||||||
|
|
||||||
|
<div className={styles.portfolioContainer}>
|
||||||
|
<img src="/image1.png" alt="Portfolio 1" />
|
||||||
|
<img src="/image2.png" alt="Portfolio 2" />
|
||||||
|
<img src="/image3.png" alt="Portfolio 3" />
|
||||||
|
<img src="/image1.png" alt="Portfolio 1" />
|
||||||
|
<img src="/image2.png" alt="Portfolio 2" />
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div className={styles.customerReviews}>
|
||||||
|
<h1>Was unsere Kunden sagen</h1>
|
||||||
|
|
||||||
|
<div className={styles.customerReviewsContainer}>
|
||||||
|
<div className={styles.customerReviewsItem}>
|
||||||
|
<p>Mehr als zufrieden</p>
|
||||||
|
|
||||||
|
<h4>Alinka Selvi</h4>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</>
|
||||||
|
);
|
||||||
|
}
|
|
@ -0,0 +1,100 @@
|
||||||
|
.openingHours {
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
align-items: center;
|
||||||
|
flex-direction: column;
|
||||||
|
padding: var(--padding-sides);
|
||||||
|
}
|
||||||
|
|
||||||
|
.openingHours h1 {
|
||||||
|
color: var(--color-heading-h1);
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.openingHoursContainer {
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
align-items: center;
|
||||||
|
gap: 20px;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
}
|
||||||
|
|
||||||
|
.openingHoursItem {
|
||||||
|
background-color: white;
|
||||||
|
padding: 12px 20px;
|
||||||
|
border-radius: 4px;
|
||||||
|
text-align: center;
|
||||||
|
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
|
||||||
|
}
|
||||||
|
|
||||||
|
.openingHoursItem h2 {
|
||||||
|
margin: 6px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.openingHoursItem p {
|
||||||
|
margin: 2px;
|
||||||
|
font-size: 18px;
|
||||||
|
font-weight: 300;
|
||||||
|
}
|
||||||
|
|
||||||
|
.storeLocation h1 {
|
||||||
|
color: var(--color-heading-h1);
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.storeLocation img {
|
||||||
|
width: 100%;
|
||||||
|
height: 300px;
|
||||||
|
object-fit: cover;
|
||||||
|
}
|
||||||
|
|
||||||
|
.portfolio {
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
align-items: center;
|
||||||
|
flex-direction: column;
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.portfolio h1 {
|
||||||
|
color: var(--color-heading-h1);
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.portfolioContainer {
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
align-items: center;
|
||||||
|
gap: 4px;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
}
|
||||||
|
|
||||||
|
.portfolioContainer img {
|
||||||
|
width: 200px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.customerReviews {
|
||||||
|
padding-top: var(--padding-top);
|
||||||
|
padding-bottom: var(--padding-bottom);
|
||||||
|
}
|
||||||
|
|
||||||
|
.customerReviews h1 {
|
||||||
|
color: var(--color-heading-h1);
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.customerReviews .customerReviewsContainer {
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
align-items: center;
|
||||||
|
gap: 20px;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
}
|
||||||
|
|
||||||
|
.customerReviews .customerReviewsContainer .customerReviewsItem {
|
||||||
|
background-color: white;
|
||||||
|
padding: 12px 20px;
|
||||||
|
border-radius: 4px;
|
||||||
|
text-align: center;
|
||||||
|
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
|
||||||
|
}
|
|
@ -0,0 +1,52 @@
|
||||||
|
import Banner from "../../components/Banner/Banner";
|
||||||
|
|
||||||
|
export default function Imprint() {
|
||||||
|
return (
|
||||||
|
<>
|
||||||
|
<Banner title="Impressum" />
|
||||||
|
<h1>Your Company Name</h1>
|
||||||
|
|
||||||
|
<p>
|
||||||
|
Responsible for the content according to § 55 Abs. 2 RStV:
|
||||||
|
<br />
|
||||||
|
Your Name
|
||||||
|
<br />
|
||||||
|
Your Street, Your City
|
||||||
|
<br />
|
||||||
|
Phone: +49 123 456 789
|
||||||
|
<br />
|
||||||
|
Email: your.email@example.com
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<h2>Legal Information</h2>
|
||||||
|
|
||||||
|
<p>
|
||||||
|
VAT ID: DE123456789
|
||||||
|
<br />
|
||||||
|
Trade Register: HRB 98765, Local Court YourCity
|
||||||
|
<br />
|
||||||
|
Supervisory authority: Regulatory Authority YourRegion
|
||||||
|
<br />
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<h2>Disclaimer</h2>
|
||||||
|
|
||||||
|
<p>
|
||||||
|
Despite careful control, we assume no liability for the content of
|
||||||
|
external links. The operators of the linked pages are solely responsible
|
||||||
|
for their content.
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<h2>Privacy Policy</h2>
|
||||||
|
|
||||||
|
<p>
|
||||||
|
Your privacy is important to us. Read our{" "}
|
||||||
|
<a href="/privacy-policy">Privacy Policy</a> for more information.
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<h2>Copyright Notice</h2>
|
||||||
|
|
||||||
|
<p>© 2024 Your Company Name. All rights reserved.</p>
|
||||||
|
</>
|
||||||
|
);
|
||||||
|
}
|
|
@ -0,0 +1,23 @@
|
||||||
|
import { Button, Result } from "antd";
|
||||||
|
import Banner from "../../components/Banner/Banner";
|
||||||
|
import { Link } from "react-router-dom";
|
||||||
|
import { Constants } from "../../Utils";
|
||||||
|
|
||||||
|
export default function PageNotFound() {
|
||||||
|
return (
|
||||||
|
<>
|
||||||
|
<Banner title={"Seite nicht gefunden"} />
|
||||||
|
|
||||||
|
<Result
|
||||||
|
status="404"
|
||||||
|
title="404"
|
||||||
|
subTitle="Entschuldigen Sie, die von Ihnen gesuchte Seite existiert nicht."
|
||||||
|
extra={
|
||||||
|
<Link to={Constants.ROUTE_PATHS.HOME}>
|
||||||
|
<Button type="primary">Zurück zur Startseite</Button>
|
||||||
|
</Link>
|
||||||
|
}
|
||||||
|
/>
|
||||||
|
</>
|
||||||
|
);
|
||||||
|
}
|
|
@ -0,0 +1,14 @@
|
||||||
|
/*const reportWebVitals = onPerfEntry => {
|
||||||
|
if (onPerfEntry && onPerfEntry instanceof Function) {
|
||||||
|
import('web-vitals').then(({ getCLS, getFID, getFCP, getLCP, getTTFB }) => {
|
||||||
|
getCLS(onPerfEntry);
|
||||||
|
getFID(onPerfEntry);
|
||||||
|
getFCP(onPerfEntry);
|
||||||
|
getLCP(onPerfEntry);
|
||||||
|
getTTFB(onPerfEntry);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
export default reportWebVitals;
|
||||||
|
*/
|
|
@ -0,0 +1,5 @@
|
||||||
|
// jest-dom adds custom jest matchers for asserting on DOM nodes.
|
||||||
|
// allows you to do things like:
|
||||||
|
// expect(element).toHaveTextContent(/react/i)
|
||||||
|
// learn more: https://github.com/testing-library/jest-dom
|
||||||
|
//import '@testing-library/jest-dom';
|