diff --git a/src/components/BottomLabel.css b/src/components/BottomLabel.css index 622209c..e41a00d 100644 --- a/src/components/BottomLabel.css +++ b/src/components/BottomLabel.css @@ -1,6 +1,6 @@ .bottom-label { position: absolute; - bottom: .25rem; + bottom: 1rem; display: flex; align-items: center; gap: .5rem; @@ -19,8 +19,8 @@ } .dot { - width: 2px; - height: 2px; + width: 3px; + height: 3px; background: currentColor; border-radius: 100px; } diff --git a/src/components/DisabledScreen.css b/src/components/DisabledScreen.css index 15648a7..626334e 100644 --- a/src/components/DisabledScreen.css +++ b/src/components/DisabledScreen.css @@ -5,11 +5,11 @@ font-size: 16px; } -.disabled svg { - display: block; - width: 1.5rem; - height: 1.5rem; - margin: 0 auto; +.disabled .icon { + font-size: 1.5rem; + margin-bottom: 1rem; + text-align: center; + display: inline-block; color: #B44868; } @@ -19,4 +19,4 @@ .disabled strong { color: white; -} \ No newline at end of file +} diff --git a/src/components/DisabledScreen.tsx b/src/components/DisabledScreen.tsx index 426e113..4f88747 100644 --- a/src/components/DisabledScreen.tsx +++ b/src/components/DisabledScreen.tsx @@ -4,7 +4,9 @@ import { Icon } from './Icon'; export function DisabledScreen() { return (
The movie-web extension can not be used on this page
diff --git a/src/components/SetupScreen.tsx b/src/components/SetupScreen.tsx index 7e658ae..33fcbd6 100644 --- a/src/components/SetupScreen.tsx +++ b/src/components/SetupScreen.tsx @@ -1,9 +1,9 @@ import { useCallback } from 'react'; import { Button } from '~components/Button'; +import { Icon } from '~components/Icon'; import './SetupScreen.css'; -import { Icon } from '~components/Icon'; export function SetupScreen() { const open = useCallback(() => { diff --git a/src/tabs/PermissionGrant.css b/src/tabs/PermissionGrant.css index 6401c64..be113c3 100644 --- a/src/tabs/PermissionGrant.css +++ b/src/tabs/PermissionGrant.css @@ -15,7 +15,7 @@ body { background-color: #0A0A10; } -.container { +.container.permission-grant { height: 100%; width: 100%; display: flex; @@ -23,14 +23,14 @@ body { justify-content: center; } -.inner-container { +.permission-grant .inner-container { width: 400px; display: flex; flex-direction: column; gap: 1rem; } -.permission-card { +.permission-grant .permission-card { display: flex; align-items: center; flex-direction: column; @@ -42,30 +42,30 @@ body { border: 1px solid #272A37; } -h1 { +.permission-grant h1 { font-size: 1.25rem; margin-bottom: 0.5rem; } -.permission-card>p { +.permission-grant .permission-card > p { font-size: 1rem; margin-top: .5rem; margin-bottom: 1rem; } -.color-white { +.permission-grant .color-white { color: #ffffff; } -.text-color { +.permission-grant .text-color { color: #73739d; } -.buttons { +.permission-grant .buttons { width: 100%; margin-top: 2rem; } -.buttons>*+* { +.permission-grant .buttons>*+* { margin-top: 1rem; -} \ No newline at end of file +} diff --git a/src/tabs/PermissionGrant.tsx b/src/tabs/PermissionGrant.tsx index 725b40b..66305dc 100644 --- a/src/tabs/PermissionGrant.tsx +++ b/src/tabs/PermissionGrant.tsx @@ -1,20 +1,16 @@ import { Button } from '~components/Button'; -import { useDomainWhitelist } from '~hooks/useDomainWhitelist'; import { usePermission } from '~hooks/usePermission'; import { makeUrlIntoDomain } from '~utils/domains'; import './PermissionGrant.css'; export default function PermissionGrant() { - const { domainWhitelist } = useDomainWhitelist(); - const { hasPermission, grantPermission } = usePermission(); + const { grantPermission } = usePermission(); const queryParams = new URLSearchParams(window.location.search); const redirectUrl = queryParams.get('redirectUrl') ?? 'https://movie-web.app'; const domain = makeUrlIntoDomain(redirectUrl); - const permissionsGranted = domainWhitelist.includes(domain) && hasPermission; - const redirectBack = () => { chrome.tabs.getCurrent((tab) => { chrome.tabs.update(tab.id, { url: redirectUrl }); @@ -28,7 +24,7 @@ export default function PermissionGrant() { }; return ( -