added some styling

This commit is contained in:
Miguel 2024-06-24 20:57:40 -04:00
parent 3dd75c22c5
commit a5f6c383f1
4 changed files with 33 additions and 4 deletions

BIN
font/KHMenu.otf Normal file

Binary file not shown.

View file

@ -19,12 +19,11 @@
<h3>Check out these custom web components below!</h3>
<h4>Web Component 1</h4>
<poots-poot>
<h4 slot="keyblades">my favorite keyblades</h4>
<ul slot="list">
<ul slot="list" style="font-family: KHMenu;">
<li>
Kingdom Key

View file

@ -0,0 +1,6 @@
@font-face {
font-family: 'KHMenu';
src: url('font/KHMenu.otf') format('opentype');
font-weight: normal;
font-style: normal;
}

View file

@ -1,7 +1,31 @@
const template = document.createElement('template')
template.innerHTML = `
<div>
<style>
@font-face {
font-family: 'KHMenu';
src: url('font/KHMenu.otf') format('opentype');
font-weight: normal;
font-style: normal;
}
div {
border: 1px solid;
}
h2 {
font-family: KHMenu
}
:host {
background-color: purple
display: block;
}
</style>
<div>
<h2> WEPA! </h2>
<slot name="keyblades">Default text is no slot used in html</slot>
<slot name="list"> </slot>