├── .gitignore
├── README.md
├── package.json
├── public
├── _redirects
├── index.html
├── logo.png
├── manifest.json
└── robots.txt
├── src
├── App.js
├── App.test.js
├── components
│ ├── Chat
│ │ ├── Answer.js
│ │ ├── Chat.scss
│ │ ├── Message.js
│ │ ├── Typing.js
│ │ ├── data.js
│ │ └── index.js
│ ├── Container
│ │ ├── Container.scss
│ │ └── index.js
│ ├── Footer
│ │ ├── Footer.scss
│ │ └── index.js
│ ├── Header
│ │ ├── Header.scss
│ │ └── index.js
│ ├── Loader
│ │ ├── Loader.scss
│ │ └── index.js
│ ├── Portfolio
│ │ ├── Portfolio.scss
│ │ ├── data.js
│ │ ├── index.js
│ │ └── project.js
│ └── index.js
├── images
│ ├── Github.js
│ ├── LinkedIn.js
│ ├── Logo.js
│ ├── chat.svg
│ ├── head.jpeg
│ ├── head.jpg
│ ├── head.svg
│ ├── index.js
│ └── showcase
│ │ ├── cpr-how_99715-114.jpg
│ │ ├── do386.svg
│ │ ├── do386_logo_q.68383ae1.png
│ │ ├── first-aid-emergency-flat-icons-set_1284-9666 (1).jpg
│ │ ├── first-aid-emergency-flat-icons-set_1284-9666.jpg
│ │ ├── first-aid-techniques-guide-infographic-poster_1284-9667.jpg
│ │ ├── maxout.svg
│ │ ├── muellkoenig.svg
│ │ ├── p365.svg
│ │ ├── palabg.jpg
│ │ ├── scan.svg
│ │ ├── tymelog.svg
│ │ └── wonderquiz.svg
├── index.js
├── logo.svg
├── serviceWorker.js
├── setupTests.js
└── styles
│ ├── globals.scss
│ ├── index.scss
│ └── variables.scss
└── yarn.lock
/.gitignore:
--------------------------------------------------------------------------------
1 | # See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2 |
3 | # dependencies
4 | /node_modules
5 | /.pnp
6 | .pnp.js
7 |
8 | # testing
9 | /coverage
10 |
11 | # production
12 | /build
13 |
14 | # misc
15 | .DS_Store
16 | .env.local
17 | .env.development.local
18 | .env.test.local
19 | .env.production.local
20 |
21 | npm-debug.log*
22 | yarn-debug.log*
23 | yarn-error.log*
24 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | ## Website 2.0
2 |
3 | https://westhofen.netlify.app
4 |
--------------------------------------------------------------------------------
/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "westhofen20",
3 | "version": "0.1.0",
4 | "private": true,
5 | "dependencies": {
6 | "@testing-library/jest-dom": "^4.2.4",
7 | "@testing-library/react": "^9.3.2",
8 | "@testing-library/user-event": "^7.1.2",
9 | "framer-motion": "^2.6.15",
10 | "node-sass": "^4.14.1",
11 | "react": "^16.13.1",
12 | "react-dom": "^16.13.1",
13 | "react-router-dom": "^5.2.0",
14 | "react-scripts": "3.4.3",
15 | "react-sound": "^1.2.0"
16 | },
17 | "scripts": {
18 | "start": "react-scripts start",
19 | "build": "react-scripts build",
20 | "test": "react-scripts test",
21 | "eject": "react-scripts eject"
22 | },
23 | "eslintConfig": {
24 | "extends": "react-app"
25 | },
26 | "browserslist": {
27 | "production": [
28 | ">0.2%",
29 | "not dead",
30 | "not op_mini all"
31 | ],
32 | "development": [
33 | "last 1 chrome version",
34 | "last 1 firefox version",
35 | "last 1 safari version"
36 | ]
37 | }
38 | }
39 |
--------------------------------------------------------------------------------
/public/_redirects:
--------------------------------------------------------------------------------
1 | /* /index.html 200
--------------------------------------------------------------------------------
/public/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
12 |
13 |
17 |
21 |
22 |
31 | Magnus Westhofen - Designer & Developer
32 |
33 |
34 |
35 |
36 |
46 |
47 |
48 |
--------------------------------------------------------------------------------
/public/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/groev/westhofen20/74a526f5d0e0c0befb8c8ddccf84a10e71d1a823/public/logo.png
--------------------------------------------------------------------------------
/public/manifest.json:
--------------------------------------------------------------------------------
1 | {
2 | "short_name": "React App",
3 | "name": "Magnus Westhofen",
4 | "icons": [
5 | {
6 | "src": "logo.png",
7 | "sizes": "64x64 32x32 24x24 16x16",
8 | "type": "image/png"
9 | },
10 | {
11 | "src": "logo.png",
12 | "type": "image/png",
13 | "sizes": "192x192"
14 | },
15 | {
16 | "src": "logo.png",
17 | "type": "image/png",
18 | "sizes": "512x512"
19 | }
20 | ],
21 | "start_url": ".",
22 | "display": "standalone",
23 | "theme_color": "#000000",
24 | "background_color": "#ffffff"
25 | }
26 |
--------------------------------------------------------------------------------
/public/robots.txt:
--------------------------------------------------------------------------------
1 | # https://www.robotstxt.org/robotstxt.html
2 | User-agent: *
3 | Disallow:
4 |
--------------------------------------------------------------------------------
/src/App.js:
--------------------------------------------------------------------------------
1 | import React, { useLayoutEffect, useState } from "react";
2 | import "./styles/index.scss";
3 | import { BrowserRouter, Switch, Route } from "react-router-dom";
4 | import {
5 | Header,
6 | Container,
7 | Chat,
8 | Portfolio,
9 | Footer,
10 | Loader,
11 | } from "./components";
12 |
13 | function App() {
14 | const [isLoading, setIsLoading] = useState(true);
15 | useLayoutEffect(() => {
16 | setTimeout(() => {
17 | setIsLoading(false);
18 | }, 2500);
19 | }, []);
20 | return (
21 |
22 |
23 | {!isLoading && (
24 |
25 | {" "}
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 | )}
38 |
39 |
40 |
41 | );
42 | }
43 |
44 | export default App;
45 |
--------------------------------------------------------------------------------
/src/App.test.js:
--------------------------------------------------------------------------------
1 | import React from 'react';
2 | import { render } from '@testing-library/react';
3 | import App from './App';
4 |
5 | test('renders learn react link', () => {
6 | const { getByText } = render();
7 | const linkElement = getByText(/learn react/i);
8 | expect(linkElement).toBeInTheDocument();
9 | });
10 |
--------------------------------------------------------------------------------
/src/components/Chat/Answer.js:
--------------------------------------------------------------------------------
1 | import React from "react";
2 | import { Link } from "react-router-dom";
3 |
4 | export default function Answer({ data }) {
5 | return (
6 |
7 | {data.label}
8 |
9 | );
10 | }
11 |
--------------------------------------------------------------------------------
/src/components/Chat/Chat.scss:
--------------------------------------------------------------------------------
1 | @import "../../styles/variables.scss";
2 |
3 | .Chat {
4 | min-height: calc(100vh - 100px);
5 | @include flexCenter;
6 | .Head {
7 | height: 130px;
8 | width: auto;
9 | margin-bottom: 2rem;
10 | display: block;
11 | border: 1px solid #ccc;
12 | border-radius: 50%;
13 | }
14 | .Window {
15 | max-width: 400px;
16 | }
17 | .MessageContainer {
18 | .Message {
19 | margin-right: 2rem;
20 | background: $color1;
21 | border-radius: 10px;
22 | display: inline-block;
23 | color: $color2;
24 | padding: 0.5rem 1rem;
25 | margin: 0 2rem 0.5rem 0;
26 | .Typing {
27 | display: flex;
28 | justify-content: center;
29 | svg {
30 | height: 10px;
31 | width: auto;
32 | }
33 | }
34 | }
35 | }
36 | .AnswerContainer {
37 | margin-top: 2rem;
38 | .Answer {
39 | @include ease;
40 | border: 1px solid $color1;
41 | border-radius: 10px;
42 | color: $color1;
43 | padding: 0.5rem 1rem;
44 | margin: 0 2rem 0.5rem 0;
45 | float: right;
46 | text-decoration: none;
47 | &:hover {
48 | background: $color1;
49 | color: $color2;
50 | @include ease;
51 | }
52 | }
53 | }
54 | .Typing {
55 | background: rgba(0, 0, 0, 0.2);
56 | display: inline-block;
57 | border-radius: 10px;
58 | padding: 0.5rem 1rem;
59 | svg {
60 | height: 10px;
61 | width: auto;
62 | }
63 | }
64 | }
65 |
--------------------------------------------------------------------------------
/src/components/Chat/Message.js:
--------------------------------------------------------------------------------
1 | import React from 'react';
2 |
3 | export default function Message({ message }) {
4 | return {message}
;
5 | }
6 |
--------------------------------------------------------------------------------
/src/components/Chat/Typing.js:
--------------------------------------------------------------------------------
1 | import React from "react";
2 |
3 | export default function Typing() {
4 | return (
5 |
6 |
43 |
44 | );
45 | }
46 |
--------------------------------------------------------------------------------
/src/components/Chat/data.js:
--------------------------------------------------------------------------------
1 | const data = [
2 | {
3 | slug: 'start',
4 | messages: [
5 | 'Hey, nice to meet you. Welcome to my personal website.',
6 | 'How can I help you?',
7 | ],
8 | answers: [
9 | { label: 'Tell me a little about yourself.', link: '/chat/bio' },
10 | { label: 'Show me your projects!', link: '/chat/portfolio' },
11 | { label: 'How can I contact you?', link: '/chat/contact' },
12 | ],
13 | },
14 | {
15 | slug: 'bio',
16 | messages: [
17 | "My name is Magnus and I'm from Solingen, Germany and I'm 30 years old.",
18 | "I've been designing and developing stuff for the web since I'm 14. The first website I've done was for my CS clan ;-)",
19 | 'I am working for a small agency shop in Solingen and my main focus is building cool frontends with React.',
20 | ],
21 | answers: [
22 | { label: 'What technologies are you using?', link: '/chat/tech' },
23 | { label: "Show me some stuff you've done.", link: '/chat/portfolio' },
24 | ],
25 | },
26 | {
27 | slug: 'tech',
28 | messages: [
29 | "I love building with React right now, but I don't shy away from vanilla CSS/HTML and Javascript if needed.",
30 | 'I really like using serverless/jamstacky backends like Firebase, but I can spin up some basic node Backend stack if needed.',
31 | 'My guilty pleasure is developing with/for WordPress. Especially using it as headless CMS to power React Frontends.',
32 | ],
33 | answers: [
34 | { label: 'Cool, show me some projects', link: '/chat/portfolio' },
35 | ],
36 | },
37 | {
38 | slug: 'contact',
39 | messages: [
40 | 'You can contact me on Github and LinkedIn, the links are in the right corner of this page.',
41 | 'Or just simply hit me up at magnus@westhofen.me ...',
42 | ],
43 | answers: [
44 | {
45 | label: "Okay! Let's start again.",
46 | link: '/chat/start/completed',
47 | },
48 | ],
49 | },
50 | {
51 | slug: 'portfolio',
52 | messages: ['Wait a second, let me get my projects ...'],
53 | },
54 | ];
55 |
56 | export default data;
57 |
--------------------------------------------------------------------------------
/src/components/Chat/index.js:
--------------------------------------------------------------------------------
1 | import React, { useEffect, useState } from "react";
2 | import "./Chat.scss";
3 | import { useParams, useHistory } from "react-router-dom";
4 | import data from "./data";
5 | import Message from "./Message";
6 | import Answer from "./Answer";
7 | import Typing from "./Typing";
8 | import { Head } from "../../images";
9 | import { motion } from "framer-motion";
10 |
11 | export default function Chat() {
12 | const history = useHistory();
13 | const { slug, status } = useParams();
14 | const currentDialog = data.find((dialog) => dialog.slug === slug) || data[0];
15 | const [messages, setMessages] = useState([]);
16 | const [completed, setCompleted] = useState(false);
17 |
18 | useEffect(() => {
19 | setMessages([]);
20 | setCompleted(false);
21 | if (status !== "completed") {
22 | currentDialog.messages &&
23 | currentDialog.messages.forEach((message, idx) => {
24 | setTimeout(function () {
25 | setMessages((prevMessages) => [...prevMessages, message]);
26 | if (idx + 1 === currentDialog.messages.length) {
27 | setTimeout(function () {
28 | if (slug === "portfolio") {
29 | history.push("/portfolio");
30 | }
31 | setCompleted(true);
32 | }, 1500);
33 | }
34 | }, idx * 1500);
35 | });
36 | } else {
37 | setMessages(currentDialog.messages);
38 | setCompleted(true);
39 | }
40 | }, [slug, status]);
41 |
42 | const containerMotion = {
43 | show: {
44 | transition: {
45 | staggerChildren: 1,
46 | },
47 | },
48 | };
49 |
50 | const itemMotion = {
51 | hidden: { x: -100, scale: 0, opacity: 0 },
52 | show: { x: 0, opacity: 1, scale: 1 },
53 | };
54 |
55 | return (
56 |
57 |
63 |
64 |
65 | {messages &&
66 | messages.map((message, idx) => {
67 | return (
68 |
69 |
70 |
71 | );
72 | })}
73 |
74 | {!completed && }
75 |
76 | {completed &&
77 | currentDialog.answers &&
78 | currentDialog.answers.map((message, idx) => {
79 | return (
80 |
81 |
82 |
83 | );
84 | })}
85 |
86 |
87 |
88 | );
89 | }
90 |
--------------------------------------------------------------------------------
/src/components/Container/Container.scss:
--------------------------------------------------------------------------------
1 | .Container {
2 | padding: 0.5rem 0.5rem 4rem 0.5rem;
3 | }
4 |
--------------------------------------------------------------------------------
/src/components/Container/index.js:
--------------------------------------------------------------------------------
1 | import React from "react";
2 | import "./Container.scss";
3 |
4 | export default function Container({ children }) {
5 | return (
6 |
7 | {children}
8 |
9 | );
10 | }
11 |
--------------------------------------------------------------------------------
/src/components/Footer/Footer.scss:
--------------------------------------------------------------------------------
1 | @import '../../styles/variables.scss';
2 |
3 | .Footer {
4 | background: $color1;
5 | padding: 2rem;
6 | @include flexCenter;
7 | flex-direction: column;
8 | color: $color2;
9 | font-size: 12px;
10 | svg {
11 | margin-bottom: 2rem;
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/src/components/Footer/index.js:
--------------------------------------------------------------------------------
1 | import React from "react";
2 | import "./Footer.scss";
3 | import { Logo } from "../../images";
4 |
5 | export default function Footer() {
6 | return (
7 |
11 | );
12 | }
13 |
--------------------------------------------------------------------------------
/src/components/Header/Header.scss:
--------------------------------------------------------------------------------
1 | @import "../../styles/variables.scss";
2 |
3 | .Header {
4 | display: flex;
5 | justify-content: space-between;
6 | padding: 0.5rem 1rem 0.5rem 0.5rem;
7 | align-items: center;
8 | height: 100px;
9 | .Logo {
10 | svg {
11 | height: 80px;
12 | width: auto;
13 | @include ease;
14 | }
15 | &:hover {
16 | @include ease;
17 | transform: scale(1.1);
18 | }
19 | }
20 | .MainMenu {
21 | ul {
22 | margin: 0;
23 | li {
24 | float: left;
25 | margin-right: 0.5rem;
26 | list-style: none;
27 | a {
28 | display: inline-block;
29 | @include ease;
30 | svg {
31 | height: 2rem;
32 | width: auto;
33 | }
34 | &:hover {
35 | @include ease;
36 | transform: scale(1.1);
37 | }
38 | }
39 | }
40 | }
41 | }
42 | }
43 |
--------------------------------------------------------------------------------
/src/components/Header/index.js:
--------------------------------------------------------------------------------
1 | import React from "react";
2 | import "./Header.scss";
3 | import { Link } from "react-router-dom";
4 | import { Logo, Github, LinkedIn } from "../../images";
5 |
6 | export default function Header() {
7 | return (
8 |
9 |
10 |
11 |
12 |
34 |
35 | );
36 | }
37 |
--------------------------------------------------------------------------------
/src/components/Loader/Loader.scss:
--------------------------------------------------------------------------------
1 | @import "../../styles/variables.scss";
2 |
3 | .Loader {
4 | text-align: center;
5 | background: $color1;
6 | position: fixed;
7 | @include flexCenter;
8 | position: fixed;
9 | top: 0;
10 | left: 0;
11 | right: 0;
12 | bottom: 0;
13 | svg {
14 | max-width: 200px;
15 | height: auto;
16 | }
17 | }
18 |
--------------------------------------------------------------------------------
/src/components/Loader/index.js:
--------------------------------------------------------------------------------
1 | import React from "react";
2 | import "./Loader.scss";
3 | import { motion, AnimatePresence } from "framer-motion";
4 |
5 | export default function Loader({ isLoading }) {
6 | return (
7 |
8 | {isLoading && (
9 |
19 |
62 |
63 | )}
64 |
65 | );
66 | }
67 |
--------------------------------------------------------------------------------
/src/components/Portfolio/Portfolio.scss:
--------------------------------------------------------------------------------
1 | @import '../../styles/variables.scss';
2 |
3 | .Portfolio {
4 | max-width: 1000px;
5 | margin: 0 auto;
6 |
7 | h1 {
8 | @media (max-width: 800px) {
9 | font-size: 1.5rem;
10 | }
11 | }
12 | .backButton {
13 | color: $color1;
14 | text-decoration: none;
15 | font-weight: bold;
16 | &:hover {
17 | text-decoration: underline;
18 | }
19 | img {
20 | height: 20px;
21 | width: auto;
22 | margin-bottom: -3px;
23 | margin-right: 3px;
24 | }
25 | }
26 | .grid {
27 | margin-top: 4rem;
28 | grid-template-columns: 1fr 1fr 1fr;
29 | display: grid;
30 | grid-gap: 1rem;
31 | @media (max-width: $breakMobile) {
32 | grid-template-columns: 1fr;
33 | }
34 | .Project {
35 | background: #000;
36 | border-radius: 10px;
37 | height: 200px;
38 | color: #fff;
39 | position: relative;
40 | overflow: hidden;
41 | @media (max-width: $breakMobile) {
42 | height: 150px;
43 | grid-gap: 0.5rem;
44 | }
45 | .front,
46 | .back {
47 | position: absolute;
48 | left: 0;
49 | top: 0;
50 | width: 100%;
51 | height: 100%;
52 | font-size: 2rem;
53 | padding: 30px;
54 | @include ease;
55 | @include flexCenter;
56 | text-align: center;
57 | color: $color2;
58 | overflow: hidden;
59 | img {
60 | max-height: 80%;
61 | width: auto;
62 | height: auto;
63 | max-width: 50%;
64 | }
65 | }
66 |
67 | .back {
68 | transform: translateY(100%);
69 | font-size: 1rem;
70 | a {
71 | margin: 5px;
72 | display: inline-block;
73 | background: $color2;
74 | border-radius: 5px;
75 | padding: 5px 10px;
76 | text-decoration: none;
77 | color: $color1;
78 | @include ease;
79 | &:hover {
80 | @include ease;
81 | background: $color1;
82 | color: $color2;
83 | }
84 | }
85 | }
86 | &:hover .front {
87 | @include ease;
88 | transform: translateY(-100%);
89 | }
90 | &:hover .back {
91 | @include ease;
92 | transform: translateY(0);
93 | }
94 | }
95 | }
96 | }
97 |
--------------------------------------------------------------------------------
/src/components/Portfolio/data.js:
--------------------------------------------------------------------------------
1 | import MKLogo from "../../images/showcase/muellkoenig.svg";
2 | import p365 from "../../images/showcase/p365.svg";
3 | import tymelog from "../../images/showcase/tymelog.svg";
4 | import maxout from "../../images/showcase/maxout.svg";
5 | import do386 from "../../images/showcase/do386.svg";
6 | import QRLogo from "../../images/showcase/scan.svg";
7 | import WQLogo from "../../images/showcase/wonderquiz.svg";
8 |
9 | const Project = [
10 | {
11 | name: "wonderquiz",
12 | logo: WQLogo,
13 | beschreibung: "Creating beautiful quiz-applications.",
14 | github: "",
15 | demo: "https://wonderquiz.app",
16 | },
17 | {
18 | name: "WP React App Importer",
19 | beschreibung: "Easily import your CRA App into wordpress.",
20 | github: "https://github.com/groev/wp-react-app-importer",
21 | },
22 | {
23 | name: "Paladins 365",
24 | logo: p365,
25 | beschreibung:
26 | "Fan app for the Solingen Paladins. Live scores, online-ticketing and more. Build with react, wordpress & firebase",
27 | github: "",
28 | demo:
29 | "https://play.google.com/store/apps/details?id=com.westhofen.android.paladins&hl=de",
30 | },
31 | {
32 | name: "Müllkönig",
33 | logo: MKLogo,
34 | beschreibung:
35 | "Simple game for praciting responsibility. Sort your trash the right way. Build with react",
36 | github: "https://github.com/groev/muellkoenig",
37 | demo: "http://muellkoenig.westhofen.me",
38 | },
39 | {
40 | name: "tymelog",
41 | logo: tymelog,
42 | beschreibung:
43 | "Track your Wordpress hours automatically. Build with mern stack.",
44 | demo: "https://tymelog.netlify.app/",
45 | },
46 | {
47 | name: "max out",
48 | logo: maxout,
49 | beschreibung:
50 | "Simple app for increasing your one rep max in the weightroom. Build with react.",
51 | demo: "https://max-out.netlify.app/",
52 | github: "https://github.com/groev/max-out",
53 | },
54 | {
55 | name: "do386",
56 | logo: do386,
57 | beschreibung:
58 | "Really simple todo app in 386 style. Build with react & firebase.",
59 | github: "https://github.com/groev/do386",
60 | demo: "https://do386.netlify.app",
61 | },
62 |
63 | {
64 | name: "QR code participation",
65 | logo: QRLogo,
66 | beschreibung:
67 | "Solving the problem of paper filling at local businesses in the wake of Covid-19",
68 | github: "https://github.com/groev/qr-code-participation-system",
69 | demo: "https://scanner.westhofen.me",
70 | },
71 | {
72 | name: "React Gravitiy Sort",
73 | beschreibung: "Adaptable game idea, making use of React and framer-motion.",
74 | github: "https://github.com/groev/react-gravity-sort",
75 | demo: "https://sort-presidents.netlify.app",
76 | },
77 | {
78 | name: "Options value calculator",
79 | beschreibung: "Calculating the value of an option based on black-scholes.",
80 | github: "https://github.com/groev/options-value",
81 | demo: "https://options-value.netlify.app/",
82 | },
83 | {
84 | name: "Covid-Town",
85 | beschreibung: "Game to visualize the impact of a viral disease.",
86 | github: "https://github.com/groev/covid-town",
87 | demo: "https://covidtown.netlify.app/game",
88 | },
89 | ];
90 | export default Project;
91 |
--------------------------------------------------------------------------------
/src/components/Portfolio/index.js:
--------------------------------------------------------------------------------
1 | import React from "react";
2 | import Project from "./project";
3 | import Projects from "./data";
4 | import { Link } from "react-router-dom";
5 | import { motion } from "framer-motion";
6 | import { Chat } from "../../images";
7 | import "./Portfolio.scss";
8 |
9 | export default function Portfolio() {
10 | const item = {
11 | hidden: { opacity: 0 },
12 | show: { opacity: 1 },
13 | };
14 |
15 | return (
16 |
17 | Here are some of my personal Projects
18 |
19 |
Go back to chatting.
20 |
21 |
22 | {Projects.map((project) => {
23 | return (
24 |
25 |
26 |
27 | );
28 | })}
29 |
30 |
31 | );
32 | }
33 |
--------------------------------------------------------------------------------
/src/components/Portfolio/project.js:
--------------------------------------------------------------------------------
1 | import React from "react";
2 |
3 | export default function Project(props) {
4 | return (
5 |
6 |
7 | {props.data.logo ? (
8 |

9 | ) : (
10 | props.data.name
11 | )}
12 |
13 |
32 |
33 | );
34 | }
35 |
--------------------------------------------------------------------------------
/src/components/index.js:
--------------------------------------------------------------------------------
1 | import Header from "./Header";
2 | import Container from "./Container";
3 | import Chat from "./Chat";
4 | import Portfolio from "./Portfolio";
5 | import Footer from "./Footer";
6 | import Loader from "./Loader";
7 |
8 | export { Header, Container, Chat, Portfolio, Footer, Loader };
9 |
--------------------------------------------------------------------------------
/src/images/Github.js:
--------------------------------------------------------------------------------
1 | import React from "react";
2 |
3 | export default function Github({ color }) {
4 | return (
5 |
14 | );
15 | }
16 |
17 | Github.defaultProps = {
18 | color: "#000",
19 | };
20 |
--------------------------------------------------------------------------------
/src/images/LinkedIn.js:
--------------------------------------------------------------------------------
1 | import React from "react";
2 |
3 | export default function LinkedIn({ color }) {
4 | return (
5 |
31 | );
32 | }
33 |
34 | LinkedIn.defaultProps = {
35 | color: "#000",
36 | };
37 |
--------------------------------------------------------------------------------
/src/images/Logo.js:
--------------------------------------------------------------------------------
1 | import React from "react";
2 |
3 | export default function Logo({ color }) {
4 | return (
5 |
27 | );
28 | }
29 |
30 | Logo.defaultProps = {
31 | color: "#FFF",
32 | };
33 |
--------------------------------------------------------------------------------
/src/images/chat.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/src/images/head.jpeg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/groev/westhofen20/74a526f5d0e0c0befb8c8ddccf84a10e71d1a823/src/images/head.jpeg
--------------------------------------------------------------------------------
/src/images/head.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/groev/westhofen20/74a526f5d0e0c0befb8c8ddccf84a10e71d1a823/src/images/head.jpg
--------------------------------------------------------------------------------
/src/images/head.svg:
--------------------------------------------------------------------------------
1 |
2 |
88 |
--------------------------------------------------------------------------------
/src/images/index.js:
--------------------------------------------------------------------------------
1 | import Logo from "./Logo";
2 | import Github from "./Github";
3 | import LinkedIn from "./LinkedIn";
4 | import Head from "./head.jpg";
5 | import Chat from "./chat.svg";
6 |
7 | export { Logo, Github, LinkedIn, Head, Chat };
8 |
--------------------------------------------------------------------------------
/src/images/showcase/cpr-how_99715-114.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/groev/westhofen20/74a526f5d0e0c0befb8c8ddccf84a10e71d1a823/src/images/showcase/cpr-how_99715-114.jpg
--------------------------------------------------------------------------------
/src/images/showcase/do386.svg:
--------------------------------------------------------------------------------
1 |
2 |
137 |
--------------------------------------------------------------------------------
/src/images/showcase/do386_logo_q.68383ae1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/groev/westhofen20/74a526f5d0e0c0befb8c8ddccf84a10e71d1a823/src/images/showcase/do386_logo_q.68383ae1.png
--------------------------------------------------------------------------------
/src/images/showcase/first-aid-emergency-flat-icons-set_1284-9666 (1).jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/groev/westhofen20/74a526f5d0e0c0befb8c8ddccf84a10e71d1a823/src/images/showcase/first-aid-emergency-flat-icons-set_1284-9666 (1).jpg
--------------------------------------------------------------------------------
/src/images/showcase/first-aid-emergency-flat-icons-set_1284-9666.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/groev/westhofen20/74a526f5d0e0c0befb8c8ddccf84a10e71d1a823/src/images/showcase/first-aid-emergency-flat-icons-set_1284-9666.jpg
--------------------------------------------------------------------------------
/src/images/showcase/first-aid-techniques-guide-infographic-poster_1284-9667.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/groev/westhofen20/74a526f5d0e0c0befb8c8ddccf84a10e71d1a823/src/images/showcase/first-aid-techniques-guide-infographic-poster_1284-9667.jpg
--------------------------------------------------------------------------------
/src/images/showcase/maxout.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
18 |
--------------------------------------------------------------------------------
/src/images/showcase/muellkoenig.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
62 |
--------------------------------------------------------------------------------
/src/images/showcase/p365.svg:
--------------------------------------------------------------------------------
1 |
2 |
46 |
--------------------------------------------------------------------------------
/src/images/showcase/palabg.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/groev/westhofen20/74a526f5d0e0c0befb8c8ddccf84a10e71d1a823/src/images/showcase/palabg.jpg
--------------------------------------------------------------------------------
/src/images/showcase/scan.svg:
--------------------------------------------------------------------------------
1 |
9 |
--------------------------------------------------------------------------------
/src/images/showcase/tymelog.svg:
--------------------------------------------------------------------------------
1 |
2 |
69 |
--------------------------------------------------------------------------------
/src/images/showcase/wonderquiz.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/src/index.js:
--------------------------------------------------------------------------------
1 | import React from "react";
2 | import ReactDOM from "react-dom";
3 | import App from "./App";
4 | import * as serviceWorker from "./serviceWorker";
5 |
6 | ReactDOM.render(
7 |
8 |
9 | ,
10 | document.getElementById("root")
11 | );
12 |
13 | // If you want your app to work offline and load faster, you can change
14 | // unregister() to register() below. Note this comes with some pitfalls.
15 | // Learn more about service workers: https://bit.ly/CRA-PWA
16 | serviceWorker.unregister();
17 |
--------------------------------------------------------------------------------
/src/logo.svg:
--------------------------------------------------------------------------------
1 |
8 |
--------------------------------------------------------------------------------
/src/serviceWorker.js:
--------------------------------------------------------------------------------
1 | // This optional code is used to register a service worker.
2 | // register() is not called by default.
3 |
4 | // This lets the app load faster on subsequent visits in production, and gives
5 | // it offline capabilities. However, it also means that developers (and users)
6 | // will only see deployed updates on subsequent visits to a page, after all the
7 | // existing tabs open on the page have been closed, since previously cached
8 | // resources are updated in the background.
9 |
10 | // To learn more about the benefits of this model and instructions on how to
11 | // opt-in, read https://bit.ly/CRA-PWA
12 |
13 | const isLocalhost = Boolean(
14 | window.location.hostname === 'localhost' ||
15 | // [::1] is the IPv6 localhost address.
16 | window.location.hostname === '[::1]' ||
17 | // 127.0.0.0/8 are considered localhost for IPv4.
18 | window.location.hostname.match(
19 | /^127(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/
20 | )
21 | );
22 |
23 | export function register(config) {
24 | if (process.env.NODE_ENV === 'production' && 'serviceWorker' in navigator) {
25 | // The URL constructor is available in all browsers that support SW.
26 | const publicUrl = new URL(process.env.PUBLIC_URL, window.location.href);
27 | if (publicUrl.origin !== window.location.origin) {
28 | // Our service worker won't work if PUBLIC_URL is on a different origin
29 | // from what our page is served on. This might happen if a CDN is used to
30 | // serve assets; see https://github.com/facebook/create-react-app/issues/2374
31 | return;
32 | }
33 |
34 | window.addEventListener('load', () => {
35 | const swUrl = `${process.env.PUBLIC_URL}/service-worker.js`;
36 |
37 | if (isLocalhost) {
38 | // This is running on localhost. Let's check if a service worker still exists or not.
39 | checkValidServiceWorker(swUrl, config);
40 |
41 | // Add some additional logging to localhost, pointing developers to the
42 | // service worker/PWA documentation.
43 | navigator.serviceWorker.ready.then(() => {
44 | console.log(
45 | 'This web app is being served cache-first by a service ' +
46 | 'worker. To learn more, visit https://bit.ly/CRA-PWA'
47 | );
48 | });
49 | } else {
50 | // Is not localhost. Just register service worker
51 | registerValidSW(swUrl, config);
52 | }
53 | });
54 | }
55 | }
56 |
57 | function registerValidSW(swUrl, config) {
58 | navigator.serviceWorker
59 | .register(swUrl)
60 | .then(registration => {
61 | registration.onupdatefound = () => {
62 | const installingWorker = registration.installing;
63 | if (installingWorker == null) {
64 | return;
65 | }
66 | installingWorker.onstatechange = () => {
67 | if (installingWorker.state === 'installed') {
68 | if (navigator.serviceWorker.controller) {
69 | // At this point, the updated precached content has been fetched,
70 | // but the previous service worker will still serve the older
71 | // content until all client tabs are closed.
72 | console.log(
73 | 'New content is available and will be used when all ' +
74 | 'tabs for this page are closed. See https://bit.ly/CRA-PWA.'
75 | );
76 |
77 | // Execute callback
78 | if (config && config.onUpdate) {
79 | config.onUpdate(registration);
80 | }
81 | } else {
82 | // At this point, everything has been precached.
83 | // It's the perfect time to display a
84 | // "Content is cached for offline use." message.
85 | console.log('Content is cached for offline use.');
86 |
87 | // Execute callback
88 | if (config && config.onSuccess) {
89 | config.onSuccess(registration);
90 | }
91 | }
92 | }
93 | };
94 | };
95 | })
96 | .catch(error => {
97 | console.error('Error during service worker registration:', error);
98 | });
99 | }
100 |
101 | function checkValidServiceWorker(swUrl, config) {
102 | // Check if the service worker can be found. If it can't reload the page.
103 | fetch(swUrl, {
104 | headers: { 'Service-Worker': 'script' },
105 | })
106 | .then(response => {
107 | // Ensure service worker exists, and that we really are getting a JS file.
108 | const contentType = response.headers.get('content-type');
109 | if (
110 | response.status === 404 ||
111 | (contentType != null && contentType.indexOf('javascript') === -1)
112 | ) {
113 | // No service worker found. Probably a different app. Reload the page.
114 | navigator.serviceWorker.ready.then(registration => {
115 | registration.unregister().then(() => {
116 | window.location.reload();
117 | });
118 | });
119 | } else {
120 | // Service worker found. Proceed as normal.
121 | registerValidSW(swUrl, config);
122 | }
123 | })
124 | .catch(() => {
125 | console.log(
126 | 'No internet connection found. App is running in offline mode.'
127 | );
128 | });
129 | }
130 |
131 | export function unregister() {
132 | if ('serviceWorker' in navigator) {
133 | navigator.serviceWorker.ready
134 | .then(registration => {
135 | registration.unregister();
136 | })
137 | .catch(error => {
138 | console.error(error.message);
139 | });
140 | }
141 | }
142 |
--------------------------------------------------------------------------------
/src/setupTests.js:
--------------------------------------------------------------------------------
1 | // jest-dom adds custom jest matchers for asserting on DOM nodes.
2 | // allows you to do things like:
3 | // expect(element).toHaveTextContent(/react/i)
4 | // learn more: https://github.com/testing-library/jest-dom
5 | import '@testing-library/jest-dom/extend-expect';
6 |
--------------------------------------------------------------------------------
/src/styles/globals.scss:
--------------------------------------------------------------------------------
1 | body {
2 | margin: 0;
3 | padding: 0;
4 | font-family: "Ubuntu", sans-serif;
5 | }
6 |
7 | * {
8 | box-sizing: border-box;
9 | }
10 |
--------------------------------------------------------------------------------
/src/styles/index.scss:
--------------------------------------------------------------------------------
1 | @import './globals.scss';
2 | @import './variables.scss';
3 |
--------------------------------------------------------------------------------
/src/styles/variables.scss:
--------------------------------------------------------------------------------
1 | $color1: #000;
2 | $color2: #fff;
3 | $breakMobile: 800px;
4 |
5 | @mixin ease {
6 | transition: all 0.3s ease;
7 | }
8 |
9 | @mixin flexCenter {
10 | display: flex;
11 | align-items: center;
12 | justify-content: center;
13 | }
14 |
--------------------------------------------------------------------------------