<script>
import marked from 'marked';
import { fade } from 'svelte/transition';
import { flip } from 'svelte/animate';
import debounce from 'lodash/debounce';
import Slider from './Slider.svelte';
import salary from './salary';
let name = 'world';
let current = 1000000;
const res = fetch('https://api.github.com/repos/f2etw/jobs/issues?state=open&sort=created').then(res => res.json()).then(data => {
return data.map(d => Object.assign(d, { salary: salary() }))
})
const debounced = debounce(e => current = e.detail.value, 300);
const formatter = new Intl.NumberFormat('zh-Hans', { style: 'currency', currency: 'TWD', maximumSignificantDigits: 3 })
</script>
<style>
.card-container {
display: grid;
grid-template-columns: repeat(5, 150px);
grid-gap: 20px;
}
.card {
font-size: 10px;
box-sizing: border-box;
padding: 10px;
max-height: 150px;
overflow: hidden;
border: 1px solid #aaa;
}
.range {
padding: 3px;
display: inline-block;