Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build hard-coded Seed Data for MVP Server and Client. #18

Merged
merged 13 commits into from
Apr 6, 2022
Merged
10 changes: 8 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Project3
NicaVulcan marked this conversation as resolved.
Show resolved Hide resolved
YourSchedule.io

Group Project 3
## What is this application?
This application is for scheduling appointments. It can be customized per the business needs, whether it's a tattoo studio, a hair salon, or a scuba diving facility. The users will log in, select the date they want to have an appointment, and then based on the current appointments already scheduled, present the user with times that are available.

---
## How did we build this?

## What does it look like?

## Where can I find this?
7 changes: 6 additions & 1 deletion client/src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,18 @@

import React from 'react';
import Home from './pages/Home';
import Business from './pages/Business';

function App() {
return (
<section>
<h1>Your Schedule</h1>

<Home></Home>
{/* <Home></Home> */}
{/* hard-coded business into default load for easy testing */}
NicaVulcan marked this conversation as resolved.
Show resolved Hide resolved
<main>
<Business></Business>
</main>
</section>
);
}
Expand Down
113 changes: 113 additions & 0 deletions client/src/assets/css/animations.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,113 @@
.remove-animation {
NicaVulcan marked this conversation as resolved.
Show resolved Hide resolved
animation: none !important;
}

.fade-in {
animation-name: FadeIn;
animation-duration: 1s;
transition-timing-function: linear;
}
.fade-out {
animation-name: FadeOut;
animation-duration: 5s;
transition-timing-function: linear;
}

.fade-in-out {
/* animation-name: slide-in; */
animation-name: FadeOut;
animation-duration: 5s;
transition-timing-function: linear;
}

@keyframes FadeIn {
0% {
opacity: 0;
}
100% {
opacity: 1;
}
}

@-moz-keyframes FadeIn {
0% {
opacity: 0;
}
100% {
opacity: 1;
}
}

@-webkit-keyframes FadeIn {
0% {
opacity: 0;
}
100% {
opacity: 1;
}
}

@-o-keyframes FadeIn {
0% {
opacity: 0;
}
100% {
opacity: 1;
}
}

@-ms-keyframes FadeIn {
0% {
opacity: 0;
}
100% {
opacity: 1;
}
}

@keyframes FadeOut {
0% {
opacity: 1;
}
100% {
opacity: 0;
}
}

@-moz-keyframes FadeOut {
0% {
opacity: 1;
}
100% {
opacity: 0;
}
}


/* FADING OUT */
@-webkit-keyframes FadeOut {
0% {
opacity: 1;
}
100% {
opacity: 0;
}
}

@-o-keyframes FadeOut {
0% {
opacity: 1;
}
100% {
opacity: 0;
}
}

@-ms-keyframes FadeOut {
0% {
opacity: 1;
}
100% {
opacity: 0;
}
}
38 changes: 35 additions & 3 deletions client/src/assets/css/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
:root {

/* BASIC COLOR SCHEMA PLACEHOLDER */
/*TODO:: 04/05/2022 #EP || Define this color schema */
--C01: #f9f9f9;
--C02: #999;
--C03: #888;
Expand All @@ -16,13 +17,44 @@
--C10: #111;


NicaVulcan marked this conversation as resolved.
Show resolved Hide resolved

/* BOX-SHADOWS */
/*TODO:: 04/05/2022 #EP || Convert to pixels */
--bs-01: 0rem 0rem .5rem rgba(0 0 0 / .3), 0 0 .2rem rgba(0 0 0 / .3);
/*TODO:: 04/05/2022 #EP || Add this focus */
/* --bs-01_focus: 0rem 0rem .5rem rgba(0 0 0 / .3), 0 0 .2rem rgba(0 0 0 / .3); */
--bs-02: 0 0rem .5rem var(--a_01);
/*TODO:: 04/05/2022 #EP || Add this focus */
/* --bs-02_focus: 0 0rem .5rem var(--a_01); */



/* SHADOWS */


--s_black_a25: 0 0 .5rem var(--a_01);
--s_black_2px_a25: 2px solid var(--a_01);


/* BORDERS */

/*TODO:: 04/05/2022 #EP || Define these colors */
--b_01: 1px solid var(--c_00); /* default border and font color */
--b_01_focus: 2px solid var(--c_00); /* secondary for more obvious accents hovered */
--b_02: 1px solid var(--c_02); /* secondary for more obvious accents */
--b_02_focus: 1px solid var(--c_02); /* secondary for more obvious accents */
--b_03: 1px solid var(--c_03); /* secondary for more obvious accents */
--b_03_focus: 2px solid var(--c_03); /* secondary for more obvious accents hovered */


/* RADIUS */
/*TODO:: 04/05/2022 #EP || Verify these */
--br_primary: .5rem;
--br_secondary: .25rem;


/* ALPHAS */
/*TODO:: 04/05/2022 #EP || Verify these */
--a_01: rgba(0 0 0 /.25);
--a_02: rgba(0 0 0 /.5);


}

