From f4002a13849222a0bb61403d8093600079ef7fa7 Mon Sep 17 00:00:00 2001 From: sai preetham ravula <160527233+VSPR1@users.noreply.github.com> Date: Mon, 17 Jun 2024 23:09:07 +0530 Subject: [PATCH 1/6] Create CoolButton.js --- Components/CoolButton.js | 43 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 Components/CoolButton.js diff --git a/Components/CoolButton.js b/Components/CoolButton.js new file mode 100644 index 0000000..79a4f29 --- /dev/null +++ b/Components/CoolButton.js @@ -0,0 +1,43 @@ +const classMap = { + + isCentered: 'is-centered', + isActive: 'is-active', + isBlack: 'is-black', + isDanger: 'is-danger', + isDark: 'is-dark', + isFocused: 'is-focused', + isGrouped: 'is-grouped', + isHovered: 'is-hovered', + isInfo: 'is-info', + isInverted: 'is-inverted', + isLarge: 'is-large', + isLight: 'is-light', + isLink: 'is-link', + isLoading: 'is-loading', + isMedium: 'is-medium', + isOutlined: 'is-outlined', + isPrimary: 'is-primary', + isRight: 'is-right', + isRounded: 'is-rounded', + isSelected: 'is-selected', + isSmall: 'is-small', + isStatic: 'is-static', + isSuccess: 'is-success', + isText: 'is-text', + isWarning: 'is-warning', + isWhite: 'is-white' + }; + + function CoolButton(props) + { + const classkeys = Object.keys(props).filter((prop) => classMap[prop]) + const classNames=classkeys.map((prop) => classMap[prop]).join(' '); + + return ( + + ); + }; + + export default CoolButton; From 6642796cbba07ae16d94809a487a1b5aa893abe9 Mon Sep 17 00:00:00 2001 From: sai preetham ravula <160527233+VSPR1@users.noreply.github.com> Date: Mon, 17 Jun 2024 23:10:51 +0530 Subject: [PATCH 2/6] Update App.js --- src/App.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/App.js b/src/App.js index 3784575..d2e5cf3 100644 --- a/src/App.js +++ b/src/App.js @@ -1,5 +1,10 @@ import logo from './logo.svg'; import './App.css'; +import "bulma/css/bulma.css"; + + +import SignupForm from "./components/SignupForm.js"; +import CoolButton from "./components/CoolButton.js"; function App() { return ( @@ -18,6 +23,13 @@ function App() { Learn React + + + Button 1 + Button 2 +
Button 1 + Button 2
+ ); } From 7eb1373408ef286ea93525e200c2f8e25f21d096 Mon Sep 17 00:00:00 2001 From: sai preetham ravula <160527233+VSPR1@users.noreply.github.com> Date: Mon, 17 Jun 2024 23:11:50 +0530 Subject: [PATCH 3/6] Create FormField --- Components/FormField | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 Components/FormField diff --git a/Components/FormField b/Components/FormField new file mode 100644 index 0000000..453862b --- /dev/null +++ b/Components/FormField @@ -0,0 +1,13 @@ +import './FormField.css' +function FormField(props) +{ + return ( +
+ +
+ +
+
+ ); +} +export default FormField; From 83e29fd75c0238e2013c5548b80a29c49bb73db6 Mon Sep 17 00:00:00 2001 From: sai preetham ravula <160527233+VSPR1@users.noreply.github.com> Date: Mon, 17 Jun 2024 23:12:18 +0530 Subject: [PATCH 4/6] Create Navbar.css --- Components/Navbar.css | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 Components/Navbar.css diff --git a/Components/Navbar.css b/Components/Navbar.css new file mode 100644 index 0000000..00da400 --- /dev/null +++ b/Components/Navbar.css @@ -0,0 +1,18 @@ +.links a +{ + text-decoration: none; + color:black; +} +.nav{ + display: flex; + width:100%; + justify-content: space-between; + padding:10px; +} +.left{ + display:flex; + align-items: center; +} +.right button{ + margin:0 8px; +} From 26822af9ae9d3a19f35d6986eeec8643f7c7e5ae Mon Sep 17 00:00:00 2001 From: sai preetham ravula <160527233+VSPR1@users.noreply.github.com> Date: Mon, 17 Jun 2024 23:12:45 +0530 Subject: [PATCH 5/6] Create NavBar.js --- Components/NavBar.js | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 Components/NavBar.js diff --git a/Components/NavBar.js b/Components/NavBar.js new file mode 100644 index 0000000..744a44c --- /dev/null +++ b/Components/NavBar.js @@ -0,0 +1,26 @@ +import './Navbar.css' +import CoolButton from './CoolButton'; +function Navbar() +{ + return ( + +
+
+ +
+ Home +
+
+ +
+ Log In + Sign Up +
+
+ ); +} +export default Navbar; From 0efd99f418e8a47d0999d76cc549d6a37aec16bc Mon Sep 17 00:00:00 2001 From: sai preetham ravula <160527233+VSPR1@users.noreply.github.com> Date: Mon, 17 Jun 2024 23:13:20 +0530 Subject: [PATCH 6/6] Create SignupForm.js --- Components/SignupForm.js | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 Components/SignupForm.js diff --git a/Components/SignupForm.js b/Components/SignupForm.js new file mode 100644 index 0000000..8af5902 --- /dev/null +++ b/Components/SignupForm.js @@ -0,0 +1,19 @@ +import Navbar from "./Navbar" +import FormField from "./FormField" +import CoolButton from "./CoolButton" +function SignupForm() +{ + return( +
+ +
+ + + + Submit + +
+ ) +} + +export default SignupForm;