Commit 8e267fd6 authored by david's avatar david
Browse files

Clock as custom component.

parent b8b4f077
......@@ -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>
<body style="background-color: black;">
name="Studio Clock"
api="http://localhost:3333/api/v1/" />
......@@ -22,7 +22,8 @@ export default {
// a separate file - better for performance
css: 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: "",
stationLogoSize: "180px",
apiUrl: 'http://localhost:3333/api/v1/'
export default clock;
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment