Skip to content
This repository was archived by the owner on Oct 26, 2024. It is now read-only.

Commit 7346989

Browse files
Updating UI
1 parent 5ca9908 commit 7346989

File tree

6 files changed

+32
-14
lines changed

6 files changed

+32
-14
lines changed

.npmignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,5 @@ spec
1111
tsconfig.json
1212
vite.config.js
1313
.prettierignore
14+
postcss.config.js
15+
tailwind.config.js

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
[![](https://github.com/stimulus-components/stimulus-checkbox-select-all/workflows/Lint/badge.svg)](https://github.com/stimulus-components/stimulus-checkbox-select-all)
66
[![](https://github.com/stimulus-components/stimulus-checkbox-select-all/workflows/Test/badge.svg)](https://github.com/stimulus-components/stimulus-checkbox-select-all)
77
[![](https://img.shields.io/github/license/stimulus-components/stimulus-checkbox-select-all.svg)](https://github.com/stimulus-components/stimulus-checkbox-select-all)
8-
[![Netlify Status](https://api.netlify.com/api/v1/badges/073b5fee-358d-4dbf-b807-52034690f8ef/deploy-status)](https://stimulus-checkbox-select-all.netlify.com)
98

109
## Getting started
1110

index.html

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@
44
<meta charset="UTF-8" />
55
<meta name="description" content="A Stimulus controller for managing checkbox lists." />
66
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
7-
<link href="https://unpkg.com/tailwindcss@^2.0/dist/tailwind.min.css" rel="stylesheet" />
87

98
<title>Stimulus Checkbox Select All</title>
109

1110
<script type="module" defer>
11+
import './src/app.css'
1212
import { Application } from '@hotwired/stimulus'
1313
import CheckboxSelectAll from './src/index'
1414

@@ -72,7 +72,7 @@
7272
<div class="text-center">
7373
<h1 class="text-4xl tracking-tight font-extrabold text-gray-900 sm:text-5xl md:text-6xl">
7474
<span class="block xl:inline">Stimulus</span>
75-
<span class="block text-yellow-600 xl:inline">Checkbox Select All</span>
75+
<span class="block bg-gradient-to-r from-yellow-500 to-orange-500 xl:inline bg-clip-text text-transparent">Checkbox Select All</span>
7676
</h1>
7777

7878
<p class="mt-3 max-w-md mx-auto text-base text-gray-500 sm:text-lg md:mt-5 md:text-xl md:max-w-3xl">
@@ -97,28 +97,30 @@ <h1 class="text-4xl tracking-tight font-extrabold text-gray-900 sm:text-5xl md:t
9797
class="inline-block"
9898
src="https://img.shields.io/github/license/stimulus-components/stimulus-checkbox-select-all.svg"
9999
/>
100-
101-
<img
102-
class="inline-block"
103-
src="https://api.netlify.com/api/v1/badges/f75f37fa-c1c7-42c3-8266-27d11c67c2b1/deploy-status"
104-
/>
105100
</p>
106101

107102
<div class="mt-5 max-w-md mx-auto sm:flex sm:justify-center md:mt-8">
108103
<div class="rounded-md shadow">
109104
<a
110-
href="https://github.com/stimulus-components/stimulus-checkbox-select-all"
111-
class="w-full flex items-center justify-center px-8 py-3 border border-transparent text-base font-medium rounded-md text-white bg-yellow-600 hover:bg-yellow-700 md:py-4 md:text-lg md:px-10"
105+
href="https://www.stimulus-components.com/docs/stimulus-checkbox-select-all"
106+
class="w-full flex items-center justify-center px-8 py-3 border border-transparent text-base font-medium rounded-md text-white bg-gradient-to-r from-yellow-500 to-orange-500 md:py-4 md:text-lg md:px-10"
112107
>
113-
GitHub
108+
Documentation &rarr;
114109
</a>
115110
</div>
116111
<div class="mt-3 rounded-md shadow sm:mt-0 sm:ml-3">
117112
<a
118-
href="https://stimulus-components.netlify.app/docs/components/stimulus-checkbox-select-all/"
119-
class="w-full flex items-center justify-center px-8 py-3 border border-transparent text-base font-medium rounded-md text-yellow-600 bg-white hover:bg-gray-50 md:py-4 md:text-lg md:px-10"
113+
href="https://github.com/stimulus-components/stimulus-checkbox-select-all"
114+
class="w-full flex items-center justify-center gap-1 px-8 py-3 border border-transparent text-base font-medium rounded-md bg-white hover:bg-gray-50 md:py-4 md:text-lg md:px-10"
120115
>
121-
Documentation
116+
<svg fill="currentColor" viewBox="0 0 24 24" aria-hidden="true" class="h-6 w-6">
117+
<path
118+
fill-rule="evenodd"
119+
d="M12 2C6.477 2 2 6.484 2 12.017c0 4.425 2.865 8.18 6.839 9.504.5.092.682-.217.682-.483 0-.237-.008-.868-.013-1.703-2.782.605-3.369-1.343-3.369-1.343-.454-1.158-1.11-1.466-1.11-1.466-.908-.62.069-.608.069-.608 1.003.07 1.531 1.032 1.531 1.032.892 1.53 2.341 1.088 2.91.832.092-.647.35-1.088.636-1.338-2.22-.253-4.555-1.113-4.555-4.951 0-1.093.39-1.988 1.029-2.688-.103-.253-.446-1.272.098-2.65 0 0 .84-.27 2.75 1.026A9.564 9.564 0 0112 6.844c.85.004 1.705.115 2.504.337 1.909-1.296 2.747-1.027 2.747-1.027.546 1.379.202 2.398.1 2.651.64.7 1.028 1.595 1.028 2.688 0 3.848-2.339 4.695-4.566 4.943.359.309.678.92.678 1.855 0 1.338-.012 2.419-.012 2.747 0 .268.18.58.688.482A10.019 10.019 0 0022 12.017C22 6.484 17.522 2 12 2z"
120+
clip-rule="evenodd"
121+
></path>
122+
</svg>
123+
GitHub
122124
</a>
123125
</div>
124126
</div>

postcss.config.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
module.exports = {
2+
plugins: {
3+
tailwindcss: {},
4+
autoprefixer: {},
5+
},
6+
}

src/app.css

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
@tailwind base;
2+
@tailwind components;
3+
@tailwind utilities;

tailwind.config.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
module.exports = {
2+
content: [
3+
"./index.html",
4+
"./src/**/*.{js,ts,jsx,tsx}",
5+
],
6+
}

0 commit comments

Comments
 (0)