diff --git a/README.md b/README.md index 0d6babe..5a00573 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,9 @@ -# React + TypeScript + Vite +# Lunar Vein: Arduino Client + +Client version of the [lunar vein arduino](https://github.com/norman-andrians/lunar-vein-arduino) project, This is the source code of the serial communication API testing example, built with React, Typescript and Vite. The example web client code in the [main branch](https://github.com/norman-andrians/lunar-vein-arduino/tree/main/src/client) is only a **build version** of this code. + + +## React + TypeScript + Vite This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules. @@ -6,25 +11,3 @@ Currently, two official plugins are available: - [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react/README.md) uses [Babel](https://babeljs.io/) for Fast Refresh - [@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react-swc) uses [SWC](https://swc.rs/) for Fast Refresh - -## Expanding the ESLint configuration - -If you are developing a production application, we recommend updating the configuration to enable type aware lint rules: - -- Configure the top-level `parserOptions` property like this: - -```js -export default { - // other rules... - parserOptions: { - ecmaVersion: 'latest', - sourceType: 'module', - project: ['./tsconfig.json', './tsconfig.node.json'], - tsconfigRootDir: __dirname, - }, -} -``` - -- Replace `plugin:@typescript-eslint/recommended` to `plugin:@typescript-eslint/recommended-type-checked` or `plugin:@typescript-eslint/strict-type-checked` -- Optionally add `plugin:@typescript-eslint/stylistic-type-checked` -- Install [eslint-plugin-react](https://github.com/jsx-eslint/eslint-plugin-react) and add `plugin:react/recommended` & `plugin:react/jsx-runtime` to the `extends` list diff --git a/src/assets/img/absurd-closing.png b/src/assets/img/absurd-closing.png new file mode 100644 index 0000000..86f42f9 Binary files /dev/null and b/src/assets/img/absurd-closing.png differ diff --git a/src/assets/img/bg-closing.png b/src/assets/img/bg-closing.png new file mode 100644 index 0000000..23d1399 Binary files /dev/null and b/src/assets/img/bg-closing.png differ diff --git a/src/components/Footer.tsx b/src/components/Footer.tsx new file mode 100644 index 0000000..ff78528 --- /dev/null +++ b/src/components/Footer.tsx @@ -0,0 +1,34 @@ +import MadeBy from "./info/MadeBy"; +import Social from "./info/Social"; + +export default function Footer () { + return ( + + ) +} \ No newline at end of file diff --git a/src/components/MainBody.tsx b/src/components/MainBody.tsx index 7ec0152..65add20 100644 --- a/src/components/MainBody.tsx +++ b/src/components/MainBody.tsx @@ -4,7 +4,7 @@ import BackroundImg from "../assets/img/background.png"; export default function MainBody({ children }: { children?: ReactNode }) { return (
+ Made By + + + + Norman Andrians +
+ ) +} \ No newline at end of file diff --git a/src/components/info/Social.tsx b/src/components/info/Social.tsx new file mode 100644 index 0000000..f1b3970 --- /dev/null +++ b/src/components/info/Social.tsx @@ -0,0 +1,21 @@ +import { ReactNode } from "react"; + +interface SocialPops { + className?: string; + name: string; + link: string; + icon: ReactNode | string; +} + +export default function Social({ className, name, link, icon }: SocialPops) { + return ( + + {icon} + + ); +} diff --git a/src/components/landing/Closing.tsx b/src/components/landing/Closing.tsx new file mode 100644 index 0000000..fab6973 --- /dev/null +++ b/src/components/landing/Closing.tsx @@ -0,0 +1,22 @@ +import Img from "../../assets/img/absurd-closing.png"; +import Bg from "../../assets/img/bg-closing.png"; + +export default function Closing () { + return ( +
+
+
+
+

That's All {":)"}

+
Other features are still under development
+
+ + Goofy ahh closing + +
+
+
+ ) +} \ No newline at end of file diff --git a/src/components/landing/Hero.tsx b/src/components/landing/Hero.tsx index 2a8aff6..781ed98 100644 --- a/src/components/landing/Hero.tsx +++ b/src/components/landing/Hero.tsx @@ -1,6 +1,6 @@ import Button from "../forms/Button"; -import NolaImg from "../../assets/img/ocs/nola_3.png"; import { RefObject } from "react"; +import MadeBy from "../info/MadeBy"; type ShortNav = { name: string, @@ -36,13 +36,7 @@ function Hero ({ img, shortNav, refs }: InHero) { >{name} ))} -
- Made By - - - - Norman Andrians -
+
diff --git a/src/pages/MainPage.tsx b/src/pages/MainPage.tsx index bcaf203..56d1ace 100644 --- a/src/pages/MainPage.tsx +++ b/src/pages/MainPage.tsx @@ -12,24 +12,30 @@ import ControlRgbLed from "../components/landing/ControlRgbLed"; import ControlPiezo from "../components/landing/ControlPiezo"; import ControlPhotoresistor from "../components/landing/ControlPhotoresistor"; import ControlServo from "../components/landing/ControlServo"; +import Closing from "../components/landing/Closing"; +import Footer from "../components/Footer"; function MainPage () { const led = useRef(null); const rgbLed = useRef(null); const piezo = useRef(null); + const servo = useRef(null); + const photoresistor = useRef(null) return (<> - - + + + +