Skip to content

Commit

Permalink
DV-000304: Change name app.
Browse files Browse the repository at this point in the history
  • Loading branch information
vaskocuturilo committed Aug 22, 2024
1 parent a521d0a commit 0548180
Show file tree
Hide file tree
Showing 2 changed files with 69 additions and 63 deletions.
46 changes: 23 additions & 23 deletions frontend/public/index.html
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<link rel="icon" href="%PUBLIC_URL%/favicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="theme-color" content="#000000" />
<head>
<meta charset="utf-8"/>
<link rel="icon" href="%PUBLIC_URL%/favicon.ico"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<meta name="theme-color" content="#000000"/>
<meta
name="description"
content="Web site created using create-react-app"
name="description"
content="Web site created using create-react-app"
/>
<link rel="apple-touch-icon" href="%PUBLIC_URL%/logo192.png" />
<link rel="apple-touch-icon" href="%PUBLIC_URL%/logo192.png"/>
<!--
manifest.json provides metadata used when your web app is installed on a
user's mobile device or desktop. See https://developers.google.com/web/fundamentals/web-app-manifest/
-->
<link rel="manifest" href="%PUBLIC_URL%/manifest.json" />
<link rel="manifest" href="%PUBLIC_URL%/manifest.json"/>
<!--
Notice the use of %PUBLIC_URL% in the tags above.
It will be replaced with the URL of the `public` folder during the build.
Expand All @@ -24,20 +24,20 @@
work correctly both with client-side routing and a non-root public URL.
Learn how to configure a non-root public URL by running `npm run build`.
-->
<title>The application regions</title>
</head>
<body>
<noscript>You need to enable JavaScript to run this app.</noscript>
<div id="root"></div>
<!--
This HTML file is a template.
If you open it directly in the browser, you will see an empty page.
<title>Car Plate Puzzle</title>
</head>
<body>
<noscript>You need to enable JavaScript to run this app.</noscript>
<div id="root"></div>
<!--
This HTML file is a template.
If you open it directly in the browser, you will see an empty page.
You can add webfonts, meta tags, or analytics to this file.
The build step will place the bundled scripts into the <body> tag.
You can add webfonts, meta tags, or analytics to this file.
The build step will place the bundled scripts into the <body> tag.
To begin the development, run `npm start` or `yarn start`.
To create a production bundle, use `npm run build` or `yarn build`.
-->
</body>
To begin the development, run `npm start` or `yarn start`.
To create a production bundle, use `npm run build` or `yarn build`.
-->
</body>
</html>
86 changes: 46 additions & 40 deletions frontend/src/components/Header.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React, { useState } from "react";
import { Nav, Navbar, NavDropdown } from "react-bootstrap";
import React, {useState} from "react";
import {Nav, Navbar, NavDropdown} from "react-bootstrap";
import "bootstrap/dist/css/bootstrap.min.css";

import SignIn from "./SignIn";
Expand All @@ -9,47 +9,53 @@ import SignUp from "./SignUp";
import styles from "./Modal.module.css";

function Header() {
const [isOpen1, signIsOpen] = useState(false);
const [isOpen2, signInSignUp] = useState(false);
const [isOpen1, signIsOpen] = useState(false);
const [isOpen2, signInSignUp] = useState(false);
return (
<Navbar collapseOnSelect expand={false} bg="dark" variant="dark" data-cy="nav-bar-bottom">
<Navbar.Brand href="#home">
<p>Regions Service</p>
</Navbar.Brand>
<button className={styles.primaryBtn} onClick={() => {signInSignUp(false); signIsOpen(true)}} data-cy="signIn">
Sign In
</button>
{isOpen1 && <SignIn signIsOpen={signIsOpen} />}
<button className={styles.primaryBtn} onClick={() => {signIsOpen(false); signInSignUp(true)}} data-cy="signUp">
Sign Up
</button>
{isOpen2 && <SignUp signInSignUp={signInSignUp} />}
<Navbar.Brand href="#home">
<p>Car Plate Puzzle</p>
</Navbar.Brand>
<button className={styles.primaryBtn} onClick={() => {
signInSignUp(false);
signIsOpen(true)
}} data-cy="signIn">
Sign In
</button>
{isOpen1 && <SignIn signIsOpen={signIsOpen}/>}
<button className={styles.primaryBtn} onClick={() => {
signIsOpen(false);
signInSignUp(true)
}} data-cy="signUp">
Sign Up
</button>
{isOpen2 && <SignUp signInSignUp={signInSignUp}/>}

<Navbar.Toggle aria-controls="responsive-navbar-nav" data-cy="nav-bar-button"/>
<Navbar.Collapse id="responsive-navbar-nav">
<Nav className="mr-auto">
<Nav.Link href="#features">News</Nav.Link>
<Nav.Link href="#pricing">API</Nav.Link>
<NavDropdown title="More details" id="collasible-nav-dropdown">
<NavDropdown.Item href="#action/3.1">Donates</NavDropdown.Item>
<NavDropdown.Item href="#action/3.2">
Donates
</NavDropdown.Item>
<NavDropdown.Item href="#action/3.3">Donates</NavDropdown.Item>
<NavDropdown.Divider />
<NavDropdown.Item href="#action/3.4">
Donates
</NavDropdown.Item>
</NavDropdown>
</Nav>
<Nav>
<Nav.Link href="#deets">About us</Nav.Link>
<Nav.Link eventKey={2} href="#memes">
Author
</Nav.Link>
</Nav>
</Navbar.Collapse>
</Navbar>
<Navbar.Toggle aria-controls="responsive-navbar-nav" data-cy="nav-bar-button"/>
<Navbar.Collapse id="responsive-navbar-nav">
<Nav className="mr-auto">
<Nav.Link href="#features">News</Nav.Link>
<Nav.Link href="#pricing">API</Nav.Link>
<NavDropdown title="More details" id="collasible-nav-dropdown">
<NavDropdown.Item href="#action/3.1">Donates</NavDropdown.Item>
<NavDropdown.Item href="#action/3.2">
Donates
</NavDropdown.Item>
<NavDropdown.Item href="#action/3.3">Donates</NavDropdown.Item>
<NavDropdown.Divider/>
<NavDropdown.Item href="#action/3.4">
Donates
</NavDropdown.Item>
</NavDropdown>
</Nav>
<Nav>
<Nav.Link href="#deets">About us</Nav.Link>
<Nav.Link eventKey={2} href="#memes">
Author
</Nav.Link>
</Nav>
</Navbar.Collapse>
</Navbar>
);
}

Expand Down

0 comments on commit 0548180

Please sign in to comment.