Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add project page #41

Merged
merged 9 commits into from
Jun 14, 2024
Merged
Show file tree
Hide file tree
Changes from 7 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,13 @@
"dependencies": {
"@splidejs/react-splide": "^0.7.12",
"react": "^18.2.0",
"react-dom": "^18.2.0"
"react-dom": "^18.2.0",
"react-router-dom": "^6.23.1"
},
"devDependencies": {
"@types/react": "^18.2.66",
"@types/react-dom": "^18.2.22",
"@types/react-router-dom": "^5.3.3",
"@typescript-eslint/eslint-plugin": "^7.2.0",
"@typescript-eslint/parser": "^7.2.0",
"@vitejs/plugin-react": "^4.2.1",
Expand Down
3 changes: 3 additions & 0 deletions public/assets/svg/background/general-light-dot.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
32 changes: 32 additions & 0 deletions src/data/processSteps.tsx
choffmann marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
export const steps = [
{
label: "Konzepterstellung",
shortName: "Konzept",
isCurrent: false,
description: "Occaecat in dolor eiusmod fugiat. Excepteur proident nostrud aliquip esse ut nostrud in ut esse. Proident ut consequat consequat consectetur magna."
},
{
label: "MVP (Minimum Valible Product)",
shortName: "MVP",
isCurrent: true,
description: "Occaecat in dolor eiusmod fugiat. Excepteur proident nostrud aliquip esse ut nostrud in ut esse. Proident ut consequat consequat consectetur magna."
},
{
label: "Projektvorstellung 01",
shortName: "Vorstellung 01",
isCurrent: false,
description: "Occaecat in dolor eiusmod fugiat. Excepteur proident nostrud aliquip esse ut nostrud in ut esse. Proident ut consequat consequat consectetur magna."
},
{
label: "Projektvorstellung 02",
shortName: "Vorstellung 02",
isCurrent: false,
description: "Occaecat in dolor eiusmod fugiat. Excepteur proident nostrud aliquip esse ut nostrud in ut esse. Proident ut consequat consequat consectetur magna."
},
{
label: "Finale Vorstellung",
shortName: "Finalisierung",
isCurrent: false,
description: "Occaecat in dolor eiusmod fugiat. Excepteur proident nostrud aliquip esse ut nostrud in ut esse. Proident ut consequat consequat consectetur magna."
},
];
2 changes: 0 additions & 2 deletions src/main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,7 @@ import './css/site.css'
ReactDOM.createRoot(document.getElementById('root')!).render(
<React.StrictMode>
<Header />
<main>
<App />
</main>
<Footer />
</React.StrictMode>,
)
25 changes: 12 additions & 13 deletions src/tsx/App.tsx
Original file line number Diff line number Diff line change
@@ -1,17 +1,16 @@
import Faq from "./components/sections/Faq";
import Introduction from "./components/sections/Introduction";
import Process from "./components/sections/Process";
import Stakeholder from "./components/sections/Stakeholder";
import { BrowserRouter, Routes, Route } from "react-router-dom";
import HomePage from "./pages/HomePage";
import ProjectPage from "./pages/ProjectPage";

function App() {
export default function App() {
return (
<div>
<Introduction />
<Process />
<Stakeholder />
<Faq />
</div>
<BrowserRouter>
<Routes>
<Route path="/">
<Route index element={<HomePage />} />
<Route path="projekt" element={<ProjectPage />} />
</Route>
</Routes>
</BrowserRouter>
);
}

export default App;
choffmann marked this conversation as resolved.
Show resolved Hide resolved
239 changes: 0 additions & 239 deletions src/tsx/FakeProgress.tsx

This file was deleted.

20 changes: 10 additions & 10 deletions src/tsx/components/Button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,16 @@ interface ButtonProps {
}

const Button: React.FC<ButtonProps> = ({ href, children, ariaLabel, isExternalLink = false }) => {
return (
<a
href={href}
aria-label={ariaLabel}
target={isExternalLink ? '_blank' : '_self'}
className="flex items-center justify-center gap-x-4 rounded-2xl w-max font-semibold px-5 py-2 bg-transparent border border-white text-white group transition-color ease-in-out duration-300 hover:bg-green-light-900 hover:border-green-light-900"
>
{children}
</a>
);
return (
<a
href={href}
aria-label={ariaLabel}
target={isExternalLink ? '_blank' : '_self'}
className="flex items-center justify-center gap-x-4 rounded-2xl w-max font-semibold px-5 py-2 bg-transparent border border-white text-white group transition-color ease-in-out duration-300 hover:bg-green-light-900 hover:border-green-light-900"
>
{children}
</a>
);
};

export default Button;
Loading