Changed Hex codes to color names

Having named colours helped me understand this tricky part of the tutorial. I could visualize which colour was being kicked out.
pull/5761/head
Aswin Vayiravan 5 years ago committed by GitHub
parent 625e3056bf
commit 36cef36066
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -2,11 +2,11 @@
import Thing from './Thing.svelte';
let things = [
{ id: 1, color: '#0d0887' },
{ id: 2, color: '#6a00a8' },
{ id: 3, color: '#b12a90' },
{ id: 4, color: '#e16462' },
{ id: 5, color: '#fca636' }
{ id: 1, color: 'darkblue' },
{ id: 2, color: 'indigo' },
{ id: 3, color: 'deeppink' },
{ id: 4, color: 'salmon' },
{ id: 5, color: 'gold' }
];
function handleClick() {
@ -20,4 +20,4 @@
{#each things as thing}
<Thing current={thing.color}/>
{/each}
{/each}

Loading…
Cancel
Save