diff --git a/.ruby-version b/.ruby-version
new file mode 100644
index 0000000..ef538c2
--- /dev/null
+++ b/.ruby-version
@@ -0,0 +1 @@
+3.1.2
diff --git a/frontend/public/fonts/DonegalOne-Regular.ttf b/frontend/public/fonts/DonegalOne-Regular.ttf
new file mode 100644
index 0000000..8f7f694
Binary files /dev/null and b/frontend/public/fonts/DonegalOne-Regular.ttf differ
diff --git a/frontend/src/assets/images/BoulderLogo-1x.png b/frontend/src/assets/images/BoulderLogo-1x.png
new file mode 100644
index 0000000..321629d
Binary files /dev/null and b/frontend/src/assets/images/BoulderLogo-1x.png differ
diff --git a/frontend/src/assets/images/BoulderLogo-2x.png b/frontend/src/assets/images/BoulderLogo-2x.png
new file mode 100644
index 0000000..5485cce
Binary files /dev/null and b/frontend/src/assets/images/BoulderLogo-2x.png differ
diff --git a/frontend/src/assets/images/BoulderLogo-3x.png b/frontend/src/assets/images/BoulderLogo-3x.png
new file mode 100644
index 0000000..59adf03
Binary files /dev/null and b/frontend/src/assets/images/BoulderLogo-3x.png differ
diff --git a/frontend/src/components/NavigationBar.tsx b/frontend/src/components/NavigationBar.tsx
index e69de29..0ec3c77 100644
--- a/frontend/src/components/NavigationBar.tsx
+++ b/frontend/src/components/NavigationBar.tsx
@@ -0,0 +1,40 @@
+import { ReactNode } from "react";
+import { Link } from "react-router-dom";
+import BoulderLogo from "../assets/images/BoulderLogo-2x.png";
+
+const NavigationBar = ({
+ children = null,
+}: {
+ children?: ReactNode;
+}): JSX.Element => {
+ return (
+
+
+
+

+
+
+
+
+ -
+
+
+
+ -
+
+
+
+ -
+
+
+
+ -
+
+
+
+
+
+ );
+};
+
+export default NavigationBar;
diff --git a/frontend/src/components/buttons/BaseButton.tsx b/frontend/src/components/buttons/BaseButton.tsx
new file mode 100644
index 0000000..3bd552f
--- /dev/null
+++ b/frontend/src/components/buttons/BaseButton.tsx
@@ -0,0 +1,36 @@
+import clsx from 'clsx'
+import { MouseEventHandler, SetStateAction } from 'react'
+import useToggle from "../../utils/useFunctions/useToggle"
+
+ interface Icolors {
+ [key: string]: string
+ }
+ const colors: Icolors = {
+ orange: "bg-boulder-orange",
+ blue: "bg-boulder-blue",
+ pink: "bg-boulder-pink",
+ brown: "bg-boulder-orange",
+ beige: "bg-boulder-beige"
+ }
+
+const BaseButton = ({ onClick = () => {}, color = "bg-boulder-orange", children } : {onClick: () => void, color: string, children: string}
+
+ ) => {
+ const [isToggled, toggleValueTest] = useToggle(false)
+
+ const displayColor = isToggled ? color : 'bg-boulder-blue'
+const handleClick: MouseEventHandler= (e) => {
+ e.preventDefault()
+ toggleValueTest()
+ console.log(isToggled)
+
+}
+ const buttonStyles: string = clsx(colors[color])
+ return (
+
+ )
+ }
+
+
+
+export default BaseButton
\ No newline at end of file
diff --git a/frontend/src/components/layouts/default.tsx b/frontend/src/components/layouts/default.tsx
new file mode 100644
index 0000000..84466d3
--- /dev/null
+++ b/frontend/src/components/layouts/default.tsx
@@ -0,0 +1,17 @@
+import { ReactNode } from "react";
+import NavigationBar from "../NavigationBar";
+
+const defaultLayout = ({ children }: { children: ReactNode }) => {
+ return (
+ <>
+
+
+
+
+ >
+ );
+};
+
+export default defaultLayout;
diff --git a/frontend/src/index.css b/frontend/src/index.css
index 9e4b1f1..4418160 100644
--- a/frontend/src/index.css
+++ b/frontend/src/index.css
@@ -2,11 +2,19 @@
@tailwind components;
@tailwind utilities;
+@layer base {
+ @font-face {
+ font-family: Donegal One;
+ font-weight: 400;
+ src: url(../public/fonts/DonegalOne-Regular.ttf);
+ }
+}
+
body {
margin: 0;
- font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen",
- "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue",
- sans-serif;
+ font-family: "Donegal One", -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;
}
diff --git a/frontend/src/routes/home.tsx b/frontend/src/routes/home.tsx
new file mode 100644
index 0000000..1ff90df
--- /dev/null
+++ b/frontend/src/routes/home.tsx
@@ -0,0 +1,11 @@
+import DefaultLayout from "../components/layouts/default";
+
+function Home() {
+ return (
+
+ this is the home page
+
+ );
+}
+
+export default Home;
diff --git a/frontend/src/routes/login.tsx b/frontend/src/routes/login.tsx
new file mode 100644
index 0000000..16edf35
--- /dev/null
+++ b/frontend/src/routes/login.tsx
@@ -0,0 +1,49 @@
+import DefaultLayout from "../components/layouts/default";
+import BaseButton from "../components/buttons/BaseButton";
+
+function Login() {
+ return (
+
+
+
+ );
+}
+
+export default Login;
diff --git a/frontend/src/utils/router.tsx b/frontend/src/utils/router.tsx
index 836c67b..bda4ec0 100644
--- a/frontend/src/utils/router.tsx
+++ b/frontend/src/utils/router.tsx
@@ -1,16 +1,15 @@
import { createBrowserRouter } from "react-router-dom";
+import NavigationBar from "../components/NavigationBar";
+import Home from "../routes/home";
+import Login from "../routes/login";
const router = createBrowserRouter([
{
path: "/",
- element: hello monsoir dicky
,
+ element: ,
},
{
path: "/login",
- element: (
-
- login plz ty 4 credit card details
-
- ),
+ element: ,
},
]);
diff --git a/frontend/src/utils/useFunctions/useToggle.ts b/frontend/src/utils/useFunctions/useToggle.ts
new file mode 100644
index 0000000..957b71c
--- /dev/null
+++ b/frontend/src/utils/useFunctions/useToggle.ts
@@ -0,0 +1,9 @@
+import { useState } from 'react'
+
+export const useToggle = (initValue: boolean = false) => {
+ const [value, setValue] = useState(initValue)
+ const toggleValue = () => setValue((x) => !x)
+ return [ value, toggleValue] as const
+}
+
+export default useToggle
diff --git a/frontend/tailwind.config.js b/frontend/tailwind.config.js
index 37cc651..323ff5c 100644
--- a/frontend/tailwind.config.js
+++ b/frontend/tailwind.config.js
@@ -2,6 +2,15 @@
module.exports = {
content: ["./src/**/*.{js,jsx,ts,tsx}"],
theme: {
+ colors: {
+ "boulder-beige": "#D4BE98",
+ "boulder-brown": "#282828",
+ "boulder-blue": "#7DAEA3",
+ "boulder-orange": "#D8A657",
+ },
+ fontFamily: {
+ serif: ["Donegal One"],
+ },
extend: {},
},
plugins: [],
diff --git a/node_modules/.yarn-integrity b/node_modules/.yarn-integrity
new file mode 100644
index 0000000..7fd8626
--- /dev/null
+++ b/node_modules/.yarn-integrity
@@ -0,0 +1,16 @@
+{
+ "systemParams": "darwin-arm64-93",
+ "modulesFolders": [
+ "node_modules"
+ ],
+ "flags": [],
+ "linkedModules": [],
+ "topLevelPatterns": [
+ "clsx@^1.2.1"
+ ],
+ "lockfileEntries": {
+ "clsx@^1.2.1": "https://registry.yarnpkg.com/clsx/-/clsx-1.2.1.tgz#0ddc4a20a549b59c93a4116bb26f5294ca17dc12"
+ },
+ "files": [],
+ "artifacts": {}
+}
\ No newline at end of file
diff --git a/node_modules/clsx/clsx.d.ts b/node_modules/clsx/clsx.d.ts
new file mode 100644
index 0000000..f557360
--- /dev/null
+++ b/node_modules/clsx/clsx.d.ts
@@ -0,0 +1,6 @@
+export type ClassValue = ClassArray | ClassDictionary | string | number | null | boolean | undefined;
+export type ClassDictionary = Record;
+export type ClassArray = ClassValue[];
+
+export declare function clsx(...inputs: ClassValue[]): string;
+export default clsx;
diff --git a/node_modules/clsx/dist/clsx.js b/node_modules/clsx/dist/clsx.js
new file mode 100644
index 0000000..2090f74
--- /dev/null
+++ b/node_modules/clsx/dist/clsx.js
@@ -0,0 +1 @@
+function e(r){var o,t,f="";if("string"==typeof r||"number"==typeof r)f+=r;else if("object"==typeof r)if(Array.isArray(r))for(o=0;o (lukeed.com)
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/node_modules/clsx/package.json b/node_modules/clsx/package.json
new file mode 100644
index 0000000..8f2f743
--- /dev/null
+++ b/node_modules/clsx/package.json
@@ -0,0 +1,37 @@
+{
+ "name": "clsx",
+ "version": "1.2.1",
+ "repository": "lukeed/clsx",
+ "description": "A tiny (228B) utility for constructing className strings conditionally.",
+ "module": "dist/clsx.m.js",
+ "unpkg": "dist/clsx.min.js",
+ "main": "dist/clsx.js",
+ "types": "clsx.d.ts",
+ "license": "MIT",
+ "author": {
+ "name": "Luke Edwards",
+ "email": "luke.edwards05@gmail.com",
+ "url": "https://lukeed.com"
+ },
+ "engines": {
+ "node": ">=6"
+ },
+ "scripts": {
+ "build": "node bin",
+ "test": "uvu -r esm test"
+ },
+ "files": [
+ "*.d.ts",
+ "dist"
+ ],
+ "keywords": [
+ "classes",
+ "classname",
+ "classnames"
+ ],
+ "devDependencies": {
+ "esm": "3.2.25",
+ "terser": "4.8.0",
+ "uvu": "0.5.4"
+ }
+}
diff --git a/node_modules/clsx/readme.md b/node_modules/clsx/readme.md
new file mode 100644
index 0000000..cba8d87
--- /dev/null
+++ b/node_modules/clsx/readme.md
@@ -0,0 +1,88 @@
+# clsx [](https://github.com/lukeed/clsx/actions?query=workflow%3ACI) [](https://codecov.io/gh/lukeed/clsx)
+
+> A tiny (228B) utility for constructing `className` strings conditionally.
Also serves as a [faster](/bench) & smaller drop-in replacement for the `classnames` module.
+
+This module is available in three formats:
+
+* **ES Module**: `dist/clsx.m.js`
+* **CommonJS**: `dist/clsx.js`
+* **UMD**: `dist/clsx.min.js`
+
+
+## Install
+
+```
+$ npm install --save clsx
+```
+
+
+## Usage
+
+```js
+import clsx from 'clsx';
+// or
+import { clsx } from 'clsx';
+
+// Strings (variadic)
+clsx('foo', true && 'bar', 'baz');
+//=> 'foo bar baz'
+
+// Objects
+clsx({ foo:true, bar:false, baz:isTrue() });
+//=> 'foo baz'
+
+// Objects (variadic)
+clsx({ foo:true }, { bar:false }, null, { '--foobar':'hello' });
+//=> 'foo --foobar'
+
+// Arrays
+clsx(['foo', 0, false, 'bar']);
+//=> 'foo bar'
+
+// Arrays (variadic)
+clsx(['foo'], ['', 0, false, 'bar'], [['baz', [['hello'], 'there']]]);
+//=> 'foo bar baz hello there'
+
+// Kitchen sink (with nesting)
+clsx('foo', [1 && 'bar', { baz:false, bat:null }, ['hello', ['world']]], 'cya');
+//=> 'foo bar hello world cya'
+```
+
+
+## API
+
+### clsx(...input)
+Returns: `String`
+
+#### input
+Type: `Mixed`
+
+The `clsx` function can take ***any*** number of arguments, each of which can be an Object, Array, Boolean, or String.
+
+> **Important:** _Any_ falsey values are discarded!
Standalone Boolean values are discarded as well.
+
+```js
+clsx(true, false, '', null, undefined, 0, NaN);
+//=> ''
+```
+
+## Benchmarks
+
+For snapshots of cross-browser results, check out the [`bench`](/bench) directory~!
+
+## Support
+
+All versions of Node.js are supported.
+
+All browsers that support [`Array.isArray`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/isArray#Browser_compatibility) are supported (IE9+).
+
+>**Note:** For IE8 support and older, please install `clsx@1.0.x` and beware of [#17](https://github.com/lukeed/clsx/issues/17).
+
+
+## Related
+
+- [obj-str](https://github.com/lukeed/obj-str) - A smaller (96B) and similiar utility that only works with Objects.
+
+## License
+
+MIT © [Luke Edwards](https://lukeed.com)
diff --git a/package.json b/package.json
new file mode 100644
index 0000000..f6281e5
--- /dev/null
+++ b/package.json
@@ -0,0 +1,5 @@
+{
+ "dependencies": {
+ "clsx": "^1.2.1"
+ }
+}
diff --git a/yarn.lock b/yarn.lock
new file mode 100644
index 0000000..40e6040
--- /dev/null
+++ b/yarn.lock
@@ -0,0 +1,8 @@
+# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
+# yarn lockfile v1
+
+
+clsx@^1.2.1:
+ version "1.2.1"
+ resolved "https://registry.yarnpkg.com/clsx/-/clsx-1.2.1.tgz#0ddc4a20a549b59c93a4116bb26f5294ca17dc12"
+ integrity sha512-EcR6r5a8bj6pu3ycsa/E/cKVGuTgZJZdsyUYHOksG/UHIiKfjxzRxYJpyVBwYaQeOvghal9fcc4PidlgzugAQg==