From 6df49c2d0f5209e05bbf8edfa0fb687088b8729d Mon Sep 17 00:00:00 2001 From: Elsa2116 Date: Sun, 16 Mar 2025 08:51:12 -0400 Subject: [PATCH] done --- src/App.js | 101 ++++++++++++++++++++++++++++++++++++++++++++--------- 1 file changed, 85 insertions(+), 16 deletions(-) diff --git a/src/App.js b/src/App.js index 3784575..03e1eaa 100644 --- a/src/App.js +++ b/src/App.js @@ -1,23 +1,92 @@ -import logo from './logo.svg'; -import './App.css'; +import React from "react"; +import "bulma/css/bulma.css"; +// Navbar Component +const Navbar = () => { + return ( + + ); +}; + +// FormField Component +const FormField = ({ label, type, placeholder }) => { + return ( +
+ +
+ +
+
+ ); +}; + +// CoolButton Component +const classMapping = { + isPrimary: "is-primary", + isSuccess: "is-success", + isDanger: "is-danger", + isSmall: "is-small", + isRounded: "is-rounded", +}; + +const CoolButton = ({ children, ...props }) => { + const classList = ["button"]; + + Object.keys(props).forEach((key) => { + if (classMapping[key]) { + classList.push(classMapping[key]); + } + }); + + return ; +}; + +// SignupForm Component +const SignupForm = () => { + return ( +
+

Signup

+
+ + + + Submit + +
+ ); +}; + +// Message Component +const Message = ({ isInfo, title, children }) => { + return ( +
+
+

{title}

+
+
{children}
+
+ ); +}; + +// App Component function App() { return (
-
- logo -

- Edit src/App.js and save to reload. -

- - Learn React - -
+ + + Button 1 + Button 2 + + Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque risus mi. +
); }