Skip to content

Commit 51f960d

Browse files
Updating UI
1 parent 66ef8d3 commit 51f960d

File tree

6 files changed

+35
-15
lines changed

6 files changed

+35
-15
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: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,14 @@
55
[![](https://github.com/stimulus-components/stimulus-rails-nested-form/workflows/Lint/badge.svg)](https://github.com/stimulus-components/stimulus-rails-nested-form)
66
[![](https://github.com/stimulus-components/stimulus-rails-nested-form/workflows/Test/badge.svg)](https://github.com/stimulus-components/stimulus-rails-nested-form)
77
[![](https://img.shields.io/github/license/stimulus-components/stimulus-rails-nested-form.svg)](https://github.com/stimulus-components/stimulus-rails-nested-form)
8-
[![Netlify Status](https://api.netlify.com/api/v1/badges/c21b3ca7-40fa-4de3-aad5-56dbc343ace6/deploy-status)](https://stimulus-rails-nested-form.netlify.com)
98

109
## Getting started
1110

1211
A Stimulus controller to create new fields on the fly to populate your Rails relationship with `accepts_nested_attributes_for`.
1312

1413
## 📚 Documentation
1514

16-
See [stimulus-rails-nested-form documentation](https://stimulus-components.netlify.app/docs/components/stimulus-rails-nested-form/).
15+
See [stimulus-rails-nested-form documentation](https://www.stimulus-components.com/docs/stimulus-rails-nested-form/).
1716

1817
## 👷‍♂️ Contributing
1918

index.html

Lines changed: 17 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@
77
content="A Stimulus controller to create new fields on the fly to populate your Rails relationship."
88
/>
99
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
10-
<link href="https://unpkg.com/tailwindcss@^2.0/dist/tailwind.min.css" rel="stylesheet" />
1110

1211
<title>Stimulus Rails Nested Form</title>
1312

1413
<script type="module" defer>
14+
import './src/app.css'
1515
import { Application } from '@hotwired/stimulus'
1616
import NestedForm from './src/index'
1717

@@ -75,7 +75,9 @@
7575
<div class="text-center">
7676
<h1 class="text-4xl tracking-tight font-extrabold text-gray-900 sm:text-5xl md:text-6xl">
7777
<span class="block xl:inline">Stimulus</span>
78-
<span class="block text-yellow-600 xl:inline">Rails Nested Form</span>
78+
<span class="block bg-gradient-to-r from-yellow-500 to-orange-500 xl:inline bg-clip-text text-transparent"
79+
>Rails Nested Form</span
80+
>
7981
</h1>
8082

8183
<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">
@@ -100,28 +102,30 @@ <h1 class="text-4xl tracking-tight font-extrabold text-gray-900 sm:text-5xl md:t
100102
class="inline-block"
101103
src="https://img.shields.io/github/license/stimulus-components/stimulus-rails-nested-form.svg"
102104
/>
103-
104-
<img
105-
class="inline-block"
106-
src="https://api.netlify.com/api/v1/badges/f75f37fa-c1c7-42c3-8266-27d11c67c2b1/deploy-status"
107-
/>
108105
</p>
109106

110107
<div class="mt-5 max-w-md mx-auto sm:flex sm:justify-center md:mt-8">
111108
<div class="rounded-md shadow">
112109
<a
113-
href="https://github.com/stimulus-components/stimulus-rails-nested-form"
114-
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"
110+
href="https://www.stimulus-components.com/docs/stimulus-rails-nested-form"
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-gradient-to-r from-yellow-500 to-orange-500 md:py-4 md:text-lg md:px-10"
115112
>
116-
GitHub
113+
Documentation &rarr;
117114
</a>
118115
</div>
119116
<div class="mt-3 rounded-md shadow sm:mt-0 sm:ml-3">
120117
<a
121-
href="https://stimulus-components.netlify.app/docs/components/stimulus-rails-nested-form/"
122-
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"
118+
href="https://github.com/stimulus-components/stimulus-rails-nested-form"
119+
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"
123120
>
124-
Documentation
121+
<svg fill="currentColor" viewBox="0 0 24 24" aria-hidden="true" class="h-6 w-6">
122+
<path
123+
fill-rule="evenodd"
124+
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"
125+
clip-rule="evenodd"
126+
></path>
127+
</svg>
128+
GitHub
125129
</a>
126130
</div>
127131
</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)