Skip to content

Commit

Permalink
readme/favicon updated
Browse files Browse the repository at this point in the history
  • Loading branch information
DmytoStas committed Nov 15, 2023
1 parent 307b749 commit 777747f
Show file tree
Hide file tree
Showing 15 changed files with 58 additions and 25 deletions.
37 changes: 35 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,42 @@
Phonebook [React, JS, CSS in (@emotion/styled), Webpack, Redux, Axios, JWT Auth,
REST API]
# Phonebook app

**Technology stack** - [React, JS, CSS in (@emotion/styled), Redux, Axios, JWT
Auth, REST API]

## API

[**API Documentation**](https://connections-api.herokuapp.com/docs/)

## About

Individual project

The phonebook application helps save your own private collection of contacts.

Register and log in to your account, add/delete contacts, filter contacts by
name for a fast search.

Each form field is validated before requesting the server. In case of successful
or rejected requests to the server, the user receives notifications in the form
of pop-up windows.

## Overwiev

The base URL address of the application always welcomes users.

![Welcome-page](./img/Welcome-page.jpg)

To manage your contacts, each user must register or log in to an existing
profile.

![SignIn-page](./img/SignIn-page.jpg)

The general view of the main Phonebook page where you can see a list of all
contacts. Add new ones, delete unnecessary ones, filter by name and edit a
contact.

![Phonebook-page](./img/Phonebook-page.jpg)

A modal window with a form opens for editing a contact.

![Edit-modal](./img/Edit-modal.jpg)
Binary file added img/Edit-modal.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/Phonebook-page.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/SignIn-page.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/Welcome-page.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/favicon.ico
Binary file not shown.
2 changes: 1 addition & 1 deletion public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
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>React App</title>
<title>Phonebook</title>

<!-- Start Single Page Apps for GitHub Pages -->
<script type="text/javascript">
Expand Down
Binary file added public/logo128.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed public/logo192.png
Binary file not shown.
Binary file modified public/logo512.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions public/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
"type": "image/x-icon"
},
{
"src": "logo192.png",
"src": "logo128.png",
"type": "image/png",
"sizes": "192x192"
"sizes": "128x128"
},
{
"src": "logo512.png",
Expand Down
27 changes: 15 additions & 12 deletions src/components/AppBarHeader/AppBarHeader.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,18 +46,21 @@ const AppBarHeader = () => {
padding: '0 8px',
}}
>
<Link to="/">
<Typography
component={'span'}
sx={{
marginLeft: '22px',
fontWeight: '700',
letterSpacing: '3px',
}}
>
Phonebook
</Typography>
</Link>
{!isLoggedIn && (
<Link to="/">
<Typography
component={'span'}
sx={{
marginLeft: '22px',
fontWeight: '700',
letterSpacing: '3px',
}}
>
Phonebook
</Typography>
</Link>
)}

{!isLoggedIn ? <AuthNav /> : <UserMenu />}
</Toolbar>
</AppBar>
Expand Down
6 changes: 3 additions & 3 deletions src/components/AuthNav/AuthNav.styled.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ export const Link = styled(NavLink)`
margin-right: 0;
}
:hover,
:focus,
&.active {
ul &:hover,
ul &:focus,
ul &.active {
color: #1976d2;
}
`;
5 changes: 1 addition & 4 deletions src/components/LogInForm/validationSchema.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,5 @@ export const validationSchema = Yup.object().shape({
password: Yup.string()
.min(8)
.required('Password required')
.matches(
/^(?=.*[A-Za-z])(?=.*\d)[A-Za-z\d]{8,}$/,
'Invalid password. It must contain letters and numbers only.'
),
.matches(/^(?=.*[A-Za-z])(?=.*\d)[A-Za-z\d]{8,}$/, 'Invalid password'),
});
2 changes: 1 addition & 1 deletion src/components/SignUpForm/validationSchema.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@ export const validationSchema = Yup.object().shape({
.required('Password required')
.matches(
/^(?=.*[A-Za-z])(?=.*\d)[A-Za-z\d]{8,}$/,
'Invalid password. It must contain letters and numbers only.'
'Invalid password. It must contain letters and numbers only'
),
});

0 comments on commit 777747f

Please sign in to comment.