generated from adobe/aem-boilerplate
-
Notifications
You must be signed in to change notification settings - Fork 2
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
izabela.horodenska
committed
Apr 19, 2024
1 parent
ed9a139
commit 07dcd79
Showing
4 changed files
with
52 additions
and
101 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 |
---|---|---|
@@ -0,0 +1,31 @@ | ||
import { html, render } from 'https://unpkg.com/[email protected]/lit-html.js'; | ||
import { typographyTemplate } from './typography.js'; | ||
import { imageTemplate } from './image.js'; | ||
import { buttonsTemplate } from './buttons.js'; | ||
import { colorsTemplate } from './colors.js'; | ||
import { featuresTemplate } from './features.js'; | ||
import { footnoteTemplate } from './footnote.js'; | ||
import { formTemplate } from './form.js'; | ||
import { gridTemplate } from './grid.js'; | ||
import { iconsTemplate } from './icons.js'; | ||
import { linkTemplate } from './link.js'; | ||
import { mediaTemplate } from './media.js'; | ||
import { postsTemplate } from './posts.js'; | ||
import { tableTemplate } from './table.js'; | ||
import { bannersTemplate } from './banners.js'; | ||
import { navTemplate } from './nav.js'; | ||
|
||
const getTemplate = () => { | ||
const url = new URLSearchParams(window.origin); | ||
const template = url.get('template'); | ||
return template; | ||
}; | ||
|
||
const appTemplate = () => { | ||
const componentTemplate = getTemplate(); | ||
return componentTemplate; | ||
}; | ||
|
||
const app = document.getElementById('app'); | ||
|
||
render(appTemplate(), app); |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<link rel="stylesheet" href="main.css"> | ||
<link rel="stylesheet" href="nav.css"> | ||
<link rel="stylesheet" href="/dist/styles/styles.css"> | ||
<link rel="stylesheet" href="../__template__/assets/css/main.css" /> | ||
<title>Document</title> | ||
</head> | ||
<body> | ||
|
||
</body> | ||
</html> |