As a user, when the Planetary Sectors page loads, I should see many different cards with
AC
WHEN the page loads, I should see planetary sectors information displayed on the screen.
THEN when I should be able to scroll down to scroll down to see more cards containing even more sectors.
AND I should be able to return to the navbar and go to the other pages.
WIREFRAMES
DEV NOTES
create a folder called sectors
create a file inside it called sectors.js
in the sectors.js create a domString call sectorMaker()
1. Create a bootstrap card with an image, fields for name, occupied, and explored, and also buttons for edit and delete
1. create a click event for the `Edit` button with the class `edit-sector`
1. create a click event for the `Delete` button with the class `delete-sector`
1. create a click event for the `Add` button with the class `add-sector`
1. create a folder called `sectorArea`
1. inside that folder create a file called `sectorArea.js`
1. The purpose of this file to to store the `buildSector`, `editSector`, and `deleteSector` functions
1. import necessary components
1. the `buildSector` function will look like this...
USER STORY
As a user, when the Planetary Sectors page loads, I should see many different cards with
AC
WHEN the page loads, I should see planetary sectors information displayed on the screen. THEN when I should be able to scroll down to scroll down to see more cards containing even more sectors. AND I should be able to return to the navbar and go to the other pages.
WIREFRAMES
DEV NOTES
in the sectors.js create a domString call sectorMaker()
export default { sectorMaker };
const buildSectors = () => { sectorsData.getSectors() .then((sectors) => { let domString = ''; domString += '
Planetary Sectors
'; domString += '};
const getSectors = () => new Promise((resolve, reject) => { axios.get(
${baseUrl}/sectors.json
) .then((response) => { const demSectors = response.data; const sectors = []; if (demCows) { Object.keys(demSectors).forEach((sectorId) => { demSectors[cowId].id = sectorId; cows.push(demSectorss[sectorId]); }); }});