Skip to content

Commit 8466540

Browse files
committed
Popup Form Update
1 parent b69cf71 commit 8466540

2 files changed

Lines changed: 11 additions & 5 deletions

File tree

26. Popup Form/index.html

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,11 @@ <h1>Welcome To The Real World</h1>
2222

2323
<section class="modal-container" id="modal">
2424
<section class="modal">
25-
<button class="close-btn" id="close">x</button>
25+
<button class="close-btn" id="close">
26+
<svg width="25" height="25" fill="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
27+
<path d="M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41Z"></path>
28+
</svg>
29+
</button>
2630
<div class="modal-content">
2731
<h1>Sign Up</h1>
2832
<form class="modal-form">

26. Popup Form/style.css

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,11 +62,10 @@ header {
6262
}
6363

6464
.modal {
65-
background: #fff;
66-
border-radius: 5px;
6765
box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
6866
position: absolute;
6967
overflow: hidden;
68+
color: white;
7069
top: 50%;
7170
left: 50%;
7271
transform: translate(-50%, -50%);
@@ -90,16 +89,18 @@ header {
9089
.modal-form .form-input {
9190
padding: 8px;
9291
width: 100%;
92+
border-radius: 5px;
93+
outline: none;
9394
}
9495

9596
.close-btn {
9697
background: transparent;
9798
border: none;
98-
font-size: 25px;
9999
position: absolute;
100-
top: 5px;
100+
top: 12px;
101101
right: 12px;
102102
cursor: pointer;
103+
color: white;
103104
}
104105

105106
.modal-container .submit-btn {
@@ -109,6 +110,7 @@ header {
109110
border: none;
110111
color: #fff;
111112
cursor: pointer;
113+
border-radius: 5px;
112114
}
113115

114116
/* JavaScript */

0 commit comments

Comments
 (0)