Skip to content

Commit

Permalink
added confirmation page
Browse files Browse the repository at this point in the history
  • Loading branch information
ssolomero committed Jul 17, 2020
1 parent 94261da commit 6b1faaa
Show file tree
Hide file tree
Showing 17 changed files with 225 additions and 41 deletions.
41 changes: 41 additions & 0 deletions confirm.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
<!DOCTYPE html>
<head>
<meta charset="utf-8">
<title>Calendly</title>
<meta name="viewport" content="width=device-width, initial-scale=1">

<!-- Google Fonts -->
<link href="https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700;900&display=swap" rel="stylesheet">

<!-- Styles -->
<link rel="stylesheet" href="css/styles.css">
<link rel="stylesheet" href="css/confirm.css">

</head>

<body>

<div class="container">
<section class="body-section">
<h3>Confirmed!</h3>
<p id="scheduler">You are scheduled with ACME Sales.</p>
</section>
<section class="description-section">
<hgroup>
<h3 id="event">Pricing Review</h3>
<div class="icon-text-div">
<img src="icons/clock.svg" alt="clock-icon">
<h4 id="duration">15 min</h4>
</div><br>
<div class="icon-text-div">
<img src="icons/calendar (1).svg" alt="calendar-icon">
<h4 id="event-time-stamp">9:00am - 9:15am, Monday, July 13, 2020</h4>
</div>
</hgroup>
</section>
</div>

<script src="script/confirm.js"></script>

</body>
</html>
40 changes: 40 additions & 0 deletions css/confirm.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions css/confirm.css.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

39 changes: 39 additions & 0 deletions css/confirm.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
.container {
display: block;
height: 85vh;
text-align: center;
width: 645px;
margin: 50px auto;
overflow: auto;
}

.body-section, .description-section {
margin: 50px 100px;
}

.description-section {
border-top: 1px solid ghostwhite;
border-bottom: 1px solid ghostwhite;
padding-top: 25px;
text-align: initial;
}

@media (max-width: 1250px) {
.icon-text-div {
justify-content: left;
}
}

@media (max-width: 645px) {
.container {
width: auto;
}

.description-section {
margin: 30px 5%;
}

.body-section {
margin: 30px 2%;
}
}
34 changes: 26 additions & 8 deletions css/register.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion css/register.css.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

37 changes: 29 additions & 8 deletions css/register.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
.container {
max-width: 900px;
overflow: auto;
}

.description-section {
Expand All @@ -10,14 +11,6 @@
flex: 2;
}

#event-time-stamp {
margin: 0;
margin-left: 5px;
font-weight: 400;
color:mediumseagreen;
line-height: 1.3;
}

input {
width: 400px;
}
Expand All @@ -26,4 +19,32 @@ button[type="submit"] {
height: 45px;
margin-top: 15px;
padding: 0 20px;

&:focus {
outline: 0;
opacity: 0.5;
}
}

@media (max-width: 1250px) {

input {
box-sizing: border-box;
width: 100%;
}

.body-section {
margin: 30px 100px;
}

form {
text-align: initial;
}
}

@media (max-width: 645px) {

.body-section {
margin: 30px 5%;
}
}
5 changes: 5 additions & 0 deletions css/schedule.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion css/schedule.css.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions css/schedule.scss
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,13 @@
width: 100%;
margin-left: 5px;

&:hover {
opacity: 0.5;
}

&:focus {
outline: 0;
opacity: 0.5;
}
}

Expand Down
10 changes: 9 additions & 1 deletion css/styles.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion css/styles.css.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 9 additions & 1 deletion css/styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,14 @@ hgroup {
color: darkgray;
}

#event-time-stamp {
margin: 0;
margin-left: 5px;
font-weight: 400;
color:mediumseagreen;
line-height: 1.3;
}

.icon-text-div {
display: flex;
align-items: center;
Expand All @@ -137,7 +145,7 @@ hgroup {
text-align: center;
width: 645px;
margin: 50px auto;
overflow: scroll;
overflow-y: scroll;
}

.description-section {
Expand Down
4 changes: 2 additions & 2 deletions register.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,13 @@ <h4 id="event-time-stamp">9:00am - 9:15am, Monday, July 13, 2020</h4>
</section>
<div class="divider"></div>
<section id="register-section" class="body-section">
<form action="">
<form action="confirm.html">
<h3>Enter Details</h3>
<label for="name">Name</label>
<input type="text" name="" id="name" required>
<label for="email">Email</label>
<input type="email" name="" id="email" required>
<button type="submit">Schedule Event</button>
<button id="submit-btn" type="submit">Schedule Event</button>
</form>
</section>

Expand Down
6 changes: 6 additions & 0 deletions script/confirm.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
var event = JSON.parse(sessionStorage.getItem("eventObj"));

document.getElementById("event").textContent = event.name;
document.getElementById("scheduler").textContent = "You are scheduled with " + event.organizer;
document.getElementById("duration").textContent = event.duration + " min";
document.getElementById("event-time-stamp").textContent = event.time + " " + event.date;
16 changes: 0 additions & 16 deletions script/event.js
Original file line number Diff line number Diff line change
@@ -1,19 +1,3 @@
// var event = {
// name: "Pricing Review",
// organizer: "ACME Sales",
// duration: 15,
// description: "Our team will meet with you to review pricing options.",
// date: new Date(),
// time: "9:00",
// attendees: [],
// get getName() {
// return this.name;
// },
// set setName(value) {
// this.name = value;
// }
// };

var event = {
name: "Pricing Review",
organizer: "ACME Sales",
Expand Down
Loading

0 comments on commit 6b1faaa

Please sign in to comment.