-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
composants et styled components homepage, signin et dbt user
- Loading branch information
1 parent
baec6f8
commit 45ccc75
Showing
11 changed files
with
320 additions
and
83 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
import React, { useState } from 'react' | ||
import styled from 'styled-components' | ||
|
||
export const EditNameWrapper = styled.form` | ||
display: grid; | ||
grid-template-columns: 1fr 1fr; | ||
grid-template-rows: 1fr 1fr; | ||
column-gap: 1rem; | ||
row-gap: 1rem; | ||
padding-top: 1rem; | ||
` | ||
const EditName = ({ editName }) => { | ||
const [firstName, setFirstName] = useState('') | ||
const [lastName, setLastName] = useState('') | ||
|
||
return ( | ||
<EditNameWrapper> | ||
<input | ||
value={firstName} | ||
type="text" | ||
onChange={(e) => { | ||
setFirstName(e.target.value) | ||
}} | ||
/> | ||
<input | ||
value={lastName} | ||
type="text" | ||
onChange={(e) => { | ||
setLastName(e.target.value) | ||
}} | ||
/> | ||
<button>Save</button> | ||
{/* <button onClick={() => {setEditName(!editName)}}>Cancel</button> */} | ||
</EditNameWrapper> | ||
) | ||
} | ||
|
||
export default EditName |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
import React from 'react' | ||
import logo from '../assets/argentBankLogo.png' | ||
import { | ||
HeaderStyle, | ||
Logo, | ||
Nav, | ||
NavLinkElements, | ||
NavLinksWrapper, | ||
} from '../utils/styles/components/header' | ||
|
||
const HeaderUser = () => { | ||
|
||
return ( | ||
<HeaderStyle> | ||
<Nav> | ||
<NavLinkElements exact to="/" activeClassName="something"> | ||
<h1 className="sr-only">Argent Bank</h1> | ||
<Logo | ||
src={logo} | ||
alt="Argent Bank Logo" | ||
width="200px" | ||
height="55px" | ||
></Logo> | ||
</NavLinkElements> | ||
<NavLinksWrapper> | ||
<NavLinkElements exact to="/user" activeClassName="something"> | ||
<i className="fa fa-user-circle"></i> | ||
Tony | ||
</NavLinkElements> | ||
<NavLinkElements exact to="/" activeClassName="something"> | ||
<i className="fa fa-sign-out"></i> | ||
Sign Out | ||
</NavLinkElements> | ||
</NavLinksWrapper> | ||
</Nav> | ||
</HeaderStyle> | ||
) | ||
} | ||
|
||
export default HeaderUser |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.