Expand Down
89 changes: 89 additions & 0 deletions client/src/assets/json/appointment.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
{
"0000-0000-1111" : {
"_id" : "0000-0000-1111",
"status" : "Scheduled",
"User" : {
"_id" : "0000-0000",
"name_first" : "Erik",
"name_Last" : "Plachta"
},
"Business" : {
"_id" : "0000-AAAA",
"brand_name" : "Erik's Business Brand Name"
},
"Appointment_Type" : {
"_id" : "0000-0000",
"name" : "General",
"description" : "Schedule an appointment with ${brand_name}."
},
"Details" : {
"subject" : "Want to discuss X with You",
"date_time" : "1649216132913",
"duration" : "45",
"timezone" : "EST",
"client" : {
"name": "Fake Client",
"email": "my@noemail.com",
"phone": "000-867-5309"
}
}
},
"0000-0000-2222" : {
"_id" : "0000-0000-2222",
"status" : "Scheduled",
"User" : {
"_id" : "0000-1111",
"name_first" : "Christiana",
"name_Last" : "Sullivan Morales"
},
"Business" : {
"_id" : "0000-BBBB",
"brand_name" : "Christian's Business Brand Name"
},
"Appointment_Type" : {
"_id" : "0000-0000",
"name" : "General",
"description" : "Schedule an appointment with ${brand_name}."
},
"Details" : {
"subject" : "Want to discuss X with You",
"date_time" : "1649216132913",
"duration" : "45",
"timezone" : "EST",
"client" : {
"name": "Fake Client",
"email": "my@noemail.com",
"phone": "000-867-5309"
}
}
},
"0000-0000-3333" : {
"_id" : "0000-0000-3333",
"status" : "Scheduled",
"User" : {
"_id" : "0000-2222",
"name_first" : "Mary",
"name_Last" : "lawton"
},
"Business" : {
"_id" : "0000-CCCC",
"brand_name" : "Mary's Business Brand Name"
},
"Appointment_Type" : {
"_id" : "0000-0000",
"name" : "General",
"description" : "Schedule an appointment with ${brand_name}."
},
"Details" : {
"subject" : "Want to discuss X with You",
"date_time" : "1649216132913",
"duration" : "45",
"timezone" : "EST",
"client" : {
"name": "Fake Client",
"email": "my@noemail.com",
"phone": "000-867-5309"
}
}
}
}
31 changes: 31 additions & 0 deletions client/src/assets/json/appointment_type.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
"0000-0000" : {
"_id" : "0000-0000",
"name" : "General",
"description" : "Schedule an appointment with ${brand_name}.",
"date" : "${date_time}",
"utz" : "${utz}",
"Details" : {
"subject" : "",
"date" : "",
"duration" : "",
"time_Start" : "",
"timezone" : "",
"client" : {
"name": "",
"email": "",
"phone": ""
}
},
"Users" : [
"0000-0000",
"1111-1111",
"2222-2222"
],
"Appointments" : [
"0000-0000-1111",
"0000-0000-2222",
"0000-0000-3333"
]
}
}
Loading