Closed zoeames closed 4 years ago
<div class="card" id="dash-card-food">
<div class="card-header">
Featured
</div>
<img class="card-img-top" src="..." alt="Card image cap">
<div class="card-body">
<p class="card-text">Some quick example text to build on the card title and make up the bulk of the card's content.</p>
</div>
</div>
User Story
As a user, on the main page you should see four bootstrap cards that represent each "page" (food, airport, crew, and plane)
AC
WHEN I come to the page I should see 4 cards THEN I should be able to click on the card and go the "page" selected AND I should see a footer at the bottom of the dashboard page AND it should have the airline logo
Dev Notes
dashboard
printDashboard
that builds adomString
that prints bootstrap cards https://getbootstrap.com/docs/4.0/components/card/#images<img>
tag add another<div>
with an h2 tag with the title of the pagedash-card-food
dash-card-airport
dash-card-crew
dash-card-plane
openFoodEvent
openAirportEvent
openCrewEvent
`openPlaneEvent$(body).on(
click,
#dash-card-food, foodComponent.printFood)
#15$(body).on(
click,
#dash-card-airport, airportComponent.printAirport)
#19$(body).on(
click,
#dash-card-crew, crewComponent.printCrew)
#20$(body).on(
click,
#dash-card-plane, planeComponent.printPlane)
#21