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
Feb 2, 2024
1 parent
d1404e2
commit ef3a4f3
Showing
5 changed files
with
81 additions
and
0 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,76 @@ | ||
import { html, render } from 'lit'; | ||
|
||
const template = () => { | ||
return html` <article> | ||
<a href="#" class="image"><img src="images/pic01.jpg" alt="" /></a> | ||
<h3>Interdum aenean</h3> | ||
<p> | ||
Aenean ornare velit lacus, ac varius enim lorem ullamcorper dolore. Proin aliquam facilisis ante interdum. Sed | ||
nulla amet lorem feugiat tempus aliquam. | ||
</p> | ||
<ul class="actions"> | ||
<li><a href="#" class="button">More</a></li> | ||
</ul> | ||
</article> | ||
<article> | ||
<a href="#" class="image"><img src="images/pic02.jpg" alt="" /></a> | ||
<h3>Nulla amet dolore</h3> | ||
<p> | ||
Aenean ornare velit lacus, ac varius enim lorem ullamcorper dolore. Proin aliquam facilisis ante interdum. Sed | ||
nulla amet lorem feugiat tempus aliquam. | ||
</p> | ||
<ul class="actions"> | ||
<li><a href="#" class="button">More</a></li> | ||
</ul> | ||
</article> | ||
<article> | ||
<a href="#" class="image"><img src="images/pic03.jpg" alt="" /></a> | ||
<h3>Tempus ullamcorper</h3> | ||
<p> | ||
Aenean ornare velit lacus, ac varius enim lorem ullamcorper dolore. Proin aliquam facilisis ante interdum. Sed | ||
nulla amet lorem feugiat tempus aliquam. | ||
</p> | ||
<ul class="actions"> | ||
<li><a href="#" class="button">More</a></li> | ||
</ul> | ||
</article> | ||
<article> | ||
<a href="#" class="image"><img src="images/pic04.jpg" alt="" /></a> | ||
<h3>Sed etiam facilis</h3> | ||
<p> | ||
Aenean ornare velit lacus, ac varius enim lorem ullamcorper dolore. Proin aliquam facilisis ante interdum. Sed | ||
nulla amet lorem feugiat tempus aliquam. | ||
</p> | ||
<ul class="actions"> | ||
<li><a href="#" class="button">More</a></li> | ||
</ul> | ||
</article> | ||
<article> | ||
<a href="#" class="image"><img src="images/pic05.jpg" alt="" /></a> | ||
<h3>Feugiat lorem aenean</h3> | ||
<p> | ||
Aenean ornare velit lacus, ac varius enim lorem ullamcorper dolore. Proin aliquam facilisis ante interdum. Sed | ||
nulla amet lorem feugiat tempus aliquam. | ||
</p> | ||
<ul class="actions"> | ||
<li><a href="#" class="button">More</a></li> | ||
</ul> | ||
</article> | ||
<article> | ||
<a href="#" class="image"><img src="images/pic06.jpg" alt="" /></a> | ||
<h3>Amet varius aliquam</h3> | ||
<p> | ||
Aenean ornare velit lacus, ac varius enim lorem ullamcorper dolore. Proin aliquam facilisis ante interdum. Sed | ||
nulla amet lorem feugiat tempus aliquam. | ||
</p> | ||
<ul class="actions"> | ||
<li><a href="#" class="button">More</a></li> | ||
</ul> | ||
</article>`; | ||
}; | ||
export default function (block: HTMLElement) { | ||
block.innerHTML = ''; | ||
|
||
block.style.removeProperty('display'); | ||
render(template(), block); | ||
} |
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 @@ | ||
export default function (block: HTMLElement): void; |
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