Skip to content
Snippets Groups Projects
Commit f079c844 authored by David Trattnig's avatar David Trattnig
Browse files

Clock as custom component.

parent 10920b11
No related branches found
No related tags found
No related merge requests found
......@@ -8,11 +8,16 @@
<link rel='icon' type='image/png' href='/favicon.png'>
<link rel='stylesheet' href='/global.css'>
<link rel='stylesheet' href='/build/bundle.css'>
<link rel='stylesheet' href='/build/aura-clock-bundle.css'>
<script defer src='/build/bundle.js'></script>
<script defer src='/build/aura-clock-bundle.js'></script>
</head>
<body style="background-color: black;">
<aura-clock
name="Studio Clock"
logo="https://o94.at/themes/custom/radio_orange/logo1.png"
logosize="180px"
api="http://localhost:3333/api/v1/" />
</body>
</html>
......@@ -22,7 +22,8 @@ export default {
// a separate file - better for performance
css: css => {
css.write('public/build/aura-clock-bundle.css');
}
},
customElement: true
}),
// If you have external dependencies installed from
......
import StudioClock from './StudioClock.svelte';
const clock = new StudioClock({
target: document.body,
props: {
stationName: "Radio Orange",
stationLogo: "https://o94.at/themes/custom/radio_orange/logo1.png",
stationLogoSize: "180px",
apiUrl: 'http://localhost:3333/api/v1/'
}
});
export default clock;
\ No newline at end of file
......@@ -14,5 +14,10 @@
</head>
<body style="background-color: black;">
<aura-clock
name="Studio Clock"
logo="https://o94.at/themes/custom/radio_orange/logo1.png"
logosize="180px"
api="http://localhost:3333/api/v1/" />
</body>
</html>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment