├── .gitignore ├── LICENSE ├── README.md ├── package-lock.json ├── package.json ├── postcss.config.js ├── public ├── _redirects ├── favicon.ico ├── icons8-tv-100.png ├── index.html ├── logo192.png ├── logo512.png ├── manifest.json └── robots.txt ├── src ├── assets │ └── tailwind.css ├── components │ ├── App.css │ ├── App.js │ ├── channelCard.js │ ├── channels.js │ ├── loadingSpinner.js │ └── videoPlayer.js ├── fetchChannels.js ├── index.css ├── index.js ├── serviceWorker.js └── setupTests.js └── tailwind.config.js /.gitignore: -------------------------------------------------------------------------------- 1 | # Logs 2 | logs 3 | *.log 4 | npm-debug.log* 5 | yarn-debug.log* 6 | yarn-error.log* 7 | lerna-debug.log* 8 | 9 | # Diagnostic reports (https://nodejs.org/api/report.html) 10 | report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json 11 | 12 | # Runtime data 13 | pids 14 | *.pid 15 | *.seed 16 | *.pid.lock 17 | 18 | # Directory for instrumented libs generated by jscoverage/JSCover 19 | lib-cov 20 | 21 | # Coverage directory used by tools like istanbul 22 | coverage 23 | *.lcov 24 | 25 | # nyc test coverage 26 | .nyc_output 27 | 28 | # Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files) 29 | .grunt 30 | 31 | # Bower dependency directory (https://bower.io/) 32 | bower_components 33 | 34 | # node-waf configuration 35 | .lock-wscript 36 | 37 | # Compiled binary addons (https://nodejs.org/api/addons.html) 38 | build/Release 39 | 40 | # Dependency directories 41 | node_modules/ 42 | jspm_packages/ 43 | 44 | # TypeScript v1 declaration files 45 | typings/ 46 | 47 | # TypeScript cache 48 | *.tsbuildinfo 49 | 50 | # Optional npm cache directory 51 | .npm 52 | 53 | # Optional eslint cache 54 | .eslintcache 55 | 56 | # Microbundle cache 57 | .rpt2_cache/ 58 | .rts2_cache_cjs/ 59 | .rts2_cache_es/ 60 | .rts2_cache_umd/ 61 | 62 | # Optional REPL history 63 | .node_repl_history 64 | 65 | # Output of 'npm pack' 66 | *.tgz 67 | 68 | # Yarn Integrity file 69 | .yarn-integrity 70 | 71 | # dotenv environment variables file 72 | .env 73 | .env.test 74 | 75 | # parcel-bundler cache (https://parceljs.org/) 76 | .cache 77 | 78 | # Next.js build output 79 | .next 80 | 81 | # Nuxt.js build / generate output 82 | .nuxt 83 | dist 84 | 85 | # Gatsby files 86 | .cache/ 87 | # Comment in the public line in if your project uses Gatsby and *not* Next.js 88 | # https://nextjs.org/blog/next-9-1#public-directory-support 89 | # public 90 | 91 | # vuepress build output 92 | .vuepress/dist 93 | 94 | # Serverless directories 95 | .serverless/ 96 | 97 | # FuseBox cache 98 | .fusebox/ 99 | 100 | # DynamoDB Local files 101 | .dynamodb/ 102 | 103 | # TernJS port file 104 | .tern-port 105 | # See https://help.github.com/articles/ignoring-files/ for more about ignoring files. 106 | 107 | # dependencies 108 | /node_modules 109 | /.pnp 110 | .pnp.js 111 | 112 | # testing 113 | /coverage 114 | 115 | # production 116 | /build 117 | build/ 118 | 119 | # misc 120 | .DS_Store 121 | .env.local 122 | .env.development.local 123 | .env.test.local 124 | .env.production.local 125 | 126 | npm-debug.log* 127 | yarn-debug.log* 128 | yarn-error.log* 129 | 130 | # tailwind generated css file 131 | /src/assets/main.css 132 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2020 Vipul 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app). 2 | 3 | ## Available Scripts 4 | 5 | In the project directory, you can run: 6 | 7 | ### `npm start` 8 | 9 | Runs the app in the development mode.
10 | Open [http://localhost:3000](http://localhost:3000) to view it in the browser. 11 | 12 | The page will reload if you make edits.
13 | You will also see any lint errors in the console. 14 | 15 | ### `npm test` 16 | 17 | Launches the test runner in the interactive watch mode.
18 | See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information. 19 | 20 | ### `npm run build` 21 | 22 | Builds the app for production to the `build` folder.
23 | It correctly bundles React in production mode and optimizes the build for the best performance. 24 | 25 | The build is minified and the filenames include the hashes.
26 | Your app is ready to be deployed! 27 | 28 | See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information. 29 | 30 | ### `npm run eject` 31 | 32 | **Note: this is a one-way operation. Once you `eject`, you can’t go back!** 33 | 34 | If you aren’t satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project. 35 | 36 | Instead, it will copy all the configuration files and the transitive dependencies (webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you’re on your own. 37 | 38 | You don’t have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn’t feel obligated to use this feature. However we understand that this tool wouldn’t be useful if you couldn’t customize it when you are ready for it. 39 | 40 | ## Learn More 41 | 42 | You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started). 43 | 44 | To learn React, check out the [React documentation](https://reactjs.org/). 45 | 46 | ### Code Splitting 47 | 48 | This section has moved here: https://facebook.github.io/create-react-app/docs/code-splitting 49 | 50 | ### Analyzing the Bundle Size 51 | 52 | This section has moved here: https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size 53 | 54 | ### Making a Progressive Web App 55 | 56 | This section has moved here: https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app 57 | 58 | ### Advanced Configuration 59 | 60 | This section has moved here: https://facebook.github.io/create-react-app/docs/advanced-configuration 61 | 62 | ### Deployment 63 | 64 | This section has moved here: https://facebook.github.io/create-react-app/docs/deployment 65 | 66 | ### `npm run build` fails to minify 67 | 68 | This section has moved here: https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify 69 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "iptv", 3 | "version": "0.1.0", 4 | "private": true, 5 | "dependencies": { 6 | "@testing-library/jest-dom": "^4.2.4", 7 | "@testing-library/react": "^9.5.0", 8 | "@testing-library/user-event": "^7.2.1", 9 | "axios": "^0.19.2", 10 | "react": "^16.13.1", 11 | "react-dom": "^16.13.1", 12 | "react-image": "^4.0.0", 13 | "react-player": "^2.0.1", 14 | "react-router-dom": "^5.2.0", 15 | "react-scripts": "3.4.1", 16 | "react-virtualized": "^9.21.2" 17 | }, 18 | "scripts": { 19 | "start": "npm run watch:css && react-scripts start", 20 | "build": "npm run build:css && react-scripts build", 21 | "test": "react-scripts test", 22 | "eject": "react-scripts eject", 23 | "build:css": "postcss src/assets/tailwind.css -o src/assets/main.css", 24 | "watch:css": "postcss src/assets/tailwind.css -o src/assets/main.css" 25 | }, 26 | "eslintConfig": { 27 | "extends": "react-app" 28 | }, 29 | "browserslist": { 30 | "production": [ 31 | ">0.2%", 32 | "not dead", 33 | "not op_mini all" 34 | ], 35 | "development": [ 36 | "last 1 chrome version", 37 | "last 1 firefox version", 38 | "last 1 safari version" 39 | ] 40 | }, 41 | "devDependencies": { 42 | "autoprefixer": "^9.7.6", 43 | "postcss-cli": "^7.1.1", 44 | "tailwindcss": "^1.4.6" 45 | } 46 | } 47 | -------------------------------------------------------------------------------- /postcss.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | plugins: [ 3 | require('tailwindcss'), 4 | require('autoprefixer'), 5 | ] 6 | } 7 | -------------------------------------------------------------------------------- /public/_redirects: -------------------------------------------------------------------------------- 1 | /* /index.html 200 2 | -------------------------------------------------------------------------------- /public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vpul/iptv-player/abb24898d4c21bac22d32a809c6dbc0cae588e18/public/favicon.ico -------------------------------------------------------------------------------- /public/icons8-tv-100.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vpul/iptv-player/abb24898d4c21bac22d32a809c6dbc0cae588e18/public/icons8-tv-100.png -------------------------------------------------------------------------------- /public/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 12 | 13 | 17 | 18 | 27 | React App 28 | 29 | 30 | 31 |
32 | 42 | 43 | 44 | -------------------------------------------------------------------------------- /public/logo192.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vpul/iptv-player/abb24898d4c21bac22d32a809c6dbc0cae588e18/public/logo192.png -------------------------------------------------------------------------------- /public/logo512.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vpul/iptv-player/abb24898d4c21bac22d32a809c6dbc0cae588e18/public/logo512.png -------------------------------------------------------------------------------- /public/manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "short_name": "React App", 3 | "name": "Create React App Sample", 4 | "icons": [ 5 | { 6 | "src": "favicon.ico", 7 | "sizes": "64x64 32x32 24x24 16x16", 8 | "type": "image/x-icon" 9 | }, 10 | { 11 | "src": "logo192.png", 12 | "type": "image/png", 13 | "sizes": "192x192" 14 | }, 15 | { 16 | "src": "logo512.png", 17 | "type": "image/png", 18 | "sizes": "512x512" 19 | } 20 | ], 21 | "start_url": ".", 22 | "display": "standalone", 23 | "theme_color": "#000000", 24 | "background_color": "#ffffff" 25 | } 26 | -------------------------------------------------------------------------------- /public/robots.txt: -------------------------------------------------------------------------------- 1 | # https://www.robotstxt.org/robotstxt.html 2 | User-agent: * 3 | Disallow: 4 | -------------------------------------------------------------------------------- /src/assets/tailwind.css: -------------------------------------------------------------------------------- 1 | @tailwind base; 2 | @tailwind components; 3 | @tailwind utilities; 4 | 5 | /* loading spinner animation */ 6 | .spinner { 7 | width: 40px; 8 | height: 40px; 9 | 10 | position: relative; 11 | margin: 100px auto; 12 | } 13 | 14 | .double-bounce1, .double-bounce2 { 15 | width: 100%; 16 | height: 100%; 17 | border-radius: 50%; 18 | opacity: 0.6; 19 | position: absolute; 20 | top: 0; 21 | left: 0; 22 | 23 | -webkit-animation: sk-bounce 2.0s infinite ease-in-out; 24 | animation: sk-bounce 2.0s infinite ease-in-out; 25 | } 26 | 27 | .double-bounce2 { 28 | -webkit-animation-delay: -1.0s; 29 | animation-delay: -1.0s; 30 | } 31 | 32 | @-webkit-keyframes sk-bounce { 33 | 0%, 100% { -webkit-transform: scale(0.0) } 34 | 50% { -webkit-transform: scale(1.0) } 35 | } 36 | 37 | @keyframes sk-bounce { 38 | 0%, 100% { 39 | transform: scale(0.0); 40 | -webkit-transform: scale(0.0); 41 | } 50% { 42 | transform: scale(1.0); 43 | -webkit-transform: scale(1.0); 44 | } 45 | } -------------------------------------------------------------------------------- /src/components/App.css: -------------------------------------------------------------------------------- 1 | .App { 2 | text-align: center; 3 | } 4 | 5 | .App-logo { 6 | height: 40vmin; 7 | pointer-events: none; 8 | } 9 | 10 | @media (prefers-reduced-motion: no-preference) { 11 | .App-logo { 12 | animation: App-logo-spin infinite 20s linear; 13 | } 14 | } 15 | 16 | .App-header { 17 | background-color: #282c34; 18 | min-height: 100vh; 19 | display: flex; 20 | flex-direction: column; 21 | align-items: center; 22 | justify-content: center; 23 | font-size: calc(10px + 2vmin); 24 | color: white; 25 | } 26 | 27 | .App-link { 28 | color: #61dafb; 29 | } 30 | 31 | @keyframes App-logo-spin { 32 | from { 33 | transform: rotate(0deg); 34 | } 35 | to { 36 | transform: rotate(360deg); 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /src/components/App.js: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | import LoadingSpinner from './loadingSpinner'; 3 | const Channels = React.lazy(() => import('./channels')); 4 | 5 | const App = () => { 6 | const [searchTerm, setSearchTerm] = React.useState(''); 7 | const searchChangeHandler = (event) => setSearchTerm(event.target.value); 8 | 9 | return ( 10 | <> 11 |
12 | 19 |
20 | }> 21 | 22 | 23 | 24 | )}; 25 | 26 | export default App; 27 | -------------------------------------------------------------------------------- /src/components/channelCard.js: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | import { useImage } from 'react-image'; 3 | import { Link } from 'react-router-dom'; 4 | import LoadingSpinner from './loadingSpinner'; 5 | 6 | const Img = ({className, alt, src, onError}) => { 7 | const res = useImage({ 8 | srcList: [src, 'icons8-tv-100.png'], 9 | }); 10 | 11 | return ( 12 | {alt} 18 | ) 19 | } 20 | 21 | const ChannelCard = ({ channel}) => { 22 | // backup image in case original img source fails 23 | const imgErrorHandler = (e) => { 24 | if (e.target.src !== "https://picsum.photos/600/400.jpg?blur=6&grayscale") { // this prevents infinite loop error in cases where the backup image itself is down 25 | e.target.src="https://picsum.photos/600/400.jpg?blur=6&grayscale"; 26 | } 27 | }; 28 | 29 | return ( 30 | 31 |
32 |
33 | }> 34 | {channel.name+' 40 | 41 |
42 |
{channel.name}
43 |
44 | 45 | ); 46 | }; 47 | 48 | export default ChannelCard; 49 | -------------------------------------------------------------------------------- /src/components/channels.js: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | import { WindowScroller, AutoSizer, Grid } from 'react-virtualized'; 3 | import 'react-virtualized/styles.css'; 4 | import getChannels from '../fetchChannels'; 5 | import ChannelCard from './channelCard'; 6 | 7 | const Channels = ({className, searchTerm}) => { 8 | const [channels, setChannels] = React.useState([]); 9 | 10 | React.useEffect(() => { 11 | const fetchChannels = async () => { 12 | const channelsData = await getChannels(); 13 | setChannels(channelsData); 14 | } 15 | fetchChannels(); 16 | }, []); 17 | 18 | const searchedChannels = searchTerm ? channels.filter(channel => ( 19 | channel.name.toLowerCase().includes(searchTerm.toLowerCase()) 20 | )) : channels; 21 | 22 | const Cell = ({ columnIndex, key, rowIndex, style }) => { 23 | const channelIndex = (rowIndex * 6) + columnIndex; 24 | if (!searchedChannels[channelIndex]) return; // exit if the channel on that index doesn't exist 25 | return ( 26 |
  • 27 |
    28 | 29 |
    30 |
  • 31 | )}; 32 | 33 | // To choose a good number for height & width, go to https://nerdcave.com/tailwind-cheat-sheet and select a size as per Tailwind standards 34 | const columnWidth = 192; // This is the cell width. Card size will be smaller due to padding 35 | const rowHeight = 224; // This is the cell height. Card size will be smaller due to padding 36 | return ( 37 |
    38 | 39 | {({ height, isScrolling, onChildScroll, scrollTop }) => ( 40 | 41 | { 42 | ({width}) => { 43 | const columnCount = Math.floor(width/columnWidth); 44 | return ( 45 | 59 | ) 60 | } 61 | } 62 | 63 | )} 64 | 65 |
    66 | ); 67 | }; 68 | 69 | export default Channels; -------------------------------------------------------------------------------- /src/components/loadingSpinner.js: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | 3 | const LoadingSpinner = () => ( 4 |
    5 |
    6 |
    7 |
    8 | ); 9 | 10 | export default LoadingSpinner; -------------------------------------------------------------------------------- /src/components/videoPlayer.js: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | import ReactPlayer from 'react-player'; 3 | import getChannel from '../fetchChannels'; 4 | 5 | const VideoPlayer = ({match}) => { 6 | const [channel, setChannel] = React.useState({url: null}); 7 | const [error, setError] = React.useState({ 8 | isError: false, 9 | details: {}, 10 | }); 11 | 12 | React.useEffect(() => { 13 | const fetchChannels = async () => { 14 | const channelData = await getChannel(match.params.id); 15 | setChannel(channelData); 16 | } 17 | fetchChannels(); 18 | }, [match.params.id]); 19 | 20 | return ( 21 | <> 22 | { error.isError && (
    23 |
    24 |
    An error occurred requesting video stream
    25 |
    Reason: {error.details.type}
    26 |
    27 |
    )} 28 |
    29 |
    30 | { 45 | return setError({ 46 | isError: true, 47 | details: data 48 | }) 49 | }} 50 | /> 51 |
    52 |
    53 | 54 | ); 55 | }; 56 | 57 | export default VideoPlayer; 58 | -------------------------------------------------------------------------------- /src/fetchChannels.js: -------------------------------------------------------------------------------- 1 | import Axios from 'axios'; 2 | 3 | const getChannels = async (channelId) => { 4 | const endpoint = 'https://vpul.github.io/iptv-player/channels.json'; 5 | 6 | const { data } = await Axios.get(endpoint); 7 | 8 | //add id to each array items 9 | const channelsArray = data.map((channel, index) => { 10 | return { 11 | id: index, 12 | ...channel, 13 | }; 14 | }); 15 | if (channelId) { 16 | return channelsArray[channelId]; 17 | } 18 | return channelsArray; 19 | } 20 | 21 | export default getChannels; 22 | -------------------------------------------------------------------------------- /src/index.css: -------------------------------------------------------------------------------- 1 | body { 2 | margin: 0; 3 | font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 4 | 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', 5 | sans-serif; 6 | -webkit-font-smoothing: antialiased; 7 | -moz-osx-font-smoothing: grayscale; 8 | } 9 | 10 | code { 11 | font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New', 12 | monospace; 13 | } 14 | -------------------------------------------------------------------------------- /src/index.js: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | import ReactDOM from 'react-dom'; 3 | import { BrowserRouter as Router, Switch, Route} from 'react-router-dom'; 4 | import './assets/main.css'; 5 | import App from './components/App'; 6 | import VideoPlayer from './components/videoPlayer'; 7 | import * as serviceWorker from './serviceWorker'; 8 | 9 | ReactDOM.render(( 10 | 11 | 12 | 13 | 14 | 15 | {/* */} 16 | 17 | 18 | 19 | ), document.getElementById('root')); 20 | 21 | // If you want your app to work offline and load faster, you can change 22 | // unregister() to register() below. Note this comes with some pitfalls. 23 | // Learn more about service workers: https://bit.ly/CRA-PWA 24 | serviceWorker.unregister(); 25 | -------------------------------------------------------------------------------- /src/serviceWorker.js: -------------------------------------------------------------------------------- 1 | // This optional code is used to register a service worker. 2 | // register() is not called by default. 3 | 4 | // This lets the app load faster on subsequent visits in production, and gives 5 | // it offline capabilities. However, it also means that developers (and users) 6 | // will only see deployed updates on subsequent visits to a page, after all the 7 | // existing tabs open on the page have been closed, since previously cached 8 | // resources are updated in the background. 9 | 10 | // To learn more about the benefits of this model and instructions on how to 11 | // opt-in, read https://bit.ly/CRA-PWA 12 | 13 | const isLocalhost = Boolean( 14 | window.location.hostname === 'localhost' || 15 | // [::1] is the IPv6 localhost address. 16 | window.location.hostname === '[::1]' || 17 | // 127.0.0.0/8 are considered localhost for IPv4. 18 | window.location.hostname.match( 19 | /^127(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/ 20 | ) 21 | ); 22 | 23 | export function register(config) { 24 | if (process.env.NODE_ENV === 'production' && 'serviceWorker' in navigator) { 25 | // The URL constructor is available in all browsers that support SW. 26 | const publicUrl = new URL(process.env.PUBLIC_URL, window.location.href); 27 | if (publicUrl.origin !== window.location.origin) { 28 | // Our service worker won't work if PUBLIC_URL is on a different origin 29 | // from what our page is served on. This might happen if a CDN is used to 30 | // serve assets; see https://github.com/facebook/create-react-app/issues/2374 31 | return; 32 | } 33 | 34 | window.addEventListener('load', () => { 35 | const swUrl = `${process.env.PUBLIC_URL}/service-worker.js`; 36 | 37 | if (isLocalhost) { 38 | // This is running on localhost. Let's check if a service worker still exists or not. 39 | checkValidServiceWorker(swUrl, config); 40 | 41 | // Add some additional logging to localhost, pointing developers to the 42 | // service worker/PWA documentation. 43 | navigator.serviceWorker.ready.then(() => { 44 | console.log( 45 | 'This web app is being served cache-first by a service ' + 46 | 'worker. To learn more, visit https://bit.ly/CRA-PWA' 47 | ); 48 | }); 49 | } else { 50 | // Is not localhost. Just register service worker 51 | registerValidSW(swUrl, config); 52 | } 53 | }); 54 | } 55 | } 56 | 57 | function registerValidSW(swUrl, config) { 58 | navigator.serviceWorker 59 | .register(swUrl) 60 | .then(registration => { 61 | registration.onupdatefound = () => { 62 | const installingWorker = registration.installing; 63 | if (installingWorker == null) { 64 | return; 65 | } 66 | installingWorker.onstatechange = () => { 67 | if (installingWorker.state === 'installed') { 68 | if (navigator.serviceWorker.controller) { 69 | // At this point, the updated precached content has been fetched, 70 | // but the previous service worker will still serve the older 71 | // content until all client tabs are closed. 72 | console.log( 73 | 'New content is available and will be used when all ' + 74 | 'tabs for this page are closed. See https://bit.ly/CRA-PWA.' 75 | ); 76 | 77 | // Execute callback 78 | if (config && config.onUpdate) { 79 | config.onUpdate(registration); 80 | } 81 | } else { 82 | // At this point, everything has been precached. 83 | // It's the perfect time to display a 84 | // "Content is cached for offline use." message. 85 | console.log('Content is cached for offline use.'); 86 | 87 | // Execute callback 88 | if (config && config.onSuccess) { 89 | config.onSuccess(registration); 90 | } 91 | } 92 | } 93 | }; 94 | }; 95 | }) 96 | .catch(error => { 97 | console.error('Error during service worker registration:', error); 98 | }); 99 | } 100 | 101 | function checkValidServiceWorker(swUrl, config) { 102 | // Check if the service worker can be found. If it can't reload the page. 103 | fetch(swUrl, { 104 | headers: { 'Service-Worker': 'script' }, 105 | }) 106 | .then(response => { 107 | // Ensure service worker exists, and that we really are getting a JS file. 108 | const contentType = response.headers.get('content-type'); 109 | if ( 110 | response.status === 404 || 111 | (contentType != null && contentType.indexOf('javascript') === -1) 112 | ) { 113 | // No service worker found. Probably a different app. Reload the page. 114 | navigator.serviceWorker.ready.then(registration => { 115 | registration.unregister().then(() => { 116 | window.location.reload(); 117 | }); 118 | }); 119 | } else { 120 | // Service worker found. Proceed as normal. 121 | registerValidSW(swUrl, config); 122 | } 123 | }) 124 | .catch(() => { 125 | console.log( 126 | 'No internet connection found. App is running in offline mode.' 127 | ); 128 | }); 129 | } 130 | 131 | export function unregister() { 132 | if ('serviceWorker' in navigator) { 133 | navigator.serviceWorker.ready 134 | .then(registration => { 135 | registration.unregister(); 136 | }) 137 | .catch(error => { 138 | console.error(error.message); 139 | }); 140 | } 141 | } 142 | -------------------------------------------------------------------------------- /src/setupTests.js: -------------------------------------------------------------------------------- 1 | // jest-dom adds custom jest matchers for asserting on DOM nodes. 2 | // allows you to do things like: 3 | // expect(element).toHaveTextContent(/react/i) 4 | // learn more: https://github.com/testing-library/jest-dom 5 | import '@testing-library/jest-dom/extend-expect'; 6 | -------------------------------------------------------------------------------- /tailwind.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | purge: [], 3 | target: 'relaxed', 4 | prefix: '', 5 | important: false, 6 | separator: ':', 7 | theme: { 8 | screens: { 9 | sm: '640px', 10 | md: '768px', 11 | lg: '1024px', 12 | xl: '1280px', 13 | }, 14 | colors: { 15 | transparent: 'transparent', 16 | current: 'currentColor', 17 | 18 | black: '#000', 19 | white: '#fff', 20 | 21 | gray: { 22 | 100: '#f7fafc', 23 | 200: '#edf2f7', 24 | 300: '#e2e8f0', 25 | 400: '#cbd5e0', 26 | 500: '#a0aec0', 27 | 600: '#718096', 28 | 700: '#4a5568', 29 | 800: '#2d3748', 30 | 900: '#1a202c', 31 | }, 32 | red: { 33 | 100: '#fff5f5', 34 | 200: '#fed7d7', 35 | 300: '#feb2b2', 36 | 400: '#fc8181', 37 | 500: '#f56565', 38 | 600: '#e53e3e', 39 | 700: '#c53030', 40 | 800: '#9b2c2c', 41 | 900: '#742a2a', 42 | }, 43 | orange: { 44 | 100: '#fffaf0', 45 | 200: '#feebc8', 46 | 300: '#fbd38d', 47 | 400: '#f6ad55', 48 | 500: '#ed8936', 49 | 600: '#dd6b20', 50 | 700: '#c05621', 51 | 800: '#9c4221', 52 | 900: '#7b341e', 53 | }, 54 | yellow: { 55 | 100: '#fffff0', 56 | 200: '#fefcbf', 57 | 300: '#faf089', 58 | 400: '#f6e05e', 59 | 500: '#ecc94b', 60 | 600: '#d69e2e', 61 | 700: '#b7791f', 62 | 800: '#975a16', 63 | 900: '#744210', 64 | }, 65 | green: { 66 | 100: '#f0fff4', 67 | 200: '#c6f6d5', 68 | 300: '#9ae6b4', 69 | 400: '#68d391', 70 | 500: '#48bb78', 71 | 600: '#38a169', 72 | 700: '#2f855a', 73 | 800: '#276749', 74 | 900: '#22543d', 75 | }, 76 | teal: { 77 | 100: '#e6fffa', 78 | 200: '#b2f5ea', 79 | 300: '#81e6d9', 80 | 400: '#4fd1c5', 81 | 500: '#38b2ac', 82 | 600: '#319795', 83 | 700: '#2c7a7b', 84 | 800: '#285e61', 85 | 900: '#234e52', 86 | }, 87 | blue: { 88 | 100: '#ebf8ff', 89 | 200: '#bee3f8', 90 | 300: '#90cdf4', 91 | 400: '#63b3ed', 92 | 500: '#4299e1', 93 | 600: '#3182ce', 94 | 700: '#2b6cb0', 95 | 800: '#2c5282', 96 | 900: '#2a4365', 97 | }, 98 | indigo: { 99 | 100: '#ebf4ff', 100 | 200: '#c3dafe', 101 | 300: '#a3bffa', 102 | 400: '#7f9cf5', 103 | 500: '#667eea', 104 | 600: '#5a67d8', 105 | 700: '#4c51bf', 106 | 800: '#434190', 107 | 900: '#3c366b', 108 | }, 109 | purple: { 110 | 100: '#faf5ff', 111 | 200: '#e9d8fd', 112 | 300: '#d6bcfa', 113 | 400: '#b794f4', 114 | 500: '#9f7aea', 115 | 600: '#805ad5', 116 | 700: '#6b46c1', 117 | 800: '#553c9a', 118 | 900: '#44337a', 119 | }, 120 | pink: { 121 | 100: '#fff5f7', 122 | 200: '#fed7e2', 123 | 300: '#fbb6ce', 124 | 400: '#f687b3', 125 | 500: '#ed64a6', 126 | 600: '#d53f8c', 127 | 700: '#b83280', 128 | 800: '#97266d', 129 | 900: '#702459', 130 | }, 131 | }, 132 | spacing: { 133 | px: '1px', 134 | '0': '0', 135 | '1': '0.25rem', 136 | '2': '0.5rem', 137 | '3': '0.75rem', 138 | '4': '1rem', 139 | '5': '1.25rem', 140 | '6': '1.5rem', 141 | '8': '2rem', 142 | '10': '2.5rem', 143 | '12': '3rem', 144 | '16': '4rem', 145 | '20': '5rem', 146 | '24': '6rem', 147 | '32': '8rem', 148 | '40': '10rem', 149 | '48': '12rem', 150 | '56': '14rem', 151 | '64': '16rem', 152 | }, 153 | backgroundColor: theme => theme('colors'), 154 | backgroundOpacity: theme => theme('opacity'), 155 | backgroundPosition: { 156 | bottom: 'bottom', 157 | center: 'center', 158 | left: 'left', 159 | 'left-bottom': 'left bottom', 160 | 'left-top': 'left top', 161 | right: 'right', 162 | 'right-bottom': 'right bottom', 163 | 'right-top': 'right top', 164 | top: 'top', 165 | }, 166 | backgroundSize: { 167 | auto: 'auto', 168 | cover: 'cover', 169 | contain: 'contain', 170 | }, 171 | borderColor: theme => ({ 172 | ...theme('colors'), 173 | default: theme('colors.gray.300', 'currentColor'), 174 | }), 175 | borderOpacity: theme => theme('opacity'), 176 | borderRadius: { 177 | none: '0', 178 | sm: '0.125rem', 179 | default: '0.25rem', 180 | md: '0.375rem', 181 | lg: '0.5rem', 182 | full: '9999px', 183 | }, 184 | borderWidth: { 185 | default: '1px', 186 | '0': '0', 187 | '2': '2px', 188 | '4': '4px', 189 | '8': '8px', 190 | }, 191 | boxShadow: { 192 | xs: '0 0 0 1px rgba(0, 0, 0, 0.05)', 193 | sm: '0 1px 2px 0 rgba(0, 0, 0, 0.05)', 194 | default: '0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06)', 195 | md: '0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)', 196 | lg: '0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05)', 197 | xl: '0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04)', 198 | '2xl': '0 25px 50px -12px rgba(0, 0, 0, 0.25)', 199 | inner: 'inset 0 2px 4px 0 rgba(0, 0, 0, 0.06)', 200 | outline: '0 0 0 3px rgba(66, 153, 225, 0.5)', 201 | none: 'none', 202 | }, 203 | container: {}, 204 | cursor: { 205 | auto: 'auto', 206 | default: 'default', 207 | pointer: 'pointer', 208 | wait: 'wait', 209 | text: 'text', 210 | move: 'move', 211 | 'not-allowed': 'not-allowed', 212 | }, 213 | divideColor: theme => theme('borderColor'), 214 | divideOpacity: theme => theme('borderOpacity'), 215 | divideWidth: theme => theme('borderWidth'), 216 | fill: { 217 | current: 'currentColor', 218 | }, 219 | flex: { 220 | '1': '1 1 0%', 221 | auto: '1 1 auto', 222 | initial: '0 1 auto', 223 | none: 'none', 224 | }, 225 | flexGrow: { 226 | '0': '0', 227 | default: '1', 228 | }, 229 | flexShrink: { 230 | '0': '0', 231 | default: '1', 232 | }, 233 | fontFamily: { 234 | sans: [ 235 | 'system-ui', 236 | '-apple-system', 237 | 'BlinkMacSystemFont', 238 | '"Segoe UI"', 239 | 'Roboto', 240 | '"Helvetica Neue"', 241 | 'Arial', 242 | '"Noto Sans"', 243 | 'sans-serif', 244 | '"Apple Color Emoji"', 245 | '"Segoe UI Emoji"', 246 | '"Segoe UI Symbol"', 247 | '"Noto Color Emoji"', 248 | ], 249 | serif: ['Georgia', 'Cambria', '"Times New Roman"', 'Times', 'serif'], 250 | mono: ['Menlo', 'Monaco', 'Consolas', '"Liberation Mono"', '"Courier New"', 'monospace'], 251 | }, 252 | fontSize: { 253 | xs: '0.75rem', 254 | sm: '0.875rem', 255 | base: '1rem', 256 | lg: '1.125rem', 257 | xl: '1.25rem', 258 | '2xl': '1.5rem', 259 | '3xl': '1.875rem', 260 | '4xl': '2.25rem', 261 | '5xl': '3rem', 262 | '6xl': '4rem', 263 | }, 264 | fontWeight: { 265 | hairline: '100', 266 | thin: '200', 267 | light: '300', 268 | normal: '400', 269 | medium: '500', 270 | semibold: '600', 271 | bold: '700', 272 | extrabold: '800', 273 | black: '900', 274 | }, 275 | height: theme => ({ 276 | auto: 'auto', 277 | ...theme('spacing'), 278 | full: '100%', 279 | screen: '100vh', 280 | }), 281 | inset: { 282 | '0': '0', 283 | auto: 'auto', 284 | }, 285 | letterSpacing: { 286 | tighter: '-0.05em', 287 | tight: '-0.025em', 288 | normal: '0', 289 | wide: '0.025em', 290 | wider: '0.05em', 291 | widest: '0.1em', 292 | }, 293 | lineHeight: { 294 | none: '1', 295 | tight: '1.25', 296 | snug: '1.375', 297 | normal: '1.5', 298 | relaxed: '1.625', 299 | loose: '2', 300 | '3': '.75rem', 301 | '4': '1rem', 302 | '5': '1.25rem', 303 | '6': '1.5rem', 304 | '7': '1.75rem', 305 | '8': '2rem', 306 | '9': '2.25rem', 307 | '10': '2.5rem', 308 | }, 309 | listStyleType: { 310 | none: 'none', 311 | disc: 'disc', 312 | decimal: 'decimal', 313 | }, 314 | margin: (theme, { negative }) => ({ 315 | auto: 'auto', 316 | ...theme('spacing'), 317 | ...negative(theme('spacing')), 318 | }), 319 | maxHeight: { 320 | full: '100%', 321 | screen: '100vh', 322 | }, 323 | maxWidth: (theme, { breakpoints }) => ({ 324 | none: 'none', 325 | xs: '20rem', 326 | sm: '24rem', 327 | md: '28rem', 328 | lg: '32rem', 329 | xl: '36rem', 330 | '2xl': '42rem', 331 | '3xl': '48rem', 332 | '4xl': '56rem', 333 | '5xl': '64rem', 334 | '6xl': '72rem', 335 | full: '100%', 336 | ...breakpoints(theme('screens')), 337 | }), 338 | minHeight: { 339 | '0': '0', 340 | full: '100%', 341 | screen: '100vh', 342 | }, 343 | minWidth: { 344 | '0': '0', 345 | full: '100%', 346 | }, 347 | objectPosition: { 348 | bottom: 'bottom', 349 | center: 'center', 350 | left: 'left', 351 | 'left-bottom': 'left bottom', 352 | 'left-top': 'left top', 353 | right: 'right', 354 | 'right-bottom': 'right bottom', 355 | 'right-top': 'right top', 356 | top: 'top', 357 | }, 358 | opacity: { 359 | '0': '0', 360 | '25': '0.25', 361 | '50': '0.5', 362 | '75': '0.75', 363 | '100': '1', 364 | }, 365 | order: { 366 | first: '-9999', 367 | last: '9999', 368 | none: '0', 369 | '1': '1', 370 | '2': '2', 371 | '3': '3', 372 | '4': '4', 373 | '5': '5', 374 | '6': '6', 375 | '7': '7', 376 | '8': '8', 377 | '9': '9', 378 | '10': '10', 379 | '11': '11', 380 | '12': '12', 381 | }, 382 | padding: theme => theme('spacing'), 383 | placeholderColor: theme => theme('colors'), 384 | placeholderOpacity: theme => theme('opacity'), 385 | space: (theme, { negative }) => ({ 386 | ...theme('spacing'), 387 | ...negative(theme('spacing')), 388 | }), 389 | stroke: { 390 | current: 'currentColor', 391 | }, 392 | strokeWidth: { 393 | '0': '0', 394 | '1': '1', 395 | '2': '2', 396 | }, 397 | textColor: theme => theme('colors'), 398 | textOpacity: theme => theme('opacity'), 399 | width: theme => ({ 400 | auto: 'auto', 401 | ...theme('spacing'), 402 | '1/2': '50%', 403 | '1/3': '33.333333%', 404 | '2/3': '66.666667%', 405 | '1/4': '25%', 406 | '2/4': '50%', 407 | '3/4': '75%', 408 | '1/5': '20%', 409 | '2/5': '40%', 410 | '3/5': '60%', 411 | '4/5': '80%', 412 | '1/6': '16.666667%', 413 | '2/6': '33.333333%', 414 | '3/6': '50%', 415 | '4/6': '66.666667%', 416 | '5/6': '83.333333%', 417 | '1/12': '8.333333%', 418 | '2/12': '16.666667%', 419 | '3/12': '25%', 420 | '4/12': '33.333333%', 421 | '5/12': '41.666667%', 422 | '6/12': '50%', 423 | '7/12': '58.333333%', 424 | '8/12': '66.666667%', 425 | '9/12': '75%', 426 | '10/12': '83.333333%', 427 | '11/12': '91.666667%', 428 | full: '100%', 429 | screen: '100vw', 430 | }), 431 | zIndex: { 432 | auto: 'auto', 433 | '0': '0', 434 | '10': '10', 435 | '20': '20', 436 | '30': '30', 437 | '40': '40', 438 | '50': '50', 439 | }, 440 | gap: theme => theme('spacing'), 441 | gridTemplateColumns: { 442 | none: 'none', 443 | '1': 'repeat(1, minmax(0, 1fr))', 444 | '2': 'repeat(2, minmax(0, 1fr))', 445 | '3': 'repeat(3, minmax(0, 1fr))', 446 | '4': 'repeat(4, minmax(0, 1fr))', 447 | '5': 'repeat(5, minmax(0, 1fr))', 448 | '6': 'repeat(6, minmax(0, 1fr))', 449 | '7': 'repeat(7, minmax(0, 1fr))', 450 | '8': 'repeat(8, minmax(0, 1fr))', 451 | '9': 'repeat(9, minmax(0, 1fr))', 452 | '10': 'repeat(10, minmax(0, 1fr))', 453 | '11': 'repeat(11, minmax(0, 1fr))', 454 | '12': 'repeat(12, minmax(0, 1fr))', 455 | }, 456 | gridColumn: { 457 | auto: 'auto', 458 | 'span-1': 'span 1 / span 1', 459 | 'span-2': 'span 2 / span 2', 460 | 'span-3': 'span 3 / span 3', 461 | 'span-4': 'span 4 / span 4', 462 | 'span-5': 'span 5 / span 5', 463 | 'span-6': 'span 6 / span 6', 464 | 'span-7': 'span 7 / span 7', 465 | 'span-8': 'span 8 / span 8', 466 | 'span-9': 'span 9 / span 9', 467 | 'span-10': 'span 10 / span 10', 468 | 'span-11': 'span 11 / span 11', 469 | 'span-12': 'span 12 / span 12', 470 | }, 471 | gridColumnStart: { 472 | auto: 'auto', 473 | '1': '1', 474 | '2': '2', 475 | '3': '3', 476 | '4': '4', 477 | '5': '5', 478 | '6': '6', 479 | '7': '7', 480 | '8': '8', 481 | '9': '9', 482 | '10': '10', 483 | '11': '11', 484 | '12': '12', 485 | '13': '13', 486 | }, 487 | gridColumnEnd: { 488 | auto: 'auto', 489 | '1': '1', 490 | '2': '2', 491 | '3': '3', 492 | '4': '4', 493 | '5': '5', 494 | '6': '6', 495 | '7': '7', 496 | '8': '8', 497 | '9': '9', 498 | '10': '10', 499 | '11': '11', 500 | '12': '12', 501 | '13': '13', 502 | }, 503 | gridTemplateRows: { 504 | none: 'none', 505 | '1': 'repeat(1, minmax(0, 1fr))', 506 | '2': 'repeat(2, minmax(0, 1fr))', 507 | '3': 'repeat(3, minmax(0, 1fr))', 508 | '4': 'repeat(4, minmax(0, 1fr))', 509 | '5': 'repeat(5, minmax(0, 1fr))', 510 | '6': 'repeat(6, minmax(0, 1fr))', 511 | }, 512 | gridRow: { 513 | auto: 'auto', 514 | 'span-1': 'span 1 / span 1', 515 | 'span-2': 'span 2 / span 2', 516 | 'span-3': 'span 3 / span 3', 517 | 'span-4': 'span 4 / span 4', 518 | 'span-5': 'span 5 / span 5', 519 | 'span-6': 'span 6 / span 6', 520 | }, 521 | gridRowStart: { 522 | auto: 'auto', 523 | '1': '1', 524 | '2': '2', 525 | '3': '3', 526 | '4': '4', 527 | '5': '5', 528 | '6': '6', 529 | '7': '7', 530 | }, 531 | gridRowEnd: { 532 | auto: 'auto', 533 | '1': '1', 534 | '2': '2', 535 | '3': '3', 536 | '4': '4', 537 | '5': '5', 538 | '6': '6', 539 | '7': '7', 540 | }, 541 | transformOrigin: { 542 | center: 'center', 543 | top: 'top', 544 | 'top-right': 'top right', 545 | right: 'right', 546 | 'bottom-right': 'bottom right', 547 | bottom: 'bottom', 548 | 'bottom-left': 'bottom left', 549 | left: 'left', 550 | 'top-left': 'top left', 551 | }, 552 | scale: { 553 | '0': '0', 554 | '50': '.5', 555 | '75': '.75', 556 | '90': '.9', 557 | '95': '.95', 558 | '100': '1', 559 | '105': '1.05', 560 | '110': '1.1', 561 | '125': '1.25', 562 | '150': '1.5', 563 | }, 564 | rotate: { 565 | '-180': '-180deg', 566 | '-90': '-90deg', 567 | '-45': '-45deg', 568 | '0': '0', 569 | '45': '45deg', 570 | '90': '90deg', 571 | '180': '180deg', 572 | }, 573 | translate: (theme, { negative }) => ({ 574 | ...theme('spacing'), 575 | ...negative(theme('spacing')), 576 | '-full': '-100%', 577 | '-1/2': '-50%', 578 | '1/2': '50%', 579 | full: '100%', 580 | }), 581 | skew: { 582 | '-12': '-12deg', 583 | '-6': '-6deg', 584 | '-3': '-3deg', 585 | '0': '0', 586 | '3': '3deg', 587 | '6': '6deg', 588 | '12': '12deg', 589 | }, 590 | transitionProperty: { 591 | none: 'none', 592 | all: 'all', 593 | default: 'background-color, border-color, color, fill, stroke, opacity, box-shadow, transform', 594 | colors: 'background-color, border-color, color, fill, stroke', 595 | opacity: 'opacity', 596 | shadow: 'box-shadow', 597 | transform: 'transform', 598 | }, 599 | transitionTimingFunction: { 600 | linear: 'linear', 601 | in: 'cubic-bezier(0.4, 0, 1, 1)', 602 | out: 'cubic-bezier(0, 0, 0.2, 1)', 603 | 'in-out': 'cubic-bezier(0.4, 0, 0.2, 1)', 604 | }, 605 | transitionDuration: { 606 | '75': '75ms', 607 | '100': '100ms', 608 | '150': '150ms', 609 | '200': '200ms', 610 | '300': '300ms', 611 | '500': '500ms', 612 | '700': '700ms', 613 | '1000': '1000ms', 614 | }, 615 | transitionDelay: { 616 | '75': '75ms', 617 | '100': '100ms', 618 | '150': '150ms', 619 | '200': '200ms', 620 | '300': '300ms', 621 | '500': '500ms', 622 | '700': '700ms', 623 | '1000': '1000ms', 624 | }, 625 | }, 626 | variants: { 627 | accessibility: ['responsive', 'focus'], 628 | alignContent: ['responsive'], 629 | alignItems: ['responsive'], 630 | alignSelf: ['responsive'], 631 | appearance: ['responsive'], 632 | backgroundAttachment: ['responsive'], 633 | backgroundColor: ['responsive', 'hover', 'focus'], 634 | backgroundOpacity: ['responsive', 'hover', 'focus'], 635 | backgroundPosition: ['responsive'], 636 | backgroundRepeat: ['responsive'], 637 | backgroundSize: ['responsive'], 638 | borderCollapse: ['responsive'], 639 | borderColor: ['responsive', 'hover', 'focus'], 640 | borderOpacity: ['responsive', 'hover', 'focus'], 641 | borderRadius: ['responsive'], 642 | borderStyle: ['responsive'], 643 | borderWidth: ['responsive'], 644 | boxShadow: ['responsive', 'hover', 'focus'], 645 | boxSizing: ['responsive'], 646 | cursor: ['responsive'], 647 | display: ['responsive'], 648 | divideColor: ['responsive'], 649 | divideOpacity: ['responsive'], 650 | divideWidth: ['responsive'], 651 | fill: ['responsive'], 652 | flex: ['responsive'], 653 | flexDirection: ['responsive'], 654 | flexGrow: ['responsive'], 655 | flexShrink: ['responsive'], 656 | flexWrap: ['responsive'], 657 | float: ['responsive'], 658 | clear: ['responsive'], 659 | fontFamily: ['responsive'], 660 | fontSize: ['responsive'], 661 | fontSmoothing: ['responsive'], 662 | fontStyle: ['responsive'], 663 | fontWeight: ['responsive', 'hover', 'focus'], 664 | height: ['responsive'], 665 | inset: ['responsive'], 666 | justifyContent: ['responsive'], 667 | letterSpacing: ['responsive'], 668 | lineHeight: ['responsive'], 669 | listStylePosition: ['responsive'], 670 | listStyleType: ['responsive'], 671 | margin: ['responsive'], 672 | maxHeight: ['responsive'], 673 | maxWidth: ['responsive'], 674 | minHeight: ['responsive'], 675 | minWidth: ['responsive'], 676 | objectFit: ['responsive'], 677 | objectPosition: ['responsive'], 678 | opacity: ['responsive', 'hover', 'focus'], 679 | order: ['responsive'], 680 | outline: ['responsive', 'focus'], 681 | overflow: ['responsive'], 682 | padding: ['responsive'], 683 | placeholderColor: ['responsive', 'focus'], 684 | placeholderOpacity: ['responsive', 'focus'], 685 | pointerEvents: ['responsive'], 686 | position: ['responsive'], 687 | resize: ['responsive'], 688 | space: ['responsive'], 689 | stroke: ['responsive'], 690 | strokeWidth: ['responsive'], 691 | tableLayout: ['responsive'], 692 | textAlign: ['responsive'], 693 | textColor: ['responsive', 'hover', 'focus', 'group-hover'], 694 | textOpacity: ['responsive', 'hover', 'focus'], 695 | textDecoration: ['responsive', 'hover', 'focus'], 696 | textTransform: ['responsive'], 697 | userSelect: ['responsive'], 698 | verticalAlign: ['responsive'], 699 | visibility: ['responsive'], 700 | whitespace: ['responsive'], 701 | width: ['responsive'], 702 | wordBreak: ['responsive'], 703 | zIndex: ['responsive'], 704 | gap: ['responsive'], 705 | gridAutoFlow: ['responsive'], 706 | gridTemplateColumns: ['responsive'], 707 | gridColumn: ['responsive'], 708 | gridColumnStart: ['responsive'], 709 | gridColumnEnd: ['responsive'], 710 | gridTemplateRows: ['responsive'], 711 | gridRow: ['responsive'], 712 | gridRowStart: ['responsive'], 713 | gridRowEnd: ['responsive'], 714 | transform: ['responsive'], 715 | transformOrigin: ['responsive'], 716 | scale: ['responsive', 'hover', 'focus'], 717 | rotate: ['responsive', 'hover', 'focus'], 718 | translate: ['responsive', 'hover', 'focus'], 719 | skew: ['responsive', 'hover', 'focus'], 720 | transitionProperty: ['responsive'], 721 | transitionTimingFunction: ['responsive'], 722 | transitionDuration: ['responsive'], 723 | transitionDelay: ['responsive'], 724 | }, 725 | corePlugins: {}, 726 | plugins: [], 727 | } 728 | --------------------------------------------------------------------------------