Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
juancumbeq committed May 13, 2024
1 parent 80716ec commit 39d11ef
Show file tree
Hide file tree
Showing 4 changed files with 199 additions and 12 deletions.
76 changes: 64 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -728,64 +728,116 @@ Space-between distributes the items evenly, leaving the first item at the beginn
<br>
<br>

## My Account
## [My Account](https://github.com/juancumbeq/platzi-frontend-developer-workshop/blob/main/project/5-my-account.html)
This time I'll teach you how to layout the screen that allows the user to edit their account. As you can see, this view contains other relevant data such as the email, password, and the person's name.

<p align="center">
<img src="https://github.com/juancumbeq/platzi-frontend-developer-workshop/blob/main/readme_images/edit.png?raw=true" width= "45%" alt="Edit">
</p>

<br>

### How to Show the User the Entered Data
To show the user the data they entered during registration, we'll use the code from the "create account" section. Keeping in mind that the purpose of this view is to display information, not obtain it, we need to modify the form as follows:

* We'll change the inputs to paragraphs:
```
<div>
<label for="name" class="label">Name</label>
<p class="value">Camila Yokoo</p>
<label for="email" class="label">Email</label>
<p class="value">camilayokoo@gmail.com</p>
<label for="password" class="label">Password</label>
<p class="value">*********</p>
</div>
```

* Styling the text:
```
.value {
color: var(--very-light-pink);
font-size: var(--md);
margin: 8px 0 32px 0;
}
```

* Apply the secondary-button class to the button:
```
.secondary-button {
background-color: var(--white);
border-radius: 8px;
border: 1px solid var(--hospital-green);
color: var(--hospital-green);
width: 100%;
cursor: pointer;
font-size: var(--md);
font-weight: bold;
height: 50px;
}
```
<br>

### How to Proceed With the Project
We have completed the module for creating authentication screens. Now, all that's left is to build the main views. Remember that in the Practical React.js Course, we will combine all the screens to finish our frontend.

<br>
<br>
<br>

# RESPONSIVE LAYOUT: MAIN VIEWS
## Home Page: HTML
## [Home Page: HTML](https://github.com/juancumbeq/platzi-frontend-developer-workshop/blob/main/project/6-home-page.html)

<br>
<br>

## Home Page: CS
## [Home Page: CS](https://github.com/juancumbeq/platzi-frontend-developer-workshop/blob/main/project/6-home-page.html)

<br>
<br>

## Desktop Menu
## [Desktop Menu](https://github.com/juancumbeq/platzi-frontend-developer-workshop/blob/main/project/6-home-page.html)

<br>
<br>

## Mobile Menu
## [Mobile Menu](https://github.com/juancumbeq/platzi-frontend-developer-workshop/blob/main/project/6-home-page.html)

<br>
<br>

## My Purchase Order: HTML
## [My Purchase Order: HTML](https://github.com/juancumbeq/platzi-frontend-developer-workshop/blob/main/project/6-home-page.html)

<br>
<br>

## My Purchase Order: CSS
## [My Purchase Order: CSS](https://github.com/juancumbeq/platzi-frontend-developer-workshop/blob/main/project/6-home-page.html)

<br>
<br>

## My Orders
## [My Orders](https://github.com/juancumbeq/platzi-frontend-developer-workshop/blob/main/project/6-home-page.html)

<br>
<br>

## Navbar: HTML
## [Navbar: HTML](https://github.com/juancumbeq/platzi-frontend-developer-workshop/blob/main/project/6-home-page.html)

<br>
<br>

## Navbar: CSS
## [Navbar: CSS](https://github.com/juancumbeq/platzi-frontend-developer-workshop/blob/main/project/6-home-page.html)

<br>
<br>

## Product Details
## [Product Details](https://github.com/juancumbeq/platzi-frontend-developer-workshop/blob/main/project/6-home-page.html)

<br>
<br>

## Shopping Cart: HTML
## [Shopping Cart: HTML](https://github.com/juancumbeq/platzi-frontend-developer-workshop/blob/main/project/6-home-page.html)

<br>
<br>
Expand Down
135 changes: 135 additions & 0 deletions project/5-my-account.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,135 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">

<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Quicksand:wght@300;500;700&display=swap" rel="stylesheet">

<title>Yard Sale</title>

<style>
:root {
--black:#000000;
--white: #FFFFFF;
--very-light-pink: #C7C7C7;
--text-input-field: #F7F7F7;
--dark: #232830;
--hospital-green: #ACD9B2;
--sm: 14px;
--md: 16px;
--lg: 18px;
}

body {
font-family: 'Quicksand', sans-serif;
}

.login{
width: 100%;
height: 100vh;

/* This two lines center the items vertically and horizontally */
display: grid;
place-items: center;
}

.form-container{
display: grid;

/* Divides the space in 4 pieces and the middle row will have that height*/
grid-template-rows: auto 1fr auto;
width: 300px;
}

.logo{
width: 150px;
margin-bottom: 48px;
/* justify-self is used in CSS Grid Layout to align grid items inside their respective grid cells along the inline (row) axis. */
justify-self: center;
display: none;
}

.title{
font-size: var(--lg);
margin-bottom: 36px;
text-align: start;
}

.form{
/* This property is used to specify the direction of the main axis in a flex container. In this case, column is specified, which means that the main axis runs vertically, from top to bottom. This arrangement stacks the flex items vertically within the flex container. */
display: flex;
flex-direction: column;
}

.form div {
display: flex;
flex-direction: column;
}

.label{
font-size: var(--sm);
font-weight: bold;
margin-bottom: 4px;
}

.value{
color: var(--very-light-pink);
font-weight: var(--md);
margin: 8px 0 32px 0;
}

.secondary-button{
background-color: var(--white);
border-radius: 8px;
border: 1px solid var(--hospital-green);
color: var(--hospital-green);
width: 100%;
cursor: pointer;
font-size: var(--md);
font-weight: bold;
height: 50px;
}

.login-button{
margin-top: 14px;
margin-bottom: 30px;
}

@media(max-width: 640px){
.form-container{
height: 100%;
}
.form{
height: 100%;
justify-content: space-between;
}
}

</style>
</head>
<body>
<div class="login">
<div class="form-container">

<h1 class="title">My Account</h1>
<form action="/" class="form">
<div>
<label for="name" class="label">Name</label>
<p class="value">Camila Yokoo</p>

<label for="email" class="label">Email</label>
<p class="value">camilayokoo@gmail.com</p>

<label for="password" class="label">Password</label>
<p class="value">***********</p>
</div>

<input type="submit" value="Edit" class='secondary-button login-button'>
</form>
</div>
</div>
</body>
</html>
Empty file added project/6-home-page.html
Empty file.
Binary file added readme_images/edit.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 39d11ef

Please sign in to comment.