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; 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; 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; 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; +} 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; 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
+ ); }