diff --git a/projekt/src/components/Button.jsx b/anwendung/src/components/Button.jsx similarity index 94% rename from projekt/src/components/Button.jsx rename to anwendung/src/components/Button.jsx index 56a6a89..bf7a8d7 100644 --- a/projekt/src/components/Button.jsx +++ b/anwendung/src/components/Button.jsx @@ -1,39 +1,39 @@ -import "../App.css" - -export default function Button(p) { - - let text = p.text; - let width = p.width, height = p.height; - let iconHTML = p.icon; - let iconWidth = p.iconWidth, iconHeight = p.iconHeight; - let onClick = p.onClick; - - if (height == null) height = 50; - if (width == null) width = 100; - if (iconWidth == null) iconWidth = 50; - if (iconHeight == null) iconHeight = 50; - if (onClick == null) onClick = () => {}; - - if (iconHTML != null) { - let split = iconHTML.split("fill="); - split[1] = "fill=" + split[1]; - split[0] += " width=" + iconWidth + " height=" + iconHeight + " "; - iconHTML = split[0] + split[1] - } else { - iconHTML = ""; - } - - return ( - <> - - - ); -} +import "../../../projekt/src/App.css" + +export default function Button(p) { + + let text = p.text; + let width = p.width, height = p.height; + let iconHTML = p.icon; + let iconWidth = p.iconWidth, iconHeight = p.iconHeight; + let onClick = p.onClick; + + if (height == null) height = 50; + if (width == null) width = 100; + if (iconWidth == null) iconWidth = 50; + if (iconHeight == null) iconHeight = 50; + if (onClick == null) onClick = () => {}; + + if (iconHTML != null) { + let split = iconHTML.split("fill="); + split[1] = "fill=" + split[1]; + split[0] += " width=" + iconWidth + " height=" + iconHeight + " "; + iconHTML = split[0] + split[1] + } else { + iconHTML = ""; + } + + return ( + <> + + + ); +} diff --git a/anwendung/src/pages/_app.js b/anwendung/src/pages/_app.js index 2300201..cd67a73 100644 --- a/anwendung/src/pages/_app.js +++ b/anwendung/src/pages/_app.js @@ -1,4 +1,4 @@ -import '@/styles/globals.css' +//import '@/styles/globals.css' export default function App({ Component, pageProps }) { return diff --git a/anwendung/src/pages/_document.js b/anwendung/src/pages/_document.js deleted file mode 100644 index 54e8bf3..0000000 --- a/anwendung/src/pages/_document.js +++ /dev/null @@ -1,13 +0,0 @@ -import { Html, Head, Main, NextScript } from 'next/document' - -export default function Document() { - return ( - - - -
- - - - ) -} diff --git a/anwendung/src/pages/index.js b/anwendung/src/pages/index.js index 77819e9..6f35ffd 100644 --- a/anwendung/src/pages/index.js +++ b/anwendung/src/pages/index.js @@ -1,118 +1,10 @@ -import Image from 'next/image' import { Inter } from 'next/font/google' +import Button from "@/components/Button"; const inter = Inter({ subsets: ['latin'] }) export default function Home() { return ( -
-
-

- Get started by editing  - src/pages/index.js -

- -
- -
- Next.js Logo -
- -
- -

- Docs{' '} - - -> - -

-

- Find in-depth information about Next.js features and API. -

-
- - -

- Learn{' '} - - -> - -

-

- Learn about Next.js in an interactive course with quizzes! -

-
- - -

- Templates{' '} - - -> - -

-

- Discover and deploy boilerplate example Next.js projects. -

-
- - -

- Deploy{' '} - - -> - -

-

- Instantly deploy your Next.js site to a shareable URL with Vercel. -

-
-
-
+ <> ) }