Skip to content

Commit 23109b6

Browse files
committed
feat(CSS): sytle button with class send-to-user-inbox-btn
1 parent 3cb6133 commit 23109b6

3 files changed

Lines changed: 21 additions & 7 deletions

File tree

public/index.css

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -80,13 +80,15 @@ main {
8080
transform: translate(-50%,-50%);
8181
}
8282

83-
.fa-paper-plane {
83+
84+
85+
/* .fa-paper-plane {
8486
background-color: white;
8587
border-radius: 5%;
8688
display: flex;
8789
align-items: center;
8890
justify-content: center;
89-
}
91+
} */
9092

9193
.fa-microphone {
9294
height: 30px;
@@ -151,6 +153,16 @@ button {
151153
transition: background-color 0.5s ease;
152154
}
153155

156+
.send-to-user-inbox-btn {
157+
text-transform: uppercase;
158+
height: 40px;
159+
margin-right: 10px;
160+
margin-left: 0px;
161+
border-radius: 5px;
162+
background-color: var(--green);
163+
transition: background-color 0.5s ease;
164+
}
165+
154166
.send-recipe-to-user-inbox,
155167
.want-another-recipe {
156168
width: 170px;
@@ -162,9 +174,7 @@ button {
162174
width: 170px;
163175
display: none;
164176
grid-template-columns: 2fr 1fr;
165-
gap: 1rem;
166-
margin:auto
167-
177+
margin:auto;
168178
}
169179

170180

public/index.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,8 @@ <h3 id="loading-text">Creating Recipe...</h3>
123123
name="user_email_address"
124124
placeholder="sophie@example.com"
125125
/>
126-
<i class="fa fa-paper-plane" aria-hidden="true" fa-lg></i>
126+
<button class="send-to-user-inbox-btn">send</button>
127+
<!-- <i class="fa fa-paper-plane" aria-hidden="true" fa-lg></i> -->
127128
<!-- <button class="send-email-btn">send</button> -->
128129
</section>
129130
</div>

public/index.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ const userEmail = document.querySelector("#user-email");
1818
const sendEmailButton = document.querySelector(".send-email-btn");
1919
const emailSection = document.querySelector(".email-section");
2020
const paperPlane = document.querySelector(".fa-paper-plane");
21+
const sendToUserInboxBtn = document.querySelector(".send-to-user-inbox-btn");
22+
console.log(sendToUserInboxBtn);
23+
2124
const dietaryRequirements = Array.from(
2225
document.querySelectorAll(".dietary-requirements")
2326
);
@@ -171,7 +174,7 @@ darkLightButton.addEventListener("change", () => {
171174
});
172175
});
173176

174-
paperPlane.addEventListener("click", () => {
177+
sendToUserInboxBtn.addEventListener("click", () => {
175178
let emailOBject = {
176179
[userEmail.name]: userEmail.value,
177180
};

0 commit comments

Comments
 (0)