{"id":15878203,"url":"https://github.com/abeidahmed/component-template","last_synced_at":"2025-08-03T11:31:44.601Z","repository":{"id":115786590,"uuid":"293331722","full_name":"abeidahmed/component-template","owner":"abeidahmed","description":"Need some good looking tailwindcss components for your next project? Grab some professionally designed components that are not just good looking but also follow the best tailwindcss practices.","archived":false,"fork":false,"pushed_at":"2020-10-16T09:59:57.000Z","size":1256,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-12-01T04:42:44.463Z","etag":null,"topics":["html5","rails","tailwind-component","tailwindcss","tailwindui","vue"],"latest_commit_sha":null,"homepage":"https://tailwind-component.herokuapp.com/","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/abeidahmed.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-09-06T17:51:25.000Z","updated_at":"2023-08-08T09:11:19.000Z","dependencies_parsed_at":null,"dependency_job_id":"0d82d833-ce5d-40b0-88e2-0d99b8f11a9d","html_url":"https://github.com/abeidahmed/component-template","commit_stats":{"total_commits":182,"total_committers":1,"mean_commits":182.0,"dds":0.0,"last_synced_commit":"4e8acd9e372ee829cca23980378e4bc102a22a9f"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abeidahmed%2Fcomponent-template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abeidahmed%2Fcomponent-template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abeidahmed%2Fcomponent-template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abeidahmed%2Fcomponent-template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/abeidahmed","download_url":"https://codeload.github.com/abeidahmed/component-template/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228540830,"owners_count":17934029,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["html5","rails","tailwind-component","tailwindcss","tailwindui","vue"],"created_at":"2024-10-06T02:21:26.467Z","updated_at":"2024-12-06T23:52:25.914Z","avatar_url":"https://github.com/abeidahmed.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Tailwind component\n\nHosted on [Tailwind component](https://tailwind-component.herokuapp.com/)\n\n### Disclaimer\n\nThis app is not meant to replace or harm [TailwindUI](https://tailwindui.com/) in any way possible. This app is meant to be used for learning purposes only.\n\n### Structure of the app\n\nThe data structure of this app is explained below:\n\n- Main wrapper Ex: Page sections (which is listed as ComponentCollection in the db)\n- Child wrapper of the templates Ex: Hero sections (which is listed as Category in the db)\n- Components within 'Hero sections' (which is listed as Component in the db)\n\n### How to use the app\n\n- Clone this app and run `bundle install`.\n- `rails db:create db:migrate db:seed` to get the app rolling to its default state.\n- `rails s`.\n- `./bin/webpack-dev-server` to start the webpack server.\n- Go to `localhost:3000`.\n\nThere is no Admin section in this app.\n\n#### Steps\n\nTo create the `Main wrapper`, type `rails c` in your terminal and type `ComponentCollection.create! title: 'Headings'`. This will create a `Main wrapper` which will be responsible for storing all the categories related to the tag `Headings`.\n\nNext create the category for `Headings`. Exit out of the `rails c` if you haven't.\n`rails g category headings page_headings`.\n\n- This is a custom rails generator and it will create a `page_headings` category inside the `headings` table. Please follow the `rails` naming convention. The generator will take care of the `category` name while storing in the `db`.\n- It will also create an empty folder within the `app/components/` folder or the `app/pages` folder. The location depends on the `Main wrapper` which in this case is `headings` and which was created by `ComponentCollection.create! title: 'Headings'`.\n\nNext create the template for `page_headings` category.\n`rails g template page_headings with_meta_and_actions --type=component`.\n\n- This is a custom rails generator and it will create a `with_meta_and_actions` template within the `page_headings` category. Again follow the rails naming convention.\n- This will create a `erb` file within the `page_headings` folder with the name `with_meta_and_actions.html.erb`.\n- The `type` args is necessary here. I am thinking of expanding the app by not just making smaller components, but also by making full page templates.\n\nYou can visit [TailwindUI](https://tailwindui.com/) to get a brief idea about the structure of the files that you created.\n\nLook at the `components.yml` file in the `db/components.yml`. Using the above generators will ensure proper storage in the `yml` file. But, why the `yml` file? Because the `erb` templates are not stored in the `db`. Seeding data in `production` mode will be extremely time consuming and hectic. Hence with the help of the `yml` file, we can just run `heroku run rake db:seed` and the `seeds.rb` will take care of the rest.\n\n### Any errors?\n\nIf you face any errors, please open an `issue`. Mostly the errors happen because of name conflict while using generators.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabeidahmed%2Fcomponent-template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fabeidahmed%2Fcomponent-template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabeidahmed%2Fcomponent-template/lists"}