-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
23ab97f
commit 2c7f1f3
Showing
4 changed files
with
20 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,14 @@ | ||
import header from "./modules/header.js"; | ||
import footer from "./modules/footer.js"; | ||
import home from "./modules/pages/home.js"; | ||
import shop from "./modules/pages/shop.js"; | ||
import { goToPage } from "./modules/functions.js"; | ||
|
||
const body = document.querySelector('body'); | ||
const main = document.createElement('main'); | ||
|
||
main.append( | ||
...home(), | ||
); | ||
|
||
body.append( | ||
header(), | ||
main, | ||
footer(), | ||
); | ||
|
||
// temporal function for testing | ||
main.replaceChildren(...shop()); | ||
); | ||
|
||
goToPage("home"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters