Skip to content

Instantly share code, notes, and snippets.

@rossjha
Last active August 26, 2022 16:17
Show Gist options
  • Save rossjha/cff78333672603f05a3c1a4be1e39fe2 to your computer and use it in GitHub Desktop.
Save rossjha/cff78333672603f05a3c1a4be1e39fe2 to your computer and use it in GitHub Desktop.
STARTER
import Component from '@glimmer/component';
export default class extends Component {
}
import Controller from '@ember/controller';
export default class ApplicationController extends Controller {
}
@import "https://unpkg.com/tailwindcss@^2/dist/tailwind.min.css";
body{
background: #F9FAFB;
}
<main class="container mx-auto my-8 bg-gray-50">
<div class="tw-w-4/6">
<InputRange/>
</div>
{{outlet}}
</main>
<div class="Input-Range relative">
<div class="track w-full bg-white p-1 absolute"></div>
<div class="progress" class="bg-blue-500 w-full p-1 absolute" style="width:50%;">
<div class="thumb" class="absolute w-4 h-4 rounded-full bg-blue-500 -top-1 translate-y-6"></div>
</div>
</div>
{
"version": "0.17.1",
"EmberENV": {
"FEATURES": {},
"_TEMPLATE_ONLY_GLIMMER_COMPONENTS": false,
"_APPLICATION_TEMPLATE_WRAPPER": true,
"_JQUERY_INTEGRATION": true
},
"options": {
"use_pods": false,
"enable-testing": false
},
"dependencies": {
"jquery": "https://cdnjs.cloudflare.com/ajax/libs/jquery/3.5.1/jquery.js",
"ember": "3.18.1",
"ember-template-compiler": "3.18.1",
"ember-testing": "3.18.1"
},
"addons": {
"@glimmer/component": "1.0.0",
"ember-data": "3.18.0",
"ember-truth-helpers": "3.0.0",
"ember-modifier": "3.0.0"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment