Refresh admin UI styling and shared components
21
components.json
Normal file
|
|
@ -0,0 +1,21 @@
|
||||||
|
{
|
||||||
|
"$schema": "https://ui.shadcn.com/schema.json",
|
||||||
|
"style": "new-york",
|
||||||
|
"rsc": false,
|
||||||
|
"tsx": true,
|
||||||
|
"tailwind": {
|
||||||
|
"config": "tailwind.config.js",
|
||||||
|
"css": "src/index.css",
|
||||||
|
"baseColor": "zinc",
|
||||||
|
"cssVariables": true,
|
||||||
|
"prefix": ""
|
||||||
|
},
|
||||||
|
"iconLibrary": "lucide",
|
||||||
|
"aliases": {
|
||||||
|
"components": "@/components",
|
||||||
|
"utils": "@/lib/utils",
|
||||||
|
"ui": "@/components/ui",
|
||||||
|
"lib": "@/lib",
|
||||||
|
"hooks": "@/hooks"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
<svg width="114" height="114" viewBox="0 0 114 114" fill="none" xmlns="http://www.w3.org/2000/svg">
|
<svg width="114" height="114" viewBox="0 0 114 114" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||||
<path d="M66.1428 99.75H47.8572C25.8626 99.75 14.8654 99.75 10.8127 92.596C6.76008 85.4425 12.385 75.9591 23.6348 56.9929L32.7777 41.5783C43.5841 23.3595 48.9872 14.25 57 14.25C65.0128 14.25 70.4159 23.3594 81.2222 41.5783L90.3654 56.9929C101.615 75.9591 107.24 85.4425 103.187 92.596C99.1344 99.75 88.1372 99.75 66.1428 99.75Z" stroke="#9E2891" stroke-width="7.125" stroke-linecap="round" stroke-linejoin="round"/>
|
<path d="M66.1428 99.75H47.8572C25.8626 99.75 14.8654 99.75 10.8127 92.596C6.76008 85.4425 12.385 75.9591 23.6348 56.9929L32.7777 41.5783C43.5841 23.3595 48.9872 14.25 57 14.25C65.0128 14.25 70.4159 23.3594 81.2222 41.5783L90.3654 56.9929C101.615 75.9591 107.24 85.4425 103.187 92.596C99.1344 99.75 88.1372 99.75 66.1428 99.75Z" stroke="#18181B" stroke-width="7.125" stroke-linecap="round" stroke-linejoin="round"/>
|
||||||
<path d="M57 42.75V64.125" stroke="#9E2891" stroke-width="7.125" stroke-linecap="round" stroke-linejoin="round"/>
|
<path d="M57 42.75V64.125" stroke="#18181B" stroke-width="7.125" stroke-linecap="round" stroke-linejoin="round"/>
|
||||||
<path d="M57 80.713V80.7604" stroke="#9E2891" stroke-width="7.125" stroke-linecap="round" stroke-linejoin="round"/>
|
<path d="M57 80.713V80.7604" stroke="#18181B" stroke-width="7.125" stroke-linecap="round" stroke-linejoin="round"/>
|
||||||
</svg>
|
</svg>
|
||||||
|
|
|
||||||
|
Before Width: | Height: | Size: 753 B After Width: | Height: | Size: 753 B |
|
|
@ -1,4 +1,4 @@
|
||||||
<svg width="114" height="115" viewBox="0 0 114 115" fill="none" xmlns="http://www.w3.org/2000/svg">
|
<svg width="114" height="115" viewBox="0 0 114 115" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||||
<path fill-rule="evenodd" clip-rule="evenodd" d="M108.361 64.9546C111.363 65.9012 113.03 69.1024 112.083 72.1048L110.663 76.6103L108.759 81.2049L106.463 85.616L103.791 89.8103L100.764 93.7557L97.404 97.4222L93.7374 100.782L89.792 103.809L85.5977 106.481L81.4073 108.663C78.615 110.116 75.173 109.031 73.7194 106.239C72.2658 103.447 73.3511 100.005 76.1434 98.5509L79.8923 96.5994L83.247 94.4622L86.4027 92.0408L89.3353 89.3536L92.0225 86.4209L94.4439 83.2653L96.5811 79.9106L98.4177 76.3824L99.9399 72.7076L101.211 68.6767C102.157 65.6744 105.359 64.0079 108.361 64.9546Z" fill="#9E2891"/>
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M108.361 64.9546C111.363 65.9012 113.03 69.1024 112.083 72.1048L110.663 76.6103L108.759 81.2049L106.463 85.616L103.791 89.8103L100.764 93.7557L97.404 97.4222L93.7374 100.782L89.792 103.809L85.5977 106.481L81.4073 108.663C78.615 110.116 75.173 109.031 73.7194 106.239C72.2658 103.447 73.3511 100.005 76.1434 98.5509L79.8923 96.5994L83.247 94.4622L86.4027 92.0408L89.3353 89.3536L92.0225 86.4209L94.4439 83.2653L96.5811 79.9106L98.4177 76.3824L99.9399 72.7076L101.211 68.6767C102.157 65.6744 105.359 64.0079 108.361 64.9546Z" fill="#18181B"/>
|
||||||
<path fill-rule="evenodd" clip-rule="evenodd" d="M108.851 53.7714C105.777 54.4527 102.733 52.5136 102.052 49.4402L101.137 45.3139L99.9412 41.5204L98.4191 37.8456L96.5824 34.3174L94.4452 30.9627L92.0238 27.807L89.3366 24.8744L86.404 22.1872L83.2483 19.7658L79.8936 17.6286L76.3654 15.7919L72.6906 14.2698L68.8971 13.0737L65.0138 12.2128L61.0702 11.6936L57.0963 11.5201L53.1225 11.6936L49.1789 12.2128L45.2956 13.0737L41.5021 14.2698L37.8272 15.792L34.2991 17.6286L30.9444 19.7658L27.7887 22.1872L24.8561 24.8744L22.1689 27.807L19.7475 30.9627L17.6103 34.3173L15.7736 37.8456L14.2515 41.5203L13.0554 45.3139L12.1945 49.1972L11.6753 53.1408L11.5018 57.1147L11.6753 61.0885L12.1945 65.0321L13.0554 68.9154L14.2515 72.7089L15.7736 76.3837L17.6103 79.912L19.7475 83.2666L22.1689 86.4223L24.8561 89.3549L27.7887 92.0421L30.9443 94.4635L34.2991 96.6008L37.8273 98.4374L41.502 99.9595L45.2956 101.156L49.1789 102.017L53.1225 102.536L57.345 102.72C60.49 102.857 62.9282 105.518 62.7909 108.663C62.6536 111.808 59.9927 114.247 56.8477 114.109L52.128 113.903L47.1975 113.254L42.3423 112.178L37.5993 110.682L33.0048 108.779L28.5936 106.483L24.3994 103.811L20.454 100.783L16.7874 97.4236L13.4277 93.7571L10.4002 89.8116L7.7282 85.6174L5.43189 81.2062L3.52878 76.6117L2.03334 71.8687L0.956956 67.0136L0.307837 62.083L0.0909175 57.1147L0.307857 52.1463L0.95697 47.2158L2.03335 42.3606L3.52876 37.6177L5.43188 33.0231L7.7282 28.6119L10.4002 24.4177L13.4277 20.4723L16.7874 16.8057L20.454 13.446L24.3994 10.4185L28.5936 7.7465L33.0048 5.45019L37.5993 3.54707L42.3423 2.05164L47.1975 0.975266L52.128 0.326146L57.0964 0.109224L62.0647 0.326146L66.9952 0.975265L71.8504 2.05164L76.5934 3.54707L81.1879 5.45019L85.5991 7.74651L89.7933 10.4185L93.7387 13.446L97.4053 16.8057L100.765 20.4723L103.792 24.4177L106.465 28.6119L108.761 33.0231L110.664 37.6177L112.159 42.3606L113.182 46.9728C113.863 50.0462 111.924 53.09 108.851 53.7714Z" fill="#9E2891" fill-opacity="0.2"/>
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M108.851 53.7714C105.777 54.4527 102.733 52.5136 102.052 49.4402L101.137 45.3139L99.9412 41.5204L98.4191 37.8456L96.5824 34.3174L94.4452 30.9627L92.0238 27.807L89.3366 24.8744L86.404 22.1872L83.2483 19.7658L79.8936 17.6286L76.3654 15.7919L72.6906 14.2698L68.8971 13.0737L65.0138 12.2128L61.0702 11.6936L57.0963 11.5201L53.1225 11.6936L49.1789 12.2128L45.2956 13.0737L41.5021 14.2698L37.8272 15.792L34.2991 17.6286L30.9444 19.7658L27.7887 22.1872L24.8561 24.8744L22.1689 27.807L19.7475 30.9627L17.6103 34.3173L15.7736 37.8456L14.2515 41.5203L13.0554 45.3139L12.1945 49.1972L11.6753 53.1408L11.5018 57.1147L11.6753 61.0885L12.1945 65.0321L13.0554 68.9154L14.2515 72.7089L15.7736 76.3837L17.6103 79.912L19.7475 83.2666L22.1689 86.4223L24.8561 89.3549L27.7887 92.0421L30.9443 94.4635L34.2991 96.6008L37.8273 98.4374L41.502 99.9595L45.2956 101.156L49.1789 102.017L53.1225 102.536L57.345 102.72C60.49 102.857 62.9282 105.518 62.7909 108.663C62.6536 111.808 59.9927 114.247 56.8477 114.109L52.128 113.903L47.1975 113.254L42.3423 112.178L37.5993 110.682L33.0048 108.779L28.5936 106.483L24.3994 103.811L20.454 100.783L16.7874 97.4236L13.4277 93.7571L10.4002 89.8116L7.7282 85.6174L5.43189 81.2062L3.52878 76.6117L2.03334 71.8687L0.956956 67.0136L0.307837 62.083L0.0909175 57.1147L0.307857 52.1463L0.95697 47.2158L2.03335 42.3606L3.52876 37.6177L5.43188 33.0231L7.7282 28.6119L10.4002 24.4177L13.4277 20.4723L16.7874 16.8057L20.454 13.446L24.3994 10.4185L28.5936 7.7465L33.0048 5.45019L37.5993 3.54707L42.3423 2.05164L47.1975 0.975266L52.128 0.326146L57.0964 0.109224L62.0647 0.326146L66.9952 0.975265L71.8504 2.05164L76.5934 3.54707L81.1879 5.45019L85.5991 7.74651L89.7933 10.4185L93.7387 13.446L97.4053 16.8057L100.765 20.4723L103.792 24.4177L106.465 28.6119L108.761 33.0231L110.664 37.6177L112.159 42.3606L113.182 46.9728C113.863 50.0462 111.924 53.09 108.851 53.7714Z" fill="#18181B" fill-opacity="0.2"/>
|
||||||
</svg>
|
</svg>
|
||||||
|
|
|
||||||
|
Before Width: | Height: | Size: 2.6 KiB After Width: | Height: | Size: 2.6 KiB |
|
|
@ -1,8 +1,8 @@
|
||||||
<svg width="170" height="196" viewBox="0 0 170 196" fill="none" xmlns="http://www.w3.org/2000/svg">
|
<svg width="170" height="196" viewBox="0 0 170 196" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||||
<path fill-rule="evenodd" clip-rule="evenodd" d="M117.067 182.177C115.877 197.212 110.275 195.264 85.2333 195.212C84.4448 195.21 75.1908 196.597 70.8903 191.049C65.6205 184.25 72.0278 153.148 66.6476 148.541C35.4189 121.795 4.51062 115.662 0.0823302 67.1799C-1.67884 47.8957 25.4175 31.9131 23.7554 61.6575C23.719 62.3058 22.9739 65.1635 25.0985 62.8067C29.2141 58.2412 41.0922 63.3382 31.2926 74.5349C28.6322 77.5748 24.8148 77.7486 29.7086 86.6516C31.7965 90.4499 32.1575 90.3838 32.4261 90.1526C41.4869 82.3661 45.6132 74.0124 53.4047 80.4715C54.0587 81.0137 84.7318 107.292 87.455 109.625C94.8854 115.991 95.9815 110.8 108.517 100.555C133.126 80.4434 138.456 71.3292 144.851 76.8954C171.122 99.7616 171.024 101.369 169.414 104.755C166.698 110.466 118.649 145.024 117.265 151.52C117.004 152.747 117.06 155.903 117.067 182.176V182.177Z" fill="#9E2891"/>
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M117.067 182.177C115.877 197.212 110.275 195.264 85.2333 195.212C84.4448 195.21 75.1908 196.597 70.8903 191.049C65.6205 184.25 72.0278 153.148 66.6476 148.541C35.4189 121.795 4.51062 115.662 0.0823302 67.1799C-1.67884 47.8957 25.4175 31.9131 23.7554 61.6575C23.719 62.3058 22.9739 65.1635 25.0985 62.8067C29.2141 58.2412 41.0922 63.3382 31.2926 74.5349C28.6322 77.5748 24.8148 77.7486 29.7086 86.6516C31.7965 90.4499 32.1575 90.3838 32.4261 90.1526C41.4869 82.3661 45.6132 74.0124 53.4047 80.4715C54.0587 81.0137 84.7318 107.292 87.455 109.625C94.8854 115.991 95.9815 110.8 108.517 100.555C133.126 80.4434 138.456 71.3292 144.851 76.8954C171.122 99.7616 171.024 101.369 169.414 104.755C166.698 110.466 118.649 145.024 117.265 151.52C117.004 152.747 117.06 155.903 117.067 182.176V182.177Z" fill="#18181B"/>
|
||||||
<path fill-rule="evenodd" clip-rule="evenodd" d="M95.9691 7.04231C107.402 12.0196 133.385 46.145 132.81 49.3317C132.545 50.7992 131.661 50.4639 115.134 43.4362C88.5694 32.1406 77.2952 56.2361 54.3034 49.0066C52.8236 48.5409 50.3187 46.5017 62.8984 31.6198C77.3155 14.5642 81.6895 4.59241 95.9691 7.04231Z" fill="#9E2891"/>
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M95.9691 7.04231C107.402 12.0196 133.385 46.145 132.81 49.3317C132.545 50.7992 131.661 50.4639 115.134 43.4362C88.5694 32.1406 77.2952 56.2361 54.3034 49.0066C52.8236 48.5409 50.3187 46.5017 62.8984 31.6198C77.3155 14.5642 81.6895 4.59241 95.9691 7.04231Z" fill="#18181B"/>
|
||||||
<path fill-rule="evenodd" clip-rule="evenodd" d="M104.13 80.7417C101.825 93.3925 78.112 87.9719 81.2646 79.2604C83.4853 73.1244 89.8626 86.8841 97.1122 80.5444C97.7996 79.9435 102.375 73.8938 104.13 80.7417Z" fill="#9E2891"/>
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M104.13 80.7417C101.825 93.3925 78.112 87.9719 81.2646 79.2604C83.4853 73.1244 89.8626 86.8841 97.1122 80.5444C97.7996 79.9435 102.375 73.8938 104.13 80.7417Z" fill="#18181B"/>
|
||||||
<path fill-rule="evenodd" clip-rule="evenodd" d="M67.3682 66.1875C67.5867 65.3843 69.8818 56.9538 76.5731 61.3381C85.3369 67.0807 70.2095 79.6629 67.3682 66.1875Z" fill="#9E2891"/>
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M67.3682 66.1875C67.5867 65.3843 69.8818 56.9538 76.5731 61.3381C85.3369 67.0807 70.2095 79.6629 67.3682 66.1875Z" fill="#18181B"/>
|
||||||
<path fill-rule="evenodd" clip-rule="evenodd" d="M106.098 66.1791C106.299 65.3769 108.584 56.2798 115.233 61.3404C123.931 67.9593 108.563 79.161 106.098 66.1791Z" fill="#9E2891"/>
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M106.098 66.1791C106.299 65.3769 108.584 56.2798 115.233 61.3404C123.931 67.9593 108.563 79.161 106.098 66.1791Z" fill="#18181B"/>
|
||||||
<path fill-rule="evenodd" clip-rule="evenodd" d="M89.5097 3.27682C89.8473 3.71664 89.8388 3.7058 90.174 4.14097C91.8303 6.28896 92.274 4.5622 94.3639 1.95891C96.0729 -0.16895 96.6436 -0.723371 98.6653 1.09553C100.365 2.62483 99.0602 3.86144 97.4946 5.84759C96.4128 7.21893 96.3423 7.28397 96.4213 7.96074C96.4988 8.62279 96.7775 8.4323 98.8574 9.274C105.076 11.7913 99.5535 16.8431 88.6765 15.9038C82.979 15.4121 79.9885 12.8584 81.4551 10.8831C83.1269 8.63131 86.2172 9.03241 86.4046 7.96926C86.5788 6.97811 85.8719 6.46241 85.0635 5.44804C82.9534 2.79983 82.852 2.17959 84.6577 0.764118C86.7856 -0.903788 87.5932 0.850068 89.5097 3.27682Z" fill="#9E2891"/>
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M89.5097 3.27682C89.8473 3.71664 89.8388 3.7058 90.174 4.14097C91.8303 6.28896 92.274 4.5622 94.3639 1.95891C96.0729 -0.16895 96.6436 -0.723371 98.6653 1.09553C100.365 2.62483 99.0602 3.86144 97.4946 5.84759C96.4128 7.21893 96.3423 7.28397 96.4213 7.96074C96.4988 8.62279 96.7775 8.4323 98.8574 9.274C105.076 11.7913 99.5535 16.8431 88.6765 15.9038C82.979 15.4121 79.9885 12.8584 81.4551 10.8831C83.1269 8.63131 86.2172 9.03241 86.4046 7.96926C86.5788 6.97811 85.8719 6.46241 85.0635 5.44804C82.9534 2.79983 82.852 2.17959 84.6577 0.764118C86.7856 -0.903788 87.5932 0.850068 89.5097 3.27682Z" fill="#18181B"/>
|
||||||
</svg>
|
</svg>
|
||||||
|
|
|
||||||
|
Before Width: | Height: | Size: 2.5 KiB After Width: | Height: | Size: 2.5 KiB |
|
|
@ -1,6 +1,6 @@
|
||||||
<svg width="128" height="128" viewBox="0 0 128 128" fill="none" xmlns="http://www.w3.org/2000/svg">
|
<svg width="128" height="128" viewBox="0 0 128 128" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||||
<path d="M63.9919 0C60.8419 0 57.6937 1.20941 55.3022 3.60086L50.6045 8.29848C46.3616 12.5413 40.6045 14.9155 34.6041 14.9155H27.1926C20.4286 14.9155 14.902 20.4419 14.902 27.206V32.6496V34.6214C14.902 40.6217 12.5277 46.3747 8.28487 50.6175L3.58719 55.3152C-1.19573 60.0981 -1.19573 67.9196 3.58719 72.7025L8.28487 77.4001C12.5277 81.643 14.902 87.3919 14.902 93.3922V100.808C14.902 107.572 20.4286 113.098 27.1926 113.098H34.6041C40.6045 113.098 46.3616 115.476 50.6045 119.719L55.3022 124.413C60.0851 129.196 67.8988 129.196 72.6817 124.413L77.3834 119.719C81.6263 115.476 87.3795 113.098 93.3798 113.098H100.791C107.555 113.098 113.082 107.572 113.082 100.808V93.3922C113.082 87.3919 115.476 81.643 119.719 77.4001L124.413 72.7025C129.196 67.9196 129.196 60.0981 124.413 55.3152L119.719 50.6175C115.476 46.3746 113.082 40.6217 113.082 34.6214V27.206C113.082 20.4419 107.555 14.9155 100.791 14.9155H93.3798C87.3795 14.9155 81.6263 12.5414 77.3834 8.29848L72.6817 3.60086C70.2902 1.20941 67.142 7.80299e-06 63.9919 0Z" fill="#9E2891" fill-opacity="0.2"/>
|
<path d="M63.9919 0C60.8419 0 57.6937 1.20941 55.3022 3.60086L50.6045 8.29848C46.3616 12.5413 40.6045 14.9155 34.6041 14.9155H27.1926C20.4286 14.9155 14.902 20.4419 14.902 27.206V32.6496V34.6214C14.902 40.6217 12.5277 46.3747 8.28487 50.6175L3.58719 55.3152C-1.19573 60.0981 -1.19573 67.9196 3.58719 72.7025L8.28487 77.4001C12.5277 81.643 14.902 87.3919 14.902 93.3922V100.808C14.902 107.572 20.4286 113.098 27.1926 113.098H34.6041C40.6045 113.098 46.3616 115.476 50.6045 119.719L55.3022 124.413C60.0851 129.196 67.8988 129.196 72.6817 124.413L77.3834 119.719C81.6263 115.476 87.3795 113.098 93.3798 113.098H100.791C107.555 113.098 113.082 107.572 113.082 100.808V93.3922C113.082 87.3919 115.476 81.643 119.719 77.4001L124.413 72.7025C129.196 67.9196 129.196 60.0981 124.413 55.3152L119.719 50.6175C115.476 46.3746 113.082 40.6217 113.082 34.6214V27.206C113.082 20.4419 107.555 14.9155 100.791 14.9155H93.3798C87.3795 14.9155 81.6263 12.5414 77.3834 8.29848L72.6817 3.60086C70.2902 1.20941 67.142 7.80299e-06 63.9919 0Z" fill="#18181B" fill-opacity="0.2"/>
|
||||||
<path d="M63.9929 8C61.2366 8 58.482 9.05824 56.3894 11.1508L52.2789 15.2612C48.5664 18.9737 43.5289 21.051 38.2786 21.051H31.7936C25.875 21.051 21.0393 25.8867 21.0393 31.8052V36.5684V38.2937C21.0393 43.544 18.9618 48.5778 15.2493 52.2903L11.1388 56.4008C6.95374 60.5858 6.95374 67.4297 11.1388 71.6147L15.2493 75.7251C18.9618 79.4376 21.0393 84.4679 21.0393 89.7182V96.2067C21.0393 102.125 25.875 106.961 31.7936 106.961H38.2786C43.5289 106.961 48.5664 109.042 52.2789 112.754L56.3894 116.861C60.5745 121.046 67.4115 121.046 71.5965 116.861L75.7105 112.754C79.423 109.042 84.457 106.961 89.7073 106.961H96.1924C102.111 106.961 106.947 102.125 106.947 96.2067V89.7182C106.947 84.4679 109.042 79.4376 112.754 75.7251L116.861 71.6147C121.046 67.4297 121.046 60.5859 116.861 56.4008L112.754 52.2903C109.042 48.5778 106.947 43.544 106.947 38.2937V31.8052C106.947 25.8867 102.111 21.051 96.1924 21.051H89.7073C84.457 21.051 79.423 18.9737 75.7105 15.2612L71.5965 11.1508C69.504 9.05823 66.7492 8.00001 63.9929 8Z" fill="#9E2891"/>
|
<path d="M63.9929 8C61.2366 8 58.482 9.05824 56.3894 11.1508L52.2789 15.2612C48.5664 18.9737 43.5289 21.051 38.2786 21.051H31.7936C25.875 21.051 21.0393 25.8867 21.0393 31.8052V36.5684V38.2937C21.0393 43.544 18.9618 48.5778 15.2493 52.2903L11.1388 56.4008C6.95374 60.5858 6.95374 67.4297 11.1388 71.6147L15.2493 75.7251C18.9618 79.4376 21.0393 84.4679 21.0393 89.7182V96.2067C21.0393 102.125 25.875 106.961 31.7936 106.961H38.2786C43.5289 106.961 48.5664 109.042 52.2789 112.754L56.3894 116.861C60.5745 121.046 67.4115 121.046 71.5965 116.861L75.7105 112.754C79.423 109.042 84.457 106.961 89.7073 106.961H96.1924C102.111 106.961 106.947 102.125 106.947 96.2067V89.7182C106.947 84.4679 109.042 79.4376 112.754 75.7251L116.861 71.6147C121.046 67.4297 121.046 60.5859 116.861 56.4008L112.754 52.2903C109.042 48.5778 106.947 43.544 106.947 38.2937V31.8052C106.947 25.8867 102.111 21.051 96.1924 21.051H89.7073C84.457 21.051 79.423 18.9737 75.7105 15.2612L71.5965 11.1508C69.504 9.05823 66.7492 8.00001 63.9929 8Z" fill="#18181B"/>
|
||||||
<path d="M56.417 54.2498C56.417 52.056 58.3571 49.9165 60.7503 49.9165C63.1436 49.9165 65.0837 51.6949 65.0837 53.8887C65.0837 54.6795 64.8317 55.4163 64.397 56.0353C63.102 57.8802 60.7503 59.6394 60.7503 61.8332" stroke="white" stroke-width="3.25" stroke-linecap="round"/>
|
<path d="M56.417 54.2498C56.417 52.056 58.3571 49.9165 60.7503 49.9165C63.1436 49.9165 65.0837 51.6949 65.0837 53.8887C65.0837 54.6795 64.8317 55.4163 64.397 56.0353C63.102 57.8802 60.7503 59.6394 60.7503 61.8332" stroke="white" stroke-width="3.25" stroke-linecap="round"/>
|
||||||
<path d="M60.75 67.25H60.7695" stroke="white" stroke-width="3.25" stroke-linecap="round" stroke-linejoin="round"/>
|
<path d="M60.75 67.25H60.7695" stroke="white" stroke-width="3.25" stroke-linecap="round" stroke-linejoin="round"/>
|
||||||
<path d="M55.333 80.25C57.6088 82.1344 60.3478 83.3349 63.4873 83.5407C65.9609 83.703 68.5434 83.7028 71.0121 83.5407C71.8621 83.4851 72.7888 83.2848 73.5867 82.9605C74.4744 82.5997 74.9186 82.4193 75.1444 82.4466C75.3699 82.4739 75.6973 82.7122 76.3521 83.1887C77.5065 84.0287 78.9607 84.6321 81.1174 84.5803C82.2079 84.5541 82.7533 84.5409 82.9972 84.1303C83.2414 83.7195 82.9374 83.151 82.3292 82.0139C81.486 80.4368 80.9517 78.6313 81.7614 77.1846C83.1558 75.1182 84.3401 72.6712 84.5132 70.0283C84.6062 68.6083 84.6062 67.1375 84.5132 65.7175C84.398 63.9564 83.9705 62.2825 83.2856 60.75" stroke="white" stroke-width="3.25" stroke-linecap="round" stroke-linejoin="round"/>
|
<path d="M55.333 80.25C57.6088 82.1344 60.3478 83.3349 63.4873 83.5407C65.9609 83.703 68.5434 83.7028 71.0121 83.5407C71.8621 83.4851 72.7888 83.2848 73.5867 82.9605C74.4744 82.5997 74.9186 82.4193 75.1444 82.4466C75.3699 82.4739 75.6973 82.7122 76.3521 83.1887C77.5065 84.0287 78.9607 84.6321 81.1174 84.5803C82.2079 84.5541 82.7533 84.5409 82.9972 84.1303C83.2414 83.7195 82.9374 83.151 82.3292 82.0139C81.486 80.4368 80.9517 78.6313 81.7614 77.1846C83.1558 75.1182 84.3401 72.6712 84.5132 70.0283C84.6062 68.6083 84.6062 67.1375 84.5132 65.7175C84.398 63.9564 83.9705 62.2825 83.2856 60.75" stroke="white" stroke-width="3.25" stroke-linecap="round" stroke-linejoin="round"/>
|
||||||
|
|
|
||||||
|
Before Width: | Height: | Size: 4.0 KiB After Width: | Height: | Size: 4.0 KiB |
BIN
src/assets/image.png
Normal file
|
After Width: | Height: | Size: 116 KiB |
|
|
@ -1,6 +0,0 @@
|
||||||
<svg width="40" height="40" viewBox="0 0 180 180" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
||||||
<g transform="translate(14, 4)">
|
|
||||||
<path d="M121.07 26.53L98.76 39.42L76.03 52.54L53.26 39.39L53.24 39.38L30.96 26.52L31.41 25.76L53.24 13.15L53.26 13.13L76.02 0L98.76 13.12L120.6 25.74L121.07 26.53Z" fill="white"/>
|
|
||||||
<path d="M53.26 172.41H98.76V110.9L121.51 97.78L137.93 88.29L152.02 80.15L129.27 40.75L98.76 58.36L92.43 62.02L76 71.49L59.6 62.03L53.26 58.37L53.24 58.36L22.75 40.75L0 80.16L14.09 88.3L30.5 97.78L53.24 110.9L53.26 110.91V137.18V172.41Z" fill="white"/>
|
|
||||||
</g>
|
|
||||||
</svg>
|
|
||||||
|
Before Width: | Height: | Size: 577 B |
|
|
@ -1,24 +0,0 @@
|
||||||
<svg width="524" height="173" viewBox="0 0 524 173" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
||||||
<g clip-path="url(#clip0_23_9014)">
|
|
||||||
<path d="M194.31 28.74L206.48 51L219.27 28.76H232.21L212.29 62.86V83H200.67V62.84L180.75 28.74H194.31Z" fill="white"/>
|
|
||||||
<path d="M247.79 32.69C247.809 33.51 247.661 34.3253 247.353 35.0855C247.045 35.8457 246.584 36.5347 246 37.11C245.412 37.6963 244.71 38.1565 243.938 38.4625C243.166 38.7686 242.34 38.914 241.51 38.89C240.677 38.907 239.85 38.7584 239.076 38.4528C238.302 38.1472 237.596 37.6908 237 37.11C236.41 36.5373 235.944 35.8494 235.631 35.0891C235.317 34.3287 235.164 33.5122 235.18 32.69C235.159 31.8731 235.31 31.0609 235.623 30.3062C235.937 29.5516 236.406 28.8714 237 28.31C237.604 27.7351 238.317 27.2854 239.096 26.9867C239.875 26.6881 240.706 26.5465 241.54 26.57C242.362 26.5477 243.18 26.6902 243.946 26.989C244.712 27.2879 245.41 27.737 246 28.31C246.586 28.8756 247.048 29.5572 247.356 30.3113C247.665 31.0655 247.812 31.8756 247.79 32.69ZM246.93 43.15V83H236V43.15H246.93Z" fill="white"/>
|
|
||||||
<path d="M316.92 61.13V83.07H306V60.74C306 54.7 303.7 51.68 299.1 51.68C298.017 51.641 296.939 51.8473 295.947 52.2837C294.954 52.7201 294.074 53.3752 293.37 54.2C291.819 56.1915 291.048 58.6803 291.2 61.2V83.07H280.26V60.74C280.26 54.7 277.927 51.68 273.26 51.68C272.176 51.6412 271.098 51.855 270.11 52.3045C269.123 52.754 268.253 53.4269 267.57 54.27C266.061 56.2816 265.304 58.7583 265.43 61.27V83.07H254.53V43.15H264.06L265.06 48.15C266.341 46.4745 267.981 45.1076 269.86 44.15C272.055 43.1452 274.447 42.643 276.86 42.68C282.54 42.68 286.494 44.9267 288.72 49.42C290.134 47.2728 292.099 45.5458 294.41 44.42C296.907 43.2298 299.645 42.6342 302.41 42.68C304.364 42.6151 306.308 42.9668 308.115 43.7116C309.922 44.4565 311.55 45.5774 312.89 47C315.57 49.8067 316.914 54.5167 316.92 61.13Z" fill="white"/>
|
|
||||||
<path d="M363 83H357.42C352.4 83 349.944 80.83 350.05 76.49C348.731 78.6384 346.895 80.4226 344.71 81.68C342.347 82.9271 339.701 83.5403 337.03 83.46C332.59 83.46 329.014 82.44 326.3 80.4C324.968 79.4019 323.9 78.0925 323.19 76.5864C322.481 75.0802 322.151 73.4231 322.23 71.76C322.153 69.8652 322.549 67.9809 323.382 66.2771C324.214 64.5733 325.458 63.1034 327 62C330.12 59.7 334.654 58.55 340.6 58.55H348.51V56.56C348.542 55.736 348.377 54.9164 348.029 54.1687C347.681 53.4211 347.161 52.7668 346.51 52.26C344.913 51.1085 342.966 50.5465 341 50.67C339.238 50.5873 337.492 51.0481 336 51.99C335.383 52.3861 334.857 52.9079 334.455 53.5213C334.054 54.1348 333.786 54.8261 333.67 55.55H323.19C323.3 53.6561 323.848 51.8134 324.79 50.1668C325.732 48.5201 327.043 47.1144 328.62 46.06C331.874 43.8133 336.187 42.69 341.56 42.69C347.187 42.69 351.54 43.93 354.62 46.41C357.7 48.89 359.237 52.48 359.23 57.18V71.18C359.19 71.5381 359.224 71.9007 359.331 72.2449C359.438 72.5891 359.614 72.9075 359.85 73.18C360.408 73.5936 361.098 73.7892 361.79 73.73H363V83ZM340.47 65.78C338.602 65.6742 336.747 66.1493 335.16 67.14C334.544 67.5708 334.048 68.1509 333.717 68.8261C333.386 69.5012 333.233 70.2492 333.27 71C333.247 71.6411 333.379 72.2783 333.654 72.8578C333.929 73.4374 334.339 73.9423 334.85 74.33C336.106 75.2174 337.625 75.6544 339.16 75.57C340.39 75.6344 341.62 75.4517 342.777 75.0326C343.935 74.6135 344.997 73.9666 345.9 73.13C346.741 72.2633 347.401 71.2376 347.84 70.1129C348.28 68.9882 348.49 67.7872 348.46 66.58V65.8L340.47 65.78Z" fill="white"/>
|
|
||||||
<path d="M391.54 53.07H387.2C384.1 53.07 381.827 54 380.38 55.86C378.827 58.0794 378.063 60.7553 378.21 63.46V83H367.29V43.15H377.21L378.21 49.15C379.277 47.3096 380.799 45.7739 382.63 44.69C384.812 43.5903 387.239 43.0703 389.68 43.18H391.54V53.07Z" fill="white"/>
|
|
||||||
<path d="M433.94 83H424.25L423.25 78.19C421.853 79.9283 420.065 81.3117 418.032 82.2275C415.999 83.1434 413.778 83.5657 411.55 83.46C409.459 83.5413 407.373 83.2027 405.415 82.4642C403.457 81.7256 401.667 80.6021 400.15 79.16C397.21 76.2867 395.74 71.4967 395.74 64.79V43.15H406.66V63.46C406.66 67.08 407.3 69.8 408.56 71.63C409.218 72.552 410.101 73.2899 411.125 73.7732C412.149 74.2564 413.28 74.4688 414.41 74.39C415.642 74.4479 416.869 74.1975 417.979 73.6614C419.09 73.1253 420.049 72.3206 420.77 71.32C422.257 69.28 423 66.4267 423 62.76V43.15H433.93L433.94 83Z" fill="white"/>
|
|
||||||
<path d="M200.9 89.43H214.85L234.54 143.68H222.06L217.87 131.82H197.26L193.07 143.68H181.07L200.9 89.43ZM214.7 122.43L207.49 101.82L200.36 122.43H214.7Z" fill="white"/>
|
|
||||||
<path d="M255.77 144.15C251.999 144.235 248.268 143.369 244.92 141.63C241.873 140.003 239.377 137.507 237.75 134.46C236.09 131.132 235.226 127.464 235.226 123.745C235.226 120.026 236.09 116.358 237.75 113.03C239.403 109.984 241.927 107.501 245 105.9C248.362 104.162 252.107 103.296 255.89 103.38C261.224 103.38 265.557 104.737 268.89 107.45C272.315 110.281 274.532 114.312 275.09 118.72H263.75C263.384 116.884 262.417 115.223 261 114C259.536 112.814 257.693 112.197 255.81 112.26C254.504 112.217 253.205 112.482 252.02 113.035C250.835 113.587 249.797 114.411 248.99 115.44C247.323 117.885 246.431 120.776 246.431 123.735C246.431 126.694 247.323 129.585 248.99 132.03C249.799 133.056 250.838 133.877 252.023 134.427C253.207 134.978 254.505 135.243 255.81 135.2C257.737 135.266 259.623 134.634 261.12 133.42C262.579 132.164 263.552 130.438 263.87 128.54H275.11C274.597 133.016 272.376 137.121 268.91 140C265.517 142.76 261.137 144.143 255.77 144.15Z" fill="white"/>
|
|
||||||
<path d="M320.17 143.68H314.59C309.583 143.68 307.13 141.51 307.23 137.17C305.907 139.319 304.068 141.103 301.88 142.36C299.521 143.609 296.878 144.226 294.21 144.15C289.76 144.15 286.21 143.15 283.47 141.08C282.137 140.082 281.069 138.773 280.36 137.266C279.65 135.76 279.321 134.103 279.4 132.44C279.31 130.546 279.691 128.659 280.51 126.949C281.328 125.239 282.558 123.758 284.09 122.64C287.223 120.34 291.76 119.19 297.7 119.19H305.6V117.25C305.632 116.426 305.467 115.606 305.119 114.858C304.772 114.11 304.251 113.456 303.6 112.95C302.059 111.957 300.275 111.407 298.442 111.359C296.61 111.312 294.8 111.768 293.21 112.68C292.595 113.078 292.071 113.6 291.671 114.213C291.271 114.827 291.005 115.517 290.89 116.24H280.33C280.442 114.347 280.99 112.505 281.932 110.858C282.874 109.212 284.184 107.806 285.76 106.75C289.013 104.503 293.326 103.38 298.7 103.38C304.34 103.38 308.693 104.62 311.76 107.1C314.826 109.58 316.363 113.17 316.37 117.87V131.87C316.332 132.228 316.367 132.59 316.474 132.934C316.58 133.278 316.756 133.596 316.99 133.87C317.552 134.274 318.239 134.466 318.93 134.41H320.17V143.68ZM297.62 126.47C295.751 126.36 293.895 126.836 292.31 127.83C291.694 128.257 291.197 128.833 290.865 129.505C290.532 130.177 290.376 130.921 290.41 131.67C290.388 132.312 290.521 132.95 290.798 133.529C291.074 134.109 291.487 134.613 292 135C293.252 135.887 294.767 136.324 296.3 136.24C297.523 136.301 298.746 136.117 299.897 135.698C301.047 135.279 302.102 134.634 303 133.8C303.844 132.936 304.506 131.911 304.946 130.785C305.386 129.66 305.594 128.458 305.56 127.25V126.47H297.62Z" fill="white"/>
|
|
||||||
<path d="M364.27 143.68H354.73L353.65 138.18C352.225 140.111 350.352 141.666 348.191 142.712C346.031 143.757 343.649 144.261 341.25 144.18C337.925 144.23 334.65 143.358 331.79 141.66C328.968 139.944 326.695 137.456 325.24 134.49C323.61 131.134 322.802 127.44 322.88 123.71C322.795 120.002 323.604 116.329 325.24 113C326.711 110.043 328.998 107.569 331.83 105.87C334.706 104.174 337.992 103.302 341.33 103.35C346.49 103.35 350.49 105.157 353.33 108.77V89.43H364.26L364.27 143.68ZM353.5 123.84C353.645 120.825 352.708 117.857 350.86 115.47C350.01 114.432 348.931 113.605 347.708 113.054C346.485 112.502 345.151 112.241 343.81 112.29C342.464 112.241 341.124 112.503 339.895 113.054C338.665 113.605 337.579 114.432 336.72 115.47C334.978 117.885 334.041 120.787 334.041 123.765C334.041 126.743 334.978 129.645 336.72 132.06C337.581 133.095 338.668 133.919 339.897 134.468C341.126 135.018 342.465 135.278 343.81 135.23C345.147 135.283 346.479 135.027 347.701 134.482C348.924 133.938 350.005 133.119 350.86 132.09C352.705 129.748 353.642 126.818 353.5 123.84Z" fill="white"/>
|
|
||||||
<path d="M379.88 105.9C383.105 104.17 386.722 103.301 390.38 103.38C394.058 103.311 397.698 104.12 401 105.74C403.986 107.237 406.486 109.55 408.21 112.41C410.559 116.613 411.392 121.496 410.57 126.24H381.7V126.55C381.805 129.079 382.792 131.492 384.49 133.37C385.356 134.219 386.389 134.878 387.524 135.305C388.658 135.732 389.87 135.917 391.08 135.85C393.027 135.923 394.952 135.426 396.62 134.42C398.103 133.446 399.147 131.932 399.53 130.2H410.3C409.913 132.787 408.881 135.236 407.3 137.32C405.634 139.494 403.446 141.214 400.94 142.32C398.09 143.586 394.998 144.21 391.88 144.15C387.901 144.251 383.955 143.401 380.37 141.67C377.234 140.103 374.642 137.629 372.93 134.57C371.14 131.282 370.243 127.583 370.33 123.84C370.23 120.073 371.09 116.342 372.83 113C374.447 110.003 376.895 107.538 379.88 105.9ZM397 113.49C395.244 112.124 393.064 111.416 390.84 111.49C388.664 111.409 386.532 112.119 384.84 113.49C383.196 114.894 382.157 116.879 381.94 119.03H400C399.746 116.868 398.672 114.885 397 113.49Z" fill="white"/>
|
|
||||||
<path d="M479.28 121.82V143.76H468.35V121.44C468.35 115.393 466.05 112.37 461.45 112.37C460.366 112.329 459.288 112.535 458.295 112.972C457.303 113.408 456.422 114.064 455.72 114.89C454.167 116.881 453.392 119.369 453.54 121.89V143.75H442.62V121.44C442.62 115.393 440.286 112.37 435.62 112.37C434.534 112.33 433.453 112.543 432.464 112.992C431.475 113.442 430.604 114.115 429.92 114.96C428.413 116.973 427.659 119.449 427.79 121.96V143.74H416.89V103.84H426.42L427.42 108.84C428.7 107.164 430.341 105.798 432.22 104.84C434.415 103.835 436.806 103.333 439.22 103.37C444.9 103.37 448.85 105.617 451.07 110.11C452.49 107.965 454.458 106.238 456.77 105.11C459.266 103.92 462.004 103.324 464.77 103.37C466.717 103.299 468.657 103.642 470.462 104.376C472.267 105.111 473.895 106.22 475.24 107.63C477.926 110.477 479.273 115.207 479.28 121.82Z" fill="white"/>
|
|
||||||
<path d="M502.21 132.44L511.67 103.84H523.37L505.7 149.34C504.985 151.312 504.102 153.219 503.06 155.04C502.312 156.331 501.231 157.398 499.93 158.13C498.401 158.889 496.706 159.25 495 159.18H484.39V150H490.39C491.439 150.081 492.486 149.836 493.39 149.3C494.197 148.556 494.808 147.625 495.17 146.59L496.17 143.95L480.9 103.84H492.52L502.21 132.44Z" fill="white"/>
|
|
||||||
<path d="M121.07 26.53L98.76 39.42L76.03 52.54L53.26 39.39L53.24 39.38L30.96 26.52L31.41 25.76L53.24 13.15L53.26 13.13L76.02 0L98.76 13.12L120.6 25.74L121.07 26.53Z" fill="white"/>
|
|
||||||
<path d="M53.26 172.41H98.76V110.9L121.51 97.78L137.93 88.29L152.02 80.15L129.27 40.75L98.76 58.36L92.43 62.02L76 71.49L59.6 62.03L53.26 58.37L53.24 58.36L22.75 40.75L0 80.16L14.09 88.3L30.5 97.78L53.24 110.9L53.26 110.91V137.18V172.41Z" fill="white"/>
|
|
||||||
</g>
|
|
||||||
<defs>
|
|
||||||
<clipPath id="clip0_23_9014">
|
|
||||||
<rect width="523.37" height="172.42" fill="white"/>
|
|
||||||
</clipPath>
|
|
||||||
</defs>
|
|
||||||
</svg>
|
|
||||||
|
Before Width: | Height: | Size: 11 KiB |
|
|
@ -1,5 +1,5 @@
|
||||||
<svg width="128" height="128" viewBox="0 0 128 128" fill="none" xmlns="http://www.w3.org/2000/svg">
|
<svg width="128" height="128" viewBox="0 0 128 128" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||||
<path d="M63.9919 0C60.8419 0 57.6937 1.20941 55.3022 3.60086L50.6045 8.29848C46.3616 12.5413 40.6045 14.9155 34.6041 14.9155H27.1926C20.4286 14.9155 14.902 20.4419 14.902 27.206V32.6496V34.6214C14.902 40.6217 12.5277 46.3747 8.28487 50.6175L3.58719 55.3152C-1.19573 60.0981 -1.19573 67.9196 3.58719 72.7025L8.28487 77.4001C12.5277 81.643 14.902 87.3919 14.902 93.3922V100.808C14.902 107.572 20.4286 113.098 27.1926 113.098H34.6041C40.6045 113.098 46.3616 115.476 50.6045 119.719L55.3022 124.413C60.0851 129.196 67.8988 129.196 72.6817 124.413L77.3834 119.719C81.6263 115.476 87.3795 113.098 93.3798 113.098H100.791C107.555 113.098 113.082 107.572 113.082 100.808V93.3922C113.082 87.3919 115.476 81.643 119.719 77.4001L124.413 72.7025C129.196 67.9196 129.196 60.0981 124.413 55.3152L119.719 50.6175C115.476 46.3746 113.082 40.6217 113.082 34.6214V27.206C113.082 20.4419 107.555 14.9155 100.791 14.9155H93.3798C87.3795 14.9155 81.6263 12.5414 77.3834 8.29848L72.6817 3.60086C70.2902 1.20941 67.142 7.80299e-06 63.9919 0Z" fill="#9E2891" fill-opacity="0.2"/>
|
<path d="M63.9919 0C60.8419 0 57.6937 1.20941 55.3022 3.60086L50.6045 8.29848C46.3616 12.5413 40.6045 14.9155 34.6041 14.9155H27.1926C20.4286 14.9155 14.902 20.4419 14.902 27.206V32.6496V34.6214C14.902 40.6217 12.5277 46.3747 8.28487 50.6175L3.58719 55.3152C-1.19573 60.0981 -1.19573 67.9196 3.58719 72.7025L8.28487 77.4001C12.5277 81.643 14.902 87.3919 14.902 93.3922V100.808C14.902 107.572 20.4286 113.098 27.1926 113.098H34.6041C40.6045 113.098 46.3616 115.476 50.6045 119.719L55.3022 124.413C60.0851 129.196 67.8988 129.196 72.6817 124.413L77.3834 119.719C81.6263 115.476 87.3795 113.098 93.3798 113.098H100.791C107.555 113.098 113.082 107.572 113.082 100.808V93.3922C113.082 87.3919 115.476 81.643 119.719 77.4001L124.413 72.7025C129.196 67.9196 129.196 60.0981 124.413 55.3152L119.719 50.6175C115.476 46.3746 113.082 40.6217 113.082 34.6214V27.206C113.082 20.4419 107.555 14.9155 100.791 14.9155H93.3798C87.3795 14.9155 81.6263 12.5414 77.3834 8.29848L72.6817 3.60086C70.2902 1.20941 67.142 7.80299e-06 63.9919 0Z" fill="#18181B" fill-opacity="0.2"/>
|
||||||
<path d="M63.9929 8.00006C61.2366 8.00006 58.482 9.0583 56.3894 11.1508L52.2789 15.2612C48.5664 18.9737 43.5289 21.0511 38.2786 21.0511H31.7936C25.875 21.0511 21.0393 25.8867 21.0393 31.8053V36.5684V38.2938C21.0393 43.5441 18.9618 48.5779 15.2493 52.2904L11.1388 56.4009C6.95374 60.5859 6.95374 67.4297 11.1388 71.6148L15.2493 75.7252C18.9618 79.4377 21.0393 84.468 21.0393 89.7183V96.2068C21.0393 102.125 25.875 106.961 31.7936 106.961H38.2786C43.5289 106.961 48.5664 109.042 52.2789 112.754L56.3894 116.861C60.5745 121.046 67.4115 121.046 71.5965 116.861L75.7105 112.754C79.423 109.042 84.457 106.961 89.7073 106.961H96.1924C102.111 106.961 106.947 102.125 106.947 96.2068V89.7183C106.947 84.468 109.042 79.4377 112.754 75.7252L116.861 71.6148C121.046 67.4297 121.046 60.5859 116.861 56.4009L112.754 52.2904C109.042 48.5779 106.947 43.5441 106.947 38.2938V31.8053C106.947 25.8867 102.111 21.0511 96.1924 21.0511H89.7073C84.457 21.0511 79.423 18.9738 75.7105 15.2612L71.5965 11.1508C69.504 9.05829 66.7492 8.00007 63.9929 8.00006Z" fill="#9E2891"/>
|
<path d="M63.9929 8.00006C61.2366 8.00006 58.482 9.0583 56.3894 11.1508L52.2789 15.2612C48.5664 18.9737 43.5289 21.0511 38.2786 21.0511H31.7936C25.875 21.0511 21.0393 25.8867 21.0393 31.8053V36.5684V38.2938C21.0393 43.5441 18.9618 48.5779 15.2493 52.2904L11.1388 56.4009C6.95374 60.5859 6.95374 67.4297 11.1388 71.6148L15.2493 75.7252C18.9618 79.4377 21.0393 84.468 21.0393 89.7183V96.2068C21.0393 102.125 25.875 106.961 31.7936 106.961H38.2786C43.5289 106.961 48.5664 109.042 52.2789 112.754L56.3894 116.861C60.5745 121.046 67.4115 121.046 71.5965 116.861L75.7105 112.754C79.423 109.042 84.457 106.961 89.7073 106.961H96.1924C102.111 106.961 106.947 102.125 106.947 96.2068V89.7183C106.947 84.468 109.042 79.4377 112.754 75.7252L116.861 71.6148C121.046 67.4297 121.046 60.5859 116.861 56.4009L112.754 52.2904C109.042 48.5779 106.947 43.5441 106.947 38.2938V31.8053C106.947 25.8867 102.111 21.0511 96.1924 21.0511H89.7073C84.457 21.0511 79.423 18.9738 75.7105 15.2612L71.5965 11.1508C69.504 9.05829 66.7492 8.00007 63.9929 8.00006Z" fill="#18181B"/>
|
||||||
<path fill-rule="evenodd" clip-rule="evenodd" d="M81.9362 50.3204C82.8406 51.1118 82.9227 52.4904 82.1182 53.3832L59.4729 78.5182C58.6643 79.4157 57.2758 79.4727 56.3963 78.6448L43.2922 66.3084C42.475 65.5391 42.3968 64.2571 43.0979 63.3807C43.8716 62.4136 45.3123 62.2805 46.233 63.1087L56.4 72.2537C57.2836 73.0485 58.6439 72.9774 59.4399 72.095L78.9182 50.4986C79.7063 49.6246 81.0506 49.5454 81.9362 50.3204Z" fill="white"/>
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M81.9362 50.3204C82.8406 51.1118 82.9227 52.4904 82.1182 53.3832L59.4729 78.5182C58.6643 79.4157 57.2758 79.4727 56.3963 78.6448L43.2922 66.3084C42.475 65.5391 42.3968 64.2571 43.0979 63.3807C43.8716 62.4136 45.3123 62.2805 46.233 63.1087L56.4 72.2537C57.2836 73.0485 58.6439 72.9774 59.4399 72.095L78.9182 50.4986C79.7063 49.6246 81.0506 49.5454 81.9362 50.3204Z" fill="white"/>
|
||||||
</svg>
|
</svg>
|
||||||
|
|
|
||||||
|
Before Width: | Height: | Size: 2.6 KiB After Width: | Height: | Size: 2.6 KiB |
|
|
@ -18,17 +18,21 @@ import { Card, CardContent, CardHeader, CardTitle } from "../ui/card"
|
||||||
import { SensitiveChart, SensitiveRevealToggle, SensitiveValue } from "../ui/sensitive-value"
|
import { SensitiveChart, SensitiveRevealToggle, SensitiveValue } from "../ui/sensitive-value"
|
||||||
|
|
||||||
export const SUBSCRIPTION_CHART_COLORS = [
|
export const SUBSCRIPTION_CHART_COLORS = [
|
||||||
"#8E248D",
|
"#2563EB",
|
||||||
"#FFD23F",
|
"#0F766E",
|
||||||
"#1DE9B6",
|
"#C2410C",
|
||||||
"#60A5FA",
|
"#7C3AED",
|
||||||
"#C26FC0",
|
"#BE123C",
|
||||||
"#F97316",
|
"#15803D",
|
||||||
"#14B8A6",
|
"#A16207",
|
||||||
"#A78BFA",
|
"#0891B2",
|
||||||
|
"#4F46E5",
|
||||||
|
"#D97706",
|
||||||
|
"#DB2777",
|
||||||
|
"#65A30D",
|
||||||
]
|
]
|
||||||
|
|
||||||
const BRAND = "#8E248D"
|
const BRAND = "#2563EB"
|
||||||
|
|
||||||
const chartTooltipStyle = {
|
const chartTooltipStyle = {
|
||||||
borderRadius: 10,
|
borderRadius: 10,
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
import logoSrc from "../../assets/logo.svg";
|
import logoSrc from "../../assets/image.png";
|
||||||
|
|
||||||
export function BrandLogo({
|
export function BrandLogo({
|
||||||
className = "h-10",
|
className = "h-10",
|
||||||
|
|
@ -10,8 +10,10 @@ export function BrandLogo({
|
||||||
return (
|
return (
|
||||||
<img
|
<img
|
||||||
src={logoSrc}
|
src={logoSrc}
|
||||||
alt="Rezina Academy"
|
alt="Sirkul Makeup School and Studio logo"
|
||||||
className={`${className} ${variant === "dark" ? "brightness-0" : ""}`}
|
className={`${className} aspect-[3.15/1] object-cover object-[center_46%] ${
|
||||||
|
variant === "light" ? "brightness-0 invert" : "brightness-0"
|
||||||
|
}`}
|
||||||
/>
|
/>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -280,13 +280,13 @@ function DynamicImageSlot({
|
||||||
<div
|
<div
|
||||||
className={cn(
|
className={cn(
|
||||||
"relative mx-auto aspect-video max-h-48 w-full max-w-lg overflow-hidden rounded-lg border bg-white shadow-sm transition-colors",
|
"relative mx-auto aspect-video max-h-48 w-full max-w-lg overflow-hidden rounded-lg border bg-white shadow-sm transition-colors",
|
||||||
dragActive ? "border-[#9E2891] ring-2 ring-[#9E289133]" : "border-grayScale-200",
|
dragActive ? "border-[#27272A] ring-2 ring-[#27272A33]" : "border-grayScale-200",
|
||||||
)}
|
)}
|
||||||
>
|
>
|
||||||
<ResolvedImage src={value} alt="" className="h-full w-full object-contain" />
|
<ResolvedImage src={value} alt="" className="h-full w-full object-contain" />
|
||||||
<button
|
<button
|
||||||
type="button"
|
type="button"
|
||||||
className="absolute right-1.5 top-1.5 rounded-[6px] bg-white/95 p-1.5 text-[#9E2891] shadow-md hover:bg-white"
|
className="absolute right-1.5 top-1.5 rounded-[6px] bg-white/95 p-1.5 text-[#27272A] shadow-md hover:bg-white"
|
||||||
onClick={() => onChange("")}
|
onClick={() => onChange("")}
|
||||||
disabled={zoneDisabled}
|
disabled={zoneDisabled}
|
||||||
aria-label="Remove image"
|
aria-label="Remove image"
|
||||||
|
|
@ -332,9 +332,9 @@ function DynamicImageSlot({
|
||||||
if (file) void processFile(file)
|
if (file) void processFile(file)
|
||||||
}}
|
}}
|
||||||
className={cn(
|
className={cn(
|
||||||
"flex w-full cursor-pointer flex-col items-center justify-center rounded-[6px] border-2 border-dashed border-[#9E289133] bg-white p-4 text-center transition-colors",
|
"flex w-full cursor-pointer flex-col items-center justify-center rounded-[6px] border-2 border-dashed border-[#27272A33] bg-white p-4 text-center transition-colors",
|
||||||
"hover:border-[#9E289180] hover:bg-grayScale-50/30",
|
"hover:border-[#27272A80] hover:bg-grayScale-50/30",
|
||||||
dragActive && "border-[#9E2891] bg-[#9E289108]",
|
dragActive && "border-[#27272A] bg-[#27272A08]",
|
||||||
zoneDisabled && "cursor-not-allowed opacity-60",
|
zoneDisabled && "cursor-not-allowed opacity-60",
|
||||||
)}
|
)}
|
||||||
>
|
>
|
||||||
|
|
@ -344,9 +344,9 @@ function DynamicImageSlot({
|
||||||
</p>
|
</p>
|
||||||
) : (
|
) : (
|
||||||
<>
|
<>
|
||||||
<CloudUpload className="mb-3 h-9 w-9 text-[#9E2891]" strokeWidth={1.5} aria-hidden />
|
<CloudUpload className="mb-3 h-9 w-9 text-[#27272A]" strokeWidth={1.5} aria-hidden />
|
||||||
<p className="text-sm">
|
<p className="text-sm">
|
||||||
<span className="font-bold text-[#9E2891]">Click to upload</span>{" "}
|
<span className="font-bold text-[#27272A]">Click to upload</span>{" "}
|
||||||
<span className="text-grayScale-500">or paste a URL below</span>
|
<span className="text-grayScale-500">or paste a URL below</span>
|
||||||
</p>
|
</p>
|
||||||
<p className="mt-1 text-xs font-medium uppercase tracking-wider text-grayScale-400">
|
<p className="mt-1 text-xs font-medium uppercase tracking-wider text-grayScale-400">
|
||||||
|
|
@ -528,25 +528,25 @@ function DynamicAudioSlot({
|
||||||
disabled={zoneDisabled}
|
disabled={zoneDisabled}
|
||||||
/>
|
/>
|
||||||
{hasMedia ? (
|
{hasMedia ? (
|
||||||
<div className="flex items-center gap-2 rounded-lg border border-[#9E289140] bg-[#FAF5FF]/80 px-2 py-2 shadow-sm">
|
<div className="flex items-center gap-2 rounded-lg border border-[#27272A40] bg-[#F4F4F5]/80 px-2 py-2 shadow-sm">
|
||||||
<button
|
<button
|
||||||
type="button"
|
type="button"
|
||||||
onClick={() => void togglePlay()}
|
onClick={() => void togglePlay()}
|
||||||
disabled={!resolvedSrc || zoneDisabled}
|
disabled={!resolvedSrc || zoneDisabled}
|
||||||
className="grid h-9 w-9 shrink-0 place-items-center rounded-full bg-[#9E2891] text-white shadow-sm transition hover:bg-[#8a217d] disabled:opacity-40"
|
className="grid h-9 w-9 shrink-0 place-items-center rounded-full bg-[#27272A] text-white shadow-sm transition hover:bg-[#8a217d] disabled:opacity-40"
|
||||||
aria-label={playing ? "Pause" : "Play"}
|
aria-label={playing ? "Pause" : "Play"}
|
||||||
>
|
>
|
||||||
{playing ? <Pause className="h-4 w-4" /> : <Play className="h-4 w-4 ml-0.5" />}
|
{playing ? <Pause className="h-4 w-4" /> : <Play className="h-4 w-4 ml-0.5" />}
|
||||||
</button>
|
</button>
|
||||||
<div className="min-w-0 flex-1">
|
<div className="min-w-0 flex-1">
|
||||||
<WaveformDecor active={playing} />
|
<WaveformDecor active={playing} />
|
||||||
<p className="mt-0.5 truncate text-[11px] font-medium leading-tight text-[#9E2891]">
|
<p className="mt-0.5 truncate text-[11px] font-medium leading-tight text-[#27272A]">
|
||||||
{fileLabelFromValue(value)}
|
{fileLabelFromValue(value)}
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
<button
|
<button
|
||||||
type="button"
|
type="button"
|
||||||
className="shrink-0 rounded-[6px] p-1.5 text-[#9E2891] transition hover:bg-white/80"
|
className="shrink-0 rounded-[6px] p-1.5 text-[#27272A] transition hover:bg-white/80"
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
audioRef.current?.pause()
|
audioRef.current?.pause()
|
||||||
setPlaying(false)
|
setPlaying(false)
|
||||||
|
|
@ -596,9 +596,9 @@ function DynamicAudioSlot({
|
||||||
if (file) void processFile(file)
|
if (file) void processFile(file)
|
||||||
}}
|
}}
|
||||||
className={cn(
|
className={cn(
|
||||||
"flex w-full cursor-pointer flex-col items-center justify-center rounded-[6px] border-2 border-dashed border-[#9E289133] bg-white p-4 text-center transition-colors",
|
"flex w-full cursor-pointer flex-col items-center justify-center rounded-[6px] border-2 border-dashed border-[#27272A33] bg-white p-4 text-center transition-colors",
|
||||||
"hover:border-[#9E289180] hover:bg-grayScale-50/30",
|
"hover:border-[#27272A80] hover:bg-grayScale-50/30",
|
||||||
dragActive && "border-[#9E2891] bg-[#9E289108]",
|
dragActive && "border-[#27272A] bg-[#27272A08]",
|
||||||
zoneDisabled && "cursor-not-allowed opacity-60",
|
zoneDisabled && "cursor-not-allowed opacity-60",
|
||||||
)}
|
)}
|
||||||
>
|
>
|
||||||
|
|
@ -608,9 +608,9 @@ function DynamicAudioSlot({
|
||||||
</p>
|
</p>
|
||||||
) : (
|
) : (
|
||||||
<>
|
<>
|
||||||
<CloudUpload className="mb-3 h-9 w-9 text-[#9E2891]" strokeWidth={1.5} aria-hidden />
|
<CloudUpload className="mb-3 h-9 w-9 text-[#27272A]" strokeWidth={1.5} aria-hidden />
|
||||||
<p className="text-sm">
|
<p className="text-sm">
|
||||||
<span className="font-bold text-[#9E2891]">Click to upload</span>{" "}
|
<span className="font-bold text-[#27272A]">Click to upload</span>{" "}
|
||||||
<span className="text-grayScale-500">or paste a URL below</span>
|
<span className="text-grayScale-500">or paste a URL below</span>
|
||||||
</p>
|
</p>
|
||||||
<p className="mt-1 text-xs font-medium uppercase tracking-wider text-grayScale-400">
|
<p className="mt-1 text-xs font-medium uppercase tracking-wider text-grayScale-400">
|
||||||
|
|
|
||||||
|
|
@ -154,7 +154,7 @@ export function DynamicTableBuilder({
|
||||||
disabled={disabled}
|
disabled={disabled}
|
||||||
onChange={(e) => updateCell(rowIndex, colIndex, e.target.value)}
|
onChange={(e) => updateCell(rowIndex, colIndex, e.target.value)}
|
||||||
placeholder="Cell value"
|
placeholder="Cell value"
|
||||||
className="h-9 border-grayScale-200 bg-[#F8FAFC] text-sm"
|
className="h-9 border-grayScale-200 bg-[#F4F4F5] text-sm"
|
||||||
/>
|
/>
|
||||||
</td>
|
</td>
|
||||||
))}
|
))}
|
||||||
|
|
|
||||||
|
|
@ -1162,7 +1162,7 @@ export function PracticeQuestionEditorFields({
|
||||||
style={{
|
style={{
|
||||||
background:
|
background:
|
||||||
segmentIdx < activeSegments
|
segmentIdx < activeSegments
|
||||||
? "linear-gradient(180deg, #9E2891 0%, #6A1B9A 100%)"
|
? "linear-gradient(180deg, #27272A 0%, #18181B 100%)"
|
||||||
: "rgba(189, 189, 189, 0.35)",
|
: "rgba(189, 189, 189, 0.35)",
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
|
|
|
||||||
|
|
@ -27,7 +27,7 @@ export function StatCard({
|
||||||
<Card
|
<Card
|
||||||
className={cn(
|
className={cn(
|
||||||
analyticsSoftCardClass,
|
analyticsSoftCardClass,
|
||||||
"transition-all duration-200 hover:-translate-y-0.5 hover:shadow-[0_12px_32px_rgba(15,23,42,0.08)]",
|
"ui-3d-card-interactive",
|
||||||
)}
|
)}
|
||||||
>
|
>
|
||||||
<CardContent className="p-5">
|
<CardContent className="p-5">
|
||||||
|
|
|
||||||
|
|
@ -198,8 +198,7 @@ export function Sidebar({
|
||||||
|
|
||||||
<aside
|
<aside
|
||||||
className={cn(
|
className={cn(
|
||||||
"group fixed left-0 top-0 z-50 flex h-screen flex-col border-r border-grayScale-200 bg-white py-5 shadow-[inset_-1px_0_0_rgba(0,0,0,0.04)] transition-all duration-300",
|
"sidebar-shell group fixed left-0 top-0 z-50 flex h-screen flex-col border-r border-grayScale-200 py-5 transition-all duration-300 dark:border-grayScale-200/20",
|
||||||
"dark:bg-grayScale-50 dark:border-grayScale-200/20",
|
|
||||||
"w-[264px] px-4 lg:translate-x-0",
|
"w-[264px] px-4 lg:translate-x-0",
|
||||||
isCollapsed && "lg:w-[88px] lg:px-2",
|
isCollapsed && "lg:w-[88px] lg:px-2",
|
||||||
isOpen ? "translate-x-0" : "-translate-x-full",
|
isOpen ? "translate-x-0" : "-translate-x-full",
|
||||||
|
|
@ -207,39 +206,56 @@ export function Sidebar({
|
||||||
>
|
>
|
||||||
<div
|
<div
|
||||||
className={cn(
|
className={cn(
|
||||||
"flex items-center justify-between px-2",
|
"sidebar-brand-header shrink-0 rounded-2xl p-3",
|
||||||
isCollapsed && "flex-col items-center gap-2",
|
isCollapsed && "p-2",
|
||||||
)}
|
)}
|
||||||
>
|
>
|
||||||
<SidebarLogo collapsed={isCollapsed} />
|
<div className={cn("flex items-center justify-between gap-2", isCollapsed && "flex-col")}>
|
||||||
{isCollapsed && (
|
<SidebarLogo collapsed={isCollapsed} />
|
||||||
|
{isCollapsed && (
|
||||||
|
<button
|
||||||
|
type="button"
|
||||||
|
className="sidebar-control grid h-10 w-10 place-items-center rounded-lg border border-grayScale-200 text-grayScale-400 transition-all hover:bg-grayScale-100 hover:text-brand-600 dark:border-grayScale-200/20 dark:hover:bg-white/5 dark:hover:text-brand-400"
|
||||||
|
onClick={onToggleCollapse}
|
||||||
|
aria-label="Expand sidebar"
|
||||||
|
>
|
||||||
|
<ChevronRight className="h-4 w-4" />
|
||||||
|
</button>
|
||||||
|
)}
|
||||||
|
{!isCollapsed && (
|
||||||
|
<button
|
||||||
|
type="button"
|
||||||
|
className="sidebar-control hidden h-10 w-10 place-items-center rounded-lg border border-grayScale-200 text-grayScale-400 transition-all hover:bg-grayScale-100 hover:text-brand-600 lg:grid dark:border-grayScale-200/20 dark:hover:bg-white/5 dark:hover:text-brand-400"
|
||||||
|
onClick={onToggleCollapse}
|
||||||
|
aria-label="Collapse sidebar"
|
||||||
|
>
|
||||||
|
<ChevronLeft className="h-4 w-4" />
|
||||||
|
</button>
|
||||||
|
)}
|
||||||
<button
|
<button
|
||||||
type="button"
|
type="button"
|
||||||
className="grid h-10 w-10 place-items-center rounded-[6px] border border-grayScale-200 text-grayScale-400 transition-all hover:bg-grayScale-100 hover:text-brand-600 dark:border-grayScale-200/20 dark:hover:bg-white/5 dark:hover:text-brand-400"
|
className="sidebar-control grid h-7 w-7 place-items-center rounded-lg text-grayScale-400 hover:bg-grayScale-100 hover:text-brand-600 lg:hidden dark:hover:bg-white/5 dark:hover:text-brand-400"
|
||||||
onClick={onToggleCollapse}
|
onClick={onClose}
|
||||||
aria-label="Expand sidebar"
|
aria-label="Close sidebar"
|
||||||
>
|
>
|
||||||
<ChevronRight className="h-4 w-4" />
|
<X className="h-4 w-4" />
|
||||||
</button>
|
</button>
|
||||||
)}
|
</div>
|
||||||
{!isCollapsed && (
|
{!isCollapsed && (
|
||||||
<button
|
<div className="sidebar-workspace-label mt-3 flex items-center justify-between gap-2 rounded-xl px-3 py-2">
|
||||||
type="button"
|
<div className="min-w-0">
|
||||||
className="hidden h-10 w-10 rounded-[6px] place-items-center border border-grayScale-200 text-grayScale-400 transition-all hover:bg-grayScale-100 hover:text-brand-600 lg:grid dark:border-grayScale-200/20 dark:hover:bg-white/5 dark:hover:text-brand-400"
|
<p className="text-[9px] font-bold uppercase tracking-[0.16em] text-grayScale-400">
|
||||||
onClick={onToggleCollapse}
|
Admin workspace
|
||||||
aria-label="Collapse sidebar"
|
</p>
|
||||||
>
|
<p className="mt-0.5 truncate text-xs font-semibold text-grayScale-600">
|
||||||
<ChevronLeft className="h-4 w-4" />
|
Learning operations
|
||||||
</button>
|
</p>
|
||||||
|
</div>
|
||||||
|
<span className="grid h-7 w-7 shrink-0 place-items-center rounded-lg bg-grayScale-100 text-[10px] font-bold tracking-wide text-grayScale-500 dark:bg-white/5 dark:text-grayScale-300">
|
||||||
|
LMS
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
)}
|
)}
|
||||||
<button
|
|
||||||
type="button"
|
|
||||||
className="grid h-7 w-7 place-items-center rounded-[6px] text-grayScale-400 hover:bg-grayScale-100 hover:text-brand-600 lg:hidden dark:hover:bg-white/5 dark:hover:text-brand-400"
|
|
||||||
onClick={onClose}
|
|
||||||
aria-label="Close sidebar"
|
|
||||||
>
|
|
||||||
<X className="h-4 w-4" />
|
|
||||||
</button>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<nav className="mt-6 flex-1 space-y-0.5 overflow-y-auto scrollbar-none">
|
<nav className="mt-6 flex-1 space-y-0.5 overflow-y-auto scrollbar-none">
|
||||||
|
|
@ -279,7 +295,7 @@ export function Sidebar({
|
||||||
<p
|
<p
|
||||||
key={`section-${entry.label}`}
|
key={`section-${entry.label}`}
|
||||||
className={cn(
|
className={cn(
|
||||||
"mb-1 px-3 pt-4 text-[11px] font-bold uppercase tracking-[0.08em] text-grayScale-400 dark:text-grayScale-400/70",
|
"mb-1 flex items-center gap-2 px-3 pt-4 text-[10px] font-bold uppercase tracking-[0.12em] text-grayScale-400 after:h-px after:flex-1 after:bg-grayScale-200 after:content-[''] dark:text-grayScale-400/70 dark:after:bg-grayScale-200/30",
|
||||||
index === 0 && "pt-0",
|
index === 0 && "pt-0",
|
||||||
)}
|
)}
|
||||||
>
|
>
|
||||||
|
|
@ -370,11 +386,11 @@ export function Sidebar({
|
||||||
onClick={onClose}
|
onClick={onClose}
|
||||||
className={({ isActive }) =>
|
className={({ isActive }) =>
|
||||||
cn(
|
cn(
|
||||||
"relative group flex items-center gap-3 rounded-lg px-3 py-2 text-sm font-medium text-grayScale-600 transition",
|
"sidebar-nav-item relative group flex items-center gap-3 rounded-xl px-3 py-2 text-sm font-medium text-grayScale-600 transition",
|
||||||
isCollapsed && "justify-center gap-0 p-2",
|
isCollapsed && "justify-center gap-0 p-2",
|
||||||
"hover:bg-grayScale-100 hover:text-brand-600 dark:text-grayScale-400 dark:hover:bg-white/5 dark:hover:text-brand-400",
|
"hover:bg-grayScale-100 hover:text-brand-600 dark:text-grayScale-400 dark:hover:bg-white/5 dark:hover:text-brand-400",
|
||||||
isActive &&
|
isActive &&
|
||||||
"bg-brand-500/10 hover:bg-brand-500/10 dark:bg-brand-500/15 dark:hover:bg-brand-500/15",
|
"sidebar-nav-item-active bg-brand-500/10 hover:bg-brand-500/10 dark:bg-brand-500/15 dark:hover:bg-brand-500/15",
|
||||||
isActive ? "text-[#000] dark:text-white" : "",
|
isActive ? "text-[#000] dark:text-white" : "",
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
@ -384,9 +400,9 @@ export function Sidebar({
|
||||||
<>
|
<>
|
||||||
<span
|
<span
|
||||||
className={cn(
|
className={cn(
|
||||||
"flex h-9 w-9 shrink-0 items-center justify-center rounded-lg bg-grayScale-50 text-grayScale-500 transition dark:bg-grayScale-200/10 dark:text-grayScale-400",
|
"sidebar-nav-icon flex h-9 w-9 shrink-0 items-center justify-center rounded-lg bg-grayScale-50 text-grayScale-500 transition dark:bg-grayScale-200/10 dark:text-grayScale-400",
|
||||||
isActive &&
|
isActive &&
|
||||||
"bg-brand-500 text-white dark:bg-brand-500 dark:text-white",
|
"sidebar-nav-icon-active bg-brand-500 text-white dark:bg-brand-500 dark:text-white",
|
||||||
)}
|
)}
|
||||||
>
|
>
|
||||||
<Icon className="h-4 w-4" />
|
<Icon className="h-4 w-4" />
|
||||||
|
|
@ -402,7 +418,7 @@ export function Sidebar({
|
||||||
</span>
|
</span>
|
||||||
)}
|
)}
|
||||||
{isActive && (
|
{isActive && (
|
||||||
<span className="absolute right-1.5 top-1/2 -translate-y-1/2 h-5 w-[3px] rounded-full bg-brand-500" />
|
<span className="sidebar-active-indicator absolute left-1 top-1/2 h-5 w-[3px] -translate-y-1/2 rounded-full bg-brand-500" />
|
||||||
)}
|
)}
|
||||||
</>
|
</>
|
||||||
)}
|
)}
|
||||||
|
|
@ -424,7 +440,7 @@ export function Sidebar({
|
||||||
window.location.href = "/login";
|
window.location.href = "/login";
|
||||||
}}
|
}}
|
||||||
className={cn(
|
className={cn(
|
||||||
"flex w-full items-center gap-3 rounded-[6px] px-3 py-2 text-sm font-medium text-grayScale-500 transition hover:bg-grayScale-100 hover:text-brand-600 dark:text-grayScale-400 dark:hover:bg-white/5 dark:hover:text-brand-400",
|
"sidebar-logout flex w-full items-center gap-3 rounded-xl px-3 py-2 text-sm font-medium text-grayScale-500 transition hover:bg-grayScale-100 hover:text-brand-600 dark:text-grayScale-400 dark:hover:bg-white/5 dark:hover:text-brand-400",
|
||||||
isCollapsed && "justify-center gap-0 p-2",
|
isCollapsed && "justify-center gap-0 p-2",
|
||||||
)}
|
)}
|
||||||
title={isCollapsed ? "Logout" : undefined}
|
title={isCollapsed ? "Logout" : undefined}
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,4 @@
|
||||||
import { BrandLogo } from "../brand/BrandLogo"
|
import { BrandLogo } from "../brand/BrandLogo"
|
||||||
import logoSymbolSrc from "../../assets/logo-icon.svg"
|
|
||||||
import { useTheme } from "../../contexts/ThemeContext"
|
import { useTheme } from "../../contexts/ThemeContext"
|
||||||
|
|
||||||
type SidebarLogoProps = {
|
type SidebarLogoProps = {
|
||||||
|
|
@ -11,12 +10,8 @@ export function SidebarLogo({ collapsed }: SidebarLogoProps) {
|
||||||
|
|
||||||
if (collapsed) {
|
if (collapsed) {
|
||||||
return (
|
return (
|
||||||
<span className="flex h-10 w-10 items-center justify-center rounded-full bg-brand-500">
|
<span className="flex h-10 w-10 items-center justify-center overflow-hidden rounded-full bg-brand-500">
|
||||||
<img
|
<BrandLogo variant="light" className="h-3" />
|
||||||
src={logoSymbolSrc}
|
|
||||||
alt="Rezina"
|
|
||||||
className="h-6 w-6"
|
|
||||||
/>
|
|
||||||
</span>
|
</span>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -59,10 +59,10 @@ export function SidebarNavGroup({
|
||||||
onClick={onNavigate}
|
onClick={onNavigate}
|
||||||
className={({ isActive }) =>
|
className={({ isActive }) =>
|
||||||
cn(
|
cn(
|
||||||
"relative group flex items-center justify-center rounded-lg p-2 text-sm font-medium text-grayScale-600 transition",
|
"sidebar-nav-item relative group flex items-center justify-center rounded-xl p-2 text-sm font-medium text-grayScale-600 transition",
|
||||||
"hover:bg-grayScale-100 hover:text-brand-600 dark:text-grayScale-400 dark:hover:bg-white/5 dark:hover:text-brand-400",
|
"hover:bg-grayScale-100 hover:text-brand-600 dark:text-grayScale-400 dark:hover:bg-white/5 dark:hover:text-brand-400",
|
||||||
isActive &&
|
isActive &&
|
||||||
"bg-brand-500/10 text-brand-600 hover:bg-brand-500/10 hover:text-brand-600 dark:bg-brand-500/15 dark:text-brand-400 dark:hover:bg-brand-500/15 dark:hover:text-brand-400",
|
"sidebar-nav-item-active bg-brand-500/10 text-brand-600 hover:bg-brand-500/10 hover:text-brand-600 dark:bg-brand-500/15 dark:text-brand-400 dark:hover:bg-brand-500/15 dark:hover:text-brand-400",
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
title={label}
|
title={label}
|
||||||
|
|
@ -70,9 +70,9 @@ export function SidebarNavGroup({
|
||||||
{({ isActive }) => (
|
{({ isActive }) => (
|
||||||
<span
|
<span
|
||||||
className={cn(
|
className={cn(
|
||||||
"relative flex h-9 w-9 items-center justify-center rounded-lg bg-grayScale-50 text-grayScale-500 transition dark:bg-grayScale-200/10 dark:text-grayScale-400",
|
"sidebar-nav-icon relative flex h-9 w-9 items-center justify-center rounded-lg bg-grayScale-50 text-grayScale-500 transition dark:bg-grayScale-200/10 dark:text-grayScale-400",
|
||||||
isActive &&
|
isActive &&
|
||||||
"bg-brand-500 text-white dark:bg-brand-500 dark:text-white",
|
"sidebar-nav-icon-active bg-brand-500 text-white dark:bg-brand-500 dark:text-white",
|
||||||
)}
|
)}
|
||||||
>
|
>
|
||||||
<Icon className="h-4 w-4" />
|
<Icon className="h-4 w-4" />
|
||||||
|
|
@ -91,17 +91,17 @@ export function SidebarNavGroup({
|
||||||
aria-controls={panelId}
|
aria-controls={panelId}
|
||||||
onClick={() => setExpanded((open) => !open)}
|
onClick={() => setExpanded((open) => !open)}
|
||||||
className={cn(
|
className={cn(
|
||||||
"relative group flex w-full items-center gap-3 rounded-[6px] px-3 py-2 text-left text-sm font-medium text-grayScale-600 transition",
|
"sidebar-nav-item relative group flex w-full items-center gap-3 rounded-xl px-3 py-2 text-left text-sm font-medium text-grayScale-600 transition",
|
||||||
"hover:bg-grayScale-100 hover:text-brand-600 dark:text-grayScale-400 dark:hover:bg-white/5 dark:hover:text-brand-400",
|
"hover:bg-grayScale-100 hover:text-brand-600 dark:text-grayScale-400 dark:hover:bg-white/5 dark:hover:text-brand-400",
|
||||||
isSectionActive &&
|
isSectionActive &&
|
||||||
"bg-brand-500/10 text-black dark:bg-brand-500/15 dark:text-white",
|
"sidebar-nav-item-active bg-brand-500/10 text-black dark:bg-brand-500/15 dark:text-white",
|
||||||
)}
|
)}
|
||||||
>
|
>
|
||||||
<span
|
<span
|
||||||
className={cn(
|
className={cn(
|
||||||
"flex h-9 w-9 shrink-0 items-center justify-center rounded-lg bg-grayScale-50 text-grayScale-500 transition dark:bg-grayScale-200/10 dark:text-grayScale-400",
|
"sidebar-nav-icon flex h-9 w-9 shrink-0 items-center justify-center rounded-lg bg-grayScale-50 text-grayScale-500 transition dark:bg-grayScale-200/10 dark:text-grayScale-400",
|
||||||
isSectionActive &&
|
isSectionActive &&
|
||||||
"bg-brand-500 text-white dark:bg-brand-500 dark:text-white",
|
"sidebar-nav-icon-active bg-brand-500 text-white dark:bg-brand-500 dark:text-white",
|
||||||
)}
|
)}
|
||||||
>
|
>
|
||||||
<Icon className="h-4 w-4" />
|
<Icon className="h-4 w-4" />
|
||||||
|
|
@ -122,7 +122,7 @@ export function SidebarNavGroup({
|
||||||
)}
|
)}
|
||||||
/>
|
/>
|
||||||
{isSectionActive && (
|
{isSectionActive && (
|
||||||
<span className="absolute right-1.5 top-1/2 -translate-y-1/2 h-5 w-[3px] rounded-full bg-brand-500" />
|
<span className="sidebar-active-indicator absolute left-1 top-1/2 h-5 w-[3px] -translate-y-1/2 rounded-full bg-brand-500" />
|
||||||
)}
|
)}
|
||||||
</button>
|
</button>
|
||||||
|
|
||||||
|
|
@ -143,9 +143,9 @@ export function SidebarNavGroup({
|
||||||
onClick={onNavigate}
|
onClick={onNavigate}
|
||||||
className={({ isActive }) =>
|
className={({ isActive }) =>
|
||||||
cn(
|
cn(
|
||||||
"block rounded-lg px-3 py-1.5 text-sm font-medium transition",
|
"sidebar-nav-item block rounded-lg px-3 py-1.5 text-sm font-medium transition",
|
||||||
isActive
|
isActive
|
||||||
? "bg-brand-500/10 text-black font-medium hover:bg-brand-500/10 hover:text-black dark:bg-brand-500/15 dark:text-white dark:hover:bg-brand-500/15 dark:hover:text-white"
|
? "sidebar-subnav-item-active bg-brand-500/10 text-black font-medium hover:bg-brand-500/10 hover:text-black dark:bg-brand-500/15 dark:text-white dark:hover:bg-brand-500/15 dark:hover:text-white"
|
||||||
: "text-grayScale-500 hover:bg-grayScale-100 hover:text-brand-600 dark:text-grayScale-400 dark:hover:bg-white/5 dark:hover:text-brand-400",
|
: "text-grayScale-500 hover:bg-grayScale-100 hover:text-brand-600 dark:text-grayScale-400 dark:hover:bg-white/5 dark:hover:text-brand-400",
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
import * as React from "react"
|
import * as React from "react"
|
||||||
import * as AvatarPrimitive from "@radix-ui/react-avatar"
|
import * as AvatarPrimitive from "@radix-ui/react-avatar"
|
||||||
|
|
||||||
import { cn } from "../../lib/utils"
|
import { cn } from "@/lib/utils"
|
||||||
|
|
||||||
export const Avatar = React.forwardRef<
|
export const Avatar = React.forwardRef<
|
||||||
React.ElementRef<typeof AvatarPrimitive.Root>,
|
React.ElementRef<typeof AvatarPrimitive.Root>,
|
||||||
|
|
|
||||||
|
|
@ -1,15 +1,15 @@
|
||||||
import { cva, type VariantProps } from "class-variance-authority"
|
import { cva, type VariantProps } from "class-variance-authority"
|
||||||
import * as React from "react"
|
import * as React from "react"
|
||||||
|
|
||||||
import { cn } from "../../lib/utils"
|
import { cn } from "@/lib/utils"
|
||||||
|
|
||||||
const badgeVariants = cva(
|
const badgeVariants = cva(
|
||||||
"inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors",
|
"inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors",
|
||||||
{
|
{
|
||||||
variants: {
|
variants: {
|
||||||
variant: {
|
variant: {
|
||||||
default: "border-transparent bg-brand-500 text-white",
|
default: "border-transparent bg-primary text-primary-foreground",
|
||||||
secondary: "border-transparent bg-grayScale-200 text-grayScale-600",
|
secondary: "border-transparent bg-secondary text-secondary-foreground",
|
||||||
warning: "border-transparent bg-gold-600 text-white",
|
warning: "border-transparent bg-gold-600 text-white",
|
||||||
success: "border-transparent bg-mint-500 text-white",
|
success: "border-transparent bg-mint-500 text-white",
|
||||||
info: "border-transparent bg-sky-500 text-white",
|
info: "border-transparent bg-sky-500 text-white",
|
||||||
|
|
|
||||||
|
|
@ -2,25 +2,26 @@ import * as React from "react"
|
||||||
import { Slot } from "@radix-ui/react-slot"
|
import { Slot } from "@radix-ui/react-slot"
|
||||||
import { cva, type VariantProps } from "class-variance-authority"
|
import { cva, type VariantProps } from "class-variance-authority"
|
||||||
|
|
||||||
import { cn } from "../../lib/utils"
|
import { cn } from "@/lib/utils"
|
||||||
|
|
||||||
const buttonVariants = cva(
|
const buttonVariants = cva(
|
||||||
"inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-[6px] text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50",
|
"inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:pointer-events-none disabled:opacity-50",
|
||||||
{
|
{
|
||||||
variants: {
|
variants: {
|
||||||
variant: {
|
variant: {
|
||||||
default: "bg-primary text-white hover:bg-brand-600 hover:text-white",
|
default: "ui-3d-button bg-primary text-primary-foreground hover:bg-primary/90",
|
||||||
brand: "bg-brand-500 text-white hover:bg-brand-600 hover:text-white",
|
brand: "ui-3d-button bg-brand-500 text-white hover:bg-brand-600 hover:text-white",
|
||||||
secondary: "bg-secondary text-secondary-foreground hover:bg-secondary/80",
|
secondary: "ui-3d-button bg-secondary text-secondary-foreground hover:bg-secondary/80",
|
||||||
outline: "border bg-background hover:bg-grayScale-100",
|
outline: "ui-3d-button border border-input bg-background hover:bg-accent hover:text-accent-foreground",
|
||||||
ghost: "hover:bg-grayScale-100",
|
ghost: "hover:bg-accent hover:text-accent-foreground",
|
||||||
destructive: "bg-destructive text-destructive-foreground hover:bg-destructive/90",
|
destructive: "ui-3d-button bg-destructive text-destructive-foreground hover:bg-destructive/90",
|
||||||
},
|
},
|
||||||
size: {
|
size: {
|
||||||
default: "h-10 px-4 py-2",
|
default: "h-10 px-4 py-2",
|
||||||
sm: "h-9 px-3",
|
sm: "h-9 px-3",
|
||||||
lg: "h-11 px-6",
|
lg: "h-11 px-6",
|
||||||
icon: "h-10 w-10",
|
icon: "h-10 w-10",
|
||||||
|
"icon-sm": "h-8 w-8",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
defaultVariants: {
|
defaultVariants: {
|
||||||
|
|
|
||||||
|
|
@ -1,11 +1,11 @@
|
||||||
import * as React from "react"
|
import * as React from "react"
|
||||||
import { cn } from "../../lib/utils"
|
import { cn } from "@/lib/utils"
|
||||||
|
|
||||||
export const Card = React.forwardRef<HTMLDivElement, React.HTMLAttributes<HTMLDivElement>>(
|
export const Card = React.forwardRef<HTMLDivElement, React.HTMLAttributes<HTMLDivElement>>(
|
||||||
({ className, ...props }, ref) => (
|
({ className, ...props }, ref) => (
|
||||||
<div
|
<div
|
||||||
ref={ref}
|
ref={ref}
|
||||||
className={cn("rounded-2xl border bg-card text-card-foreground shadow-soft", className)}
|
className={cn("ui-3d-card rounded-xl border bg-card text-card-foreground", className)}
|
||||||
{...props}
|
{...props}
|
||||||
/>
|
/>
|
||||||
),
|
),
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
import * as React from "react";
|
import * as React from "react";
|
||||||
import * as DialogPrimitive from "@radix-ui/react-dialog";
|
import * as DialogPrimitive from "@radix-ui/react-dialog";
|
||||||
import { X } from "lucide-react";
|
import { X } from "lucide-react";
|
||||||
import { cn } from "../../lib/utils";
|
import { cn } from "@/lib/utils";
|
||||||
|
|
||||||
const Dialog = DialogPrimitive.Root;
|
const Dialog = DialogPrimitive.Root;
|
||||||
const DialogTrigger = DialogPrimitive.Trigger;
|
const DialogTrigger = DialogPrimitive.Trigger;
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@ import * as React from "react"
|
||||||
import * as DropdownMenuPrimitive from "@radix-ui/react-dropdown-menu"
|
import * as DropdownMenuPrimitive from "@radix-ui/react-dropdown-menu"
|
||||||
import { Check, ChevronRight, Circle } from "lucide-react"
|
import { Check, ChevronRight, Circle } from "lucide-react"
|
||||||
|
|
||||||
import { cn } from "../../lib/utils"
|
import { cn } from "@/lib/utils"
|
||||||
|
|
||||||
export const DropdownMenu = DropdownMenuPrimitive.Root
|
export const DropdownMenu = DropdownMenuPrimitive.Root
|
||||||
export const DropdownMenuTrigger = DropdownMenuPrimitive.Trigger
|
export const DropdownMenuTrigger = DropdownMenuPrimitive.Trigger
|
||||||
|
|
@ -18,7 +18,7 @@ export const DropdownMenuSubTrigger = React.forwardRef<
|
||||||
<DropdownMenuPrimitive.SubTrigger
|
<DropdownMenuPrimitive.SubTrigger
|
||||||
ref={ref}
|
ref={ref}
|
||||||
className={cn(
|
className={cn(
|
||||||
"flex cursor-default select-none items-center rounded-lg px-2.5 py-2 text-sm text-grayScale-600 outline-none transition-colors focus:bg-brand-100/40 data-[state=open]:bg-brand-100/40",
|
"flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm text-popover-foreground outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent",
|
||||||
inset && "pl-8",
|
inset && "pl-8",
|
||||||
className,
|
className,
|
||||||
)}
|
)}
|
||||||
|
|
@ -37,7 +37,7 @@ export const DropdownMenuSubContent = React.forwardRef<
|
||||||
<DropdownMenuPrimitive.SubContent
|
<DropdownMenuPrimitive.SubContent
|
||||||
ref={ref}
|
ref={ref}
|
||||||
className={cn(
|
className={cn(
|
||||||
"z-50 min-w-[9rem] overflow-hidden rounded-xl border border-grayScale-200 bg-white p-1.5 text-grayScale-600 shadow-soft",
|
"z-50 min-w-[9rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md",
|
||||||
className,
|
className,
|
||||||
)}
|
)}
|
||||||
{...props}
|
{...props}
|
||||||
|
|
@ -54,7 +54,7 @@ export const DropdownMenuContent = React.forwardRef<
|
||||||
ref={ref}
|
ref={ref}
|
||||||
sideOffset={sideOffset}
|
sideOffset={sideOffset}
|
||||||
className={cn(
|
className={cn(
|
||||||
"z-50 min-w-[11rem] overflow-hidden rounded-xl border border-grayScale-200 bg-white p-1.5 text-grayScale-600 shadow-soft",
|
"z-50 min-w-[11rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md",
|
||||||
className,
|
className,
|
||||||
)}
|
)}
|
||||||
{...props}
|
{...props}
|
||||||
|
|
@ -70,7 +70,7 @@ export const DropdownMenuItem = React.forwardRef<
|
||||||
<DropdownMenuPrimitive.Item
|
<DropdownMenuPrimitive.Item
|
||||||
ref={ref}
|
ref={ref}
|
||||||
className={cn(
|
className={cn(
|
||||||
"relative flex cursor-default select-none items-center rounded-lg px-2.5 py-2 text-sm outline-none transition-colors focus:bg-brand-100/40 data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
|
"relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
|
||||||
inset && "pl-8",
|
inset && "pl-8",
|
||||||
className,
|
className,
|
||||||
)}
|
)}
|
||||||
|
|
@ -86,7 +86,7 @@ export const DropdownMenuCheckboxItem = React.forwardRef<
|
||||||
<DropdownMenuPrimitive.CheckboxItem
|
<DropdownMenuPrimitive.CheckboxItem
|
||||||
ref={ref}
|
ref={ref}
|
||||||
className={cn(
|
className={cn(
|
||||||
"relative flex cursor-default select-none items-center rounded-lg py-2 pl-8 pr-2.5 text-sm outline-none transition-colors focus:bg-brand-100/40 data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
|
"relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
|
||||||
className,
|
className,
|
||||||
)}
|
)}
|
||||||
checked={checked}
|
checked={checked}
|
||||||
|
|
@ -109,7 +109,7 @@ export const DropdownMenuRadioItem = React.forwardRef<
|
||||||
<DropdownMenuPrimitive.RadioItem
|
<DropdownMenuPrimitive.RadioItem
|
||||||
ref={ref}
|
ref={ref}
|
||||||
className={cn(
|
className={cn(
|
||||||
"relative flex cursor-default select-none items-center rounded-lg py-2 pl-8 pr-2.5 text-sm outline-none transition-colors focus:bg-brand-100/40 data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
|
"relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
|
||||||
className,
|
className,
|
||||||
)}
|
)}
|
||||||
{...props}
|
{...props}
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
import * as React from "react"
|
import * as React from "react"
|
||||||
import { Upload } from "lucide-react"
|
import { Upload } from "lucide-react"
|
||||||
import { cn } from "../../lib/utils"
|
import { cn } from "@/lib/utils"
|
||||||
|
|
||||||
export interface FileUploadProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, "type" | "value"> {
|
export interface FileUploadProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, "type" | "value"> {
|
||||||
/** Controlled selected file; when set, internal state follows this value. */
|
/** Controlled selected file; when set, internal state follows this value. */
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
import * as React from "react";
|
import * as React from "react";
|
||||||
import { cn } from "../../lib/utils";
|
import { cn } from "@/lib/utils";
|
||||||
|
|
||||||
export interface InputProps extends React.InputHTMLAttributes<HTMLInputElement> {}
|
export interface InputProps extends React.InputHTMLAttributes<HTMLInputElement> {}
|
||||||
|
|
||||||
|
|
@ -9,7 +9,7 @@ export const Input = React.forwardRef<HTMLInputElement, InputProps>(
|
||||||
<input
|
<input
|
||||||
type={type}
|
type={type}
|
||||||
className={cn(
|
className={cn(
|
||||||
"flex h-10 w-full rounded-[6px] border border-input bg-grayScale-50 px-3 py-2 text-sm text-foreground ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-grayScale-400 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",
|
"ui-3d-inset-control flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm text-foreground ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",
|
||||||
className,
|
className,
|
||||||
)}
|
)}
|
||||||
ref={ref}
|
ref={ref}
|
||||||
|
|
|
||||||
18
src/components/ui/label.tsx
Normal file
|
|
@ -0,0 +1,18 @@
|
||||||
|
import * as React from "react"
|
||||||
|
import { cn } from "@/lib/utils"
|
||||||
|
|
||||||
|
export type LabelProps = React.LabelHTMLAttributes<HTMLLabelElement>
|
||||||
|
|
||||||
|
export const Label = React.forwardRef<HTMLLabelElement, LabelProps>(
|
||||||
|
({ className, ...props }, ref) => (
|
||||||
|
<label
|
||||||
|
ref={ref}
|
||||||
|
className={cn(
|
||||||
|
"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",
|
||||||
|
className,
|
||||||
|
)}
|
||||||
|
{...props}
|
||||||
|
/>
|
||||||
|
),
|
||||||
|
)
|
||||||
|
Label.displayName = "Label"
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
import { cn } from "../../lib/utils"
|
import { cn } from "@/lib/utils"
|
||||||
import { looksLikeHtml, stripHtml } from "../../lib/richText"
|
import { looksLikeHtml, stripHtml } from "../../lib/richText"
|
||||||
|
|
||||||
export interface RichTextContentProps {
|
export interface RichTextContentProps {
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,7 @@ import {
|
||||||
Redo2,
|
Redo2,
|
||||||
Undo2,
|
Undo2,
|
||||||
} from "lucide-react"
|
} from "lucide-react"
|
||||||
import { cn } from "../../lib/utils"
|
import { cn } from "@/lib/utils"
|
||||||
import { richTextPlainLength } from "../../lib/richText"
|
import { richTextPlainLength } from "../../lib/richText"
|
||||||
|
|
||||||
export interface RichTextEditorProps {
|
export interface RichTextEditorProps {
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
import * as React from "react";
|
import * as React from "react";
|
||||||
import { ChevronDown } from "lucide-react";
|
import { ChevronDown } from "lucide-react";
|
||||||
import { cn } from "../../lib/utils";
|
import { cn } from "@/lib/utils";
|
||||||
|
|
||||||
export interface SelectProps extends React.SelectHTMLAttributes<HTMLSelectElement> {}
|
export interface SelectProps extends React.SelectHTMLAttributes<HTMLSelectElement> {}
|
||||||
|
|
||||||
|
|
@ -10,7 +10,7 @@ export const Select = React.forwardRef<HTMLSelectElement, SelectProps>(
|
||||||
<div className="relative">
|
<div className="relative">
|
||||||
<select
|
<select
|
||||||
className={cn(
|
className={cn(
|
||||||
"flex h-11 w-full appearance-none rounded-xl border border-input bg-grayScale-50 px-3 py-2 pr-8 text-sm text-foreground shadow-sm ring-offset-background transition hover:bg-grayScale-100 focus-visible:border-brand-400 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-brand-200 disabled:cursor-not-allowed disabled:opacity-50",
|
"ui-3d-inset-control flex h-10 w-full appearance-none rounded-md border border-input bg-background px-3 py-2 pr-8 text-sm text-foreground ring-offset-background transition-colors hover:bg-accent focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",
|
||||||
className,
|
className,
|
||||||
)}
|
)}
|
||||||
ref={ref}
|
ref={ref}
|
||||||
|
|
@ -18,7 +18,7 @@ export const Select = React.forwardRef<HTMLSelectElement, SelectProps>(
|
||||||
>
|
>
|
||||||
{children}
|
{children}
|
||||||
</select>
|
</select>
|
||||||
<ChevronDown className="pointer-events-none absolute right-2 top-1/2 h-4 w-4 -translate-y-1/2 text-grayScale-600" />
|
<ChevronDown className="pointer-events-none absolute right-2 top-1/2 h-4 w-4 -translate-y-1/2 text-muted-foreground" />
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@ import {
|
||||||
type ReactNode,
|
type ReactNode,
|
||||||
} from "react"
|
} from "react"
|
||||||
import { Eye, EyeOff } from "lucide-react"
|
import { Eye, EyeOff } from "lucide-react"
|
||||||
import { cn } from "../../lib/utils"
|
import { cn } from "@/lib/utils"
|
||||||
|
|
||||||
type SensitiveRevealContextValue = {
|
type SensitiveRevealContextValue = {
|
||||||
revealed: boolean
|
revealed: boolean
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
import * as React from "react"
|
import * as React from "react"
|
||||||
import * as SeparatorPrimitive from "@radix-ui/react-separator"
|
import * as SeparatorPrimitive from "@radix-ui/react-separator"
|
||||||
|
|
||||||
import { cn } from "../../lib/utils"
|
import { cn } from "@/lib/utils"
|
||||||
|
|
||||||
export const Separator = React.forwardRef<
|
export const Separator = React.forwardRef<
|
||||||
React.ElementRef<typeof SeparatorPrimitive.Root>,
|
React.ElementRef<typeof SeparatorPrimitive.Root>,
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
import spinnerSrc from "../../assets/Circular-indeterminate progress indicator.svg"
|
import spinnerSrc from "../../assets/Circular-indeterminate progress indicator.svg"
|
||||||
import { cn } from "../../lib/utils"
|
import { cn } from "@/lib/utils"
|
||||||
|
|
||||||
interface SpinnerIconProps {
|
interface SpinnerIconProps {
|
||||||
className?: string
|
className?: string
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
import { cn } from "../../lib/utils";
|
import { cn } from "@/lib/utils";
|
||||||
|
|
||||||
export interface StepperProps {
|
export interface StepperProps {
|
||||||
steps: string[];
|
steps: string[];
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
import * as React from "react"
|
import * as React from "react"
|
||||||
import { cn } from "../../lib/utils"
|
import { cn } from "@/lib/utils"
|
||||||
|
|
||||||
type TableProps = React.HTMLAttributes<HTMLTableElement> & {
|
type TableProps = React.HTMLAttributes<HTMLTableElement> & {
|
||||||
/** Render only the `<table>` element (for use inside an external scroll container). */
|
/** Render only the `<table>` element (for use inside an external scroll container). */
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
import * as React from "react"
|
import * as React from "react"
|
||||||
import { cn } from "../../lib/utils"
|
import { cn } from "@/lib/utils"
|
||||||
|
|
||||||
export interface TextareaProps extends React.TextareaHTMLAttributes<HTMLTextAreaElement> {}
|
export interface TextareaProps extends React.TextareaHTMLAttributes<HTMLTextAreaElement> {}
|
||||||
|
|
||||||
|
|
@ -8,7 +8,7 @@ export const Textarea = React.forwardRef<HTMLTextAreaElement, TextareaProps>(
|
||||||
return (
|
return (
|
||||||
<textarea
|
<textarea
|
||||||
className={cn(
|
className={cn(
|
||||||
"flex min-h-[80px] w-full rounded-lg border border-input bg-grayScale-50 px-3 py-2 text-sm text-foreground ring-offset-background placeholder:text-grayScale-400 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",
|
"ui-3d-inset-control flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-sm text-foreground ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",
|
||||||
className,
|
className,
|
||||||
)}
|
)}
|
||||||
ref={ref}
|
ref={ref}
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
import { cn } from "../../lib/utils"
|
import { cn } from "@/lib/utils"
|
||||||
|
|
||||||
export type ToggleSwitchProps = {
|
export type ToggleSwitchProps = {
|
||||||
checked: boolean
|
checked: boolean
|
||||||
|
|
|
||||||
|
|
@ -26,7 +26,7 @@ export function VideoUploadProgressBar({
|
||||||
>
|
>
|
||||||
<div className="h-2 overflow-hidden rounded-full bg-grayScale-200">
|
<div className="h-2 overflow-hidden rounded-full bg-grayScale-200">
|
||||||
<div
|
<div
|
||||||
className="h-full rounded-full bg-[#9E2891] transition-[width] duration-200 ease-out"
|
className="h-full rounded-full bg-[#27272A] transition-[width] duration-200 ease-out"
|
||||||
style={{ width: `${Math.min(100, Math.max(0, progress.percent))}%` }}
|
style={{ width: `${Math.min(100, Math.max(0, progress.percent))}%` }}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
287
src/index.css
|
|
@ -15,77 +15,84 @@
|
||||||
--gs-500: #757575;
|
--gs-500: #757575;
|
||||||
--gs-600: #616161;
|
--gs-600: #616161;
|
||||||
--shadow-soft: 0 8px 24px rgba(0, 0, 0, 0.06);
|
--shadow-soft: 0 8px 24px rgba(0, 0, 0, 0.06);
|
||||||
|
--shadow-3d-card: 0 1px 2px rgba(24, 24, 27, 0.04), 0 3px 10px rgba(24, 24, 27, 0.05);
|
||||||
|
--shadow-3d-button: 0 1px 0 rgba(24, 24, 27, 0.16), 0 2px 5px rgba(24, 24, 27, 0.08);
|
||||||
|
--surface-highlight: rgba(255, 255, 255, 0.45);
|
||||||
|
--control-inset: inset 0 1px 2px rgba(24, 24, 27, 0.04);
|
||||||
|
|
||||||
--background: 0 0% 100%;
|
--background: 0 0% 100%;
|
||||||
--foreground: 222.2 84% 4.9%;
|
--foreground: 240 5.9% 10%;
|
||||||
|
|
||||||
--card: 0 0% 100%;
|
--card: 0 0% 100%;
|
||||||
--card-foreground: 222.2 84% 4.9%;
|
--card-foreground: 240 5.9% 10%;
|
||||||
|
|
||||||
--popover: 0 0% 100%;
|
--popover: 0 0% 100%;
|
||||||
--popover-foreground: 222.2 84% 4.9%;
|
--popover-foreground: 240 5.9% 10%;
|
||||||
|
|
||||||
/* primary ~= #9E2891 (brand 500) */
|
--primary: 240 3.7% 25%;
|
||||||
--primary: 312 59% 39%;
|
|
||||||
--primary-foreground: 0 0% 100%;
|
--primary-foreground: 0 0% 100%;
|
||||||
|
|
||||||
--secondary: 210 40% 96.1%;
|
--secondary: 0 0% 96.1%;
|
||||||
--secondary-foreground: 222.2 47.4% 11.2%;
|
--secondary-foreground: 240 5.9% 10%;
|
||||||
|
|
||||||
--muted: 210 40% 96.1%;
|
--muted: 0 0% 96.1%;
|
||||||
--muted-foreground: 215.4 16.3% 46.9%;
|
--muted-foreground: 240 3.8% 46.1%;
|
||||||
|
|
||||||
--accent: 210 40% 96.1%;
|
--accent: 0 0% 96.1%;
|
||||||
--accent-foreground: 222.2 47.4% 11.2%;
|
--accent-foreground: 240 5.9% 10%;
|
||||||
|
|
||||||
--destructive: 0 84.2% 60.2%;
|
--destructive: 0 84.2% 60.2%;
|
||||||
--destructive-foreground: 0 0% 100%;
|
--destructive-foreground: 0 0% 100%;
|
||||||
|
|
||||||
--border: 214.3 31.8% 91.4%;
|
--border: 0 0% 89.8%;
|
||||||
--input: 214.3 31.8% 91.4%;
|
--input: 0 0% 89.8%;
|
||||||
--ring: 312 59% 39%;
|
--ring: 240 3.7% 25%;
|
||||||
|
|
||||||
--radius: 14px;
|
--radius: 14px;
|
||||||
}
|
}
|
||||||
|
|
||||||
html.dark {
|
html.dark {
|
||||||
color-scheme: dark;
|
color-scheme: dark;
|
||||||
--gs-50: #1c1c24;
|
--gs-50: #2b2b30;
|
||||||
--gs-100: #12121a;
|
--gs-100: #18181b;
|
||||||
--gs-200: #2e2e3a;
|
--gs-200: #3f3f46;
|
||||||
--gs-300: #454552;
|
--gs-300: #52525b;
|
||||||
--gs-400: #9a9aaa;
|
--gs-400: #a1a1aa;
|
||||||
--gs-500: #b8b8c6;
|
--gs-500: #d4d4d8;
|
||||||
--gs-600: #ececf2;
|
--gs-600: #f4f4f5;
|
||||||
--shadow-soft: 0 8px 24px rgba(0, 0, 0, 0.45);
|
--shadow-soft: 0 8px 24px rgba(0, 0, 0, 0.45);
|
||||||
|
--shadow-3d-card: 0 1px 3px rgba(0, 0, 0, 0.22), 0 4px 12px rgba(0, 0, 0, 0.16);
|
||||||
|
--shadow-3d-button: 0 1px 0 rgba(0, 0, 0, 0.3), 0 2px 6px rgba(0, 0, 0, 0.18);
|
||||||
|
--surface-highlight: rgba(255, 255, 255, 0.04);
|
||||||
|
--control-inset: inset 0 1px 2px rgba(0, 0, 0, 0.12);
|
||||||
|
|
||||||
--background: 240 10% 7%;
|
--background: 240 5.9% 10%;
|
||||||
--foreground: 210 20% 96%;
|
--foreground: 0 0% 96%;
|
||||||
|
|
||||||
--card: 240 8% 12%;
|
--card: 240 3.7% 15.9%;
|
||||||
--card-foreground: 210 20% 96%;
|
--card-foreground: 0 0% 96%;
|
||||||
|
|
||||||
--popover: 240 8% 12%;
|
--popover: 240 3.7% 15.9%;
|
||||||
--popover-foreground: 210 20% 96%;
|
--popover-foreground: 0 0% 96%;
|
||||||
|
|
||||||
--primary: 312 59% 45%;
|
--primary: 0 0% 86%;
|
||||||
--primary-foreground: 0 0% 100%;
|
--primary-foreground: 240 5.9% 10%;
|
||||||
|
|
||||||
--secondary: 240 6% 18%;
|
--secondary: 240 3.7% 15.9%;
|
||||||
--secondary-foreground: 210 20% 96%;
|
--secondary-foreground: 0 0% 96%;
|
||||||
|
|
||||||
--muted: 240 6% 18%;
|
--muted: 240 3.7% 15.9%;
|
||||||
--muted-foreground: 240 5% 65%;
|
--muted-foreground: 240 4.9% 83.9%;
|
||||||
|
|
||||||
--accent: 240 6% 18%;
|
--accent: 240 3.7% 15.9%;
|
||||||
--accent-foreground: 210 20% 96%;
|
--accent-foreground: 0 0% 96%;
|
||||||
|
|
||||||
--destructive: 0 62% 50%;
|
--destructive: 0 62% 50%;
|
||||||
--destructive-foreground: 0 0% 100%;
|
--destructive-foreground: 0 0% 100%;
|
||||||
|
|
||||||
--border: 240 6% 22%;
|
--border: 240 3.7% 25%;
|
||||||
--input: 240 6% 22%;
|
--input: 240 3.7% 25%;
|
||||||
--ring: 312 59% 50%;
|
--ring: 0 0% 86%;
|
||||||
}
|
}
|
||||||
|
|
||||||
* {
|
* {
|
||||||
|
|
@ -105,12 +112,188 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
@layer components {
|
@layer components {
|
||||||
|
.sidebar-shell {
|
||||||
|
background:
|
||||||
|
radial-gradient(ellipse at 10% 0%, rgba(113, 113, 122, 0.09), transparent 38%),
|
||||||
|
linear-gradient(180deg, #ffffff 0%, #fafafa 100%);
|
||||||
|
box-shadow: 8px 0 24px rgba(24, 24, 27, 0.055), inset -1px 0 0 rgba(255, 255, 255, 0.8);
|
||||||
|
}
|
||||||
|
|
||||||
|
html.dark .sidebar-shell {
|
||||||
|
background:
|
||||||
|
radial-gradient(ellipse at 10% 0%, rgba(161, 161, 170, 0.1), transparent 38%),
|
||||||
|
linear-gradient(180deg, #2b2b30 0%, #202024 100%);
|
||||||
|
box-shadow: 8px 0 26px rgba(0, 0, 0, 0.24), inset -1px 0 0 rgba(255, 255, 255, 0.035);
|
||||||
|
}
|
||||||
|
|
||||||
|
.sidebar-brand-header {
|
||||||
|
border: 1px solid hsl(var(--border) / 0.76);
|
||||||
|
background:
|
||||||
|
linear-gradient(145deg, var(--surface-highlight), transparent 54%),
|
||||||
|
linear-gradient(145deg, hsl(var(--card)), hsl(var(--background)));
|
||||||
|
box-shadow: 0 2px 5px rgba(24, 24, 27, 0.055), inset 0 1px 0 var(--surface-highlight);
|
||||||
|
}
|
||||||
|
|
||||||
|
.sidebar-workspace-label {
|
||||||
|
border: 1px solid hsl(var(--border) / 0.7);
|
||||||
|
background: linear-gradient(120deg, hsl(var(--muted) / 0.9), hsl(var(--card)));
|
||||||
|
box-shadow: inset 0 1px 0 var(--surface-highlight);
|
||||||
|
}
|
||||||
|
|
||||||
|
.sidebar-nav-item {
|
||||||
|
transition: background-color 160ms ease, color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
|
||||||
|
}
|
||||||
|
|
||||||
|
.sidebar-nav-item:hover {
|
||||||
|
transform: translateX(1px);
|
||||||
|
}
|
||||||
|
|
||||||
|
.sidebar-nav-item-active {
|
||||||
|
border: 1px solid rgba(63, 63, 70, 0.12);
|
||||||
|
background-image: linear-gradient(110deg, rgba(63, 63, 70, 0.12), rgba(63, 63, 70, 0.035));
|
||||||
|
box-shadow: inset 0 1px 0 var(--surface-highlight), 0 2px 5px rgba(24, 24, 27, 0.055);
|
||||||
|
}
|
||||||
|
|
||||||
|
html.dark .sidebar-nav-item-active {
|
||||||
|
border-color: rgba(244, 244, 245, 0.1);
|
||||||
|
background-image: linear-gradient(110deg, rgba(244, 244, 245, 0.11), rgba(244, 244, 245, 0.035));
|
||||||
|
box-shadow: inset 0 1px 0 var(--surface-highlight), 0 2px 6px rgba(0, 0, 0, 0.16);
|
||||||
|
}
|
||||||
|
|
||||||
|
.sidebar-nav-icon {
|
||||||
|
box-shadow: inset 0 1px 0 var(--surface-highlight), 0 1px 2px rgba(24, 24, 27, 0.04);
|
||||||
|
}
|
||||||
|
|
||||||
|
.sidebar-nav-icon-active {
|
||||||
|
outline: 1px solid rgba(255, 255, 255, 0.18);
|
||||||
|
box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.12), 0 2px 5px rgba(0, 0, 0, 0.16);
|
||||||
|
}
|
||||||
|
|
||||||
|
.sidebar-nav-item:hover .sidebar-nav-icon {
|
||||||
|
transform: translateY(-1px);
|
||||||
|
}
|
||||||
|
|
||||||
|
.sidebar-subnav-item-active {
|
||||||
|
box-shadow: inset 2px 0 0 hsl(var(--primary)), inset 0 1px 0 var(--surface-highlight);
|
||||||
|
}
|
||||||
|
|
||||||
|
.sidebar-control {
|
||||||
|
box-shadow: 0 1px 2px rgba(24, 24, 27, 0.05), inset 0 1px 0 var(--surface-highlight);
|
||||||
|
}
|
||||||
|
|
||||||
|
.sidebar-control:hover {
|
||||||
|
transform: translateY(-1px);
|
||||||
|
}
|
||||||
|
|
||||||
|
.sidebar-active-indicator {
|
||||||
|
box-shadow: 0 0 8px rgba(63, 63, 70, 0.28);
|
||||||
|
}
|
||||||
|
|
||||||
|
html.dark .sidebar-active-indicator {
|
||||||
|
box-shadow: 0 0 8px rgba(244, 244, 245, 0.2);
|
||||||
|
}
|
||||||
|
|
||||||
|
.sidebar-logout {
|
||||||
|
box-shadow: inset 0 1px 0 var(--surface-highlight);
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (prefers-reduced-motion: reduce) {
|
||||||
|
.sidebar-nav-item {
|
||||||
|
transition: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.sidebar-nav-item:hover {
|
||||||
|
transform: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.sidebar-nav-item:hover .sidebar-nav-icon,
|
||||||
|
.sidebar-control:hover {
|
||||||
|
transform: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.ui-3d-card {
|
||||||
|
box-shadow: var(--shadow-3d-card), inset 0 1px 0 var(--surface-highlight);
|
||||||
|
filter:
|
||||||
|
drop-shadow(0 1px 1px rgba(24, 24, 27, 0.025))
|
||||||
|
drop-shadow(0 2px 3px rgba(24, 24, 27, 0.025));
|
||||||
|
transition: box-shadow 180ms ease, transform 180ms ease;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ui-3d-card-interactive:hover {
|
||||||
|
transform: translateY(-1px);
|
||||||
|
filter:
|
||||||
|
drop-shadow(0 1px 2px rgba(24, 24, 27, 0.06))
|
||||||
|
drop-shadow(0 4px 5px rgba(24, 24, 27, 0.05));
|
||||||
|
box-shadow:
|
||||||
|
0 1px 3px rgba(24, 24, 27, 0.05),
|
||||||
|
0 6px 14px rgba(24, 24, 27, 0.07),
|
||||||
|
inset 0 1px 0 var(--surface-highlight);
|
||||||
|
}
|
||||||
|
|
||||||
|
html.dark .ui-3d-card-interactive:hover {
|
||||||
|
filter:
|
||||||
|
drop-shadow(0 1px 2px rgba(0, 0, 0, 0.22))
|
||||||
|
drop-shadow(0 5px 7px rgba(0, 0, 0, 0.18));
|
||||||
|
box-shadow:
|
||||||
|
0 1px 3px rgba(0, 0, 0, 0.28),
|
||||||
|
0 7px 16px rgba(0, 0, 0, 0.2),
|
||||||
|
inset 0 1px 0 var(--surface-highlight);
|
||||||
|
}
|
||||||
|
|
||||||
|
.ui-3d-button {
|
||||||
|
box-shadow: var(--shadow-3d-button);
|
||||||
|
filter: drop-shadow(0 1px 1px rgba(24, 24, 27, 0.06));
|
||||||
|
transition: transform 140ms ease, box-shadow 140ms ease, background-color 140ms ease;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ui-3d-button:hover:not(:disabled) {
|
||||||
|
transform: translateY(-0.5px);
|
||||||
|
filter: drop-shadow(0 2px 2px rgba(24, 24, 27, 0.08));
|
||||||
|
box-shadow: 0 2px 0 rgba(24, 24, 27, 0.15), 0 4px 8px rgba(24, 24, 27, 0.08);
|
||||||
|
}
|
||||||
|
|
||||||
|
.ui-3d-button:active:not(:disabled) {
|
||||||
|
transform: translateY(1px);
|
||||||
|
filter: drop-shadow(0 1px 0 rgba(24, 24, 27, 0.08));
|
||||||
|
box-shadow: 0 1px 0 rgba(24, 24, 27, 0.12), 0 1px 3px rgba(24, 24, 27, 0.06);
|
||||||
|
}
|
||||||
|
|
||||||
|
html.dark .ui-3d-button:hover:not(:disabled) {
|
||||||
|
filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.22));
|
||||||
|
box-shadow: 0 2px 0 rgba(0, 0, 0, 0.35), 0 4px 9px rgba(0, 0, 0, 0.2);
|
||||||
|
}
|
||||||
|
|
||||||
|
html.dark .ui-3d-button:active:not(:disabled) {
|
||||||
|
filter: drop-shadow(0 1px 0 rgba(0, 0, 0, 0.18));
|
||||||
|
box-shadow: 0 1px 0 rgba(0, 0, 0, 0.28), 0 2px 4px rgba(0, 0, 0, 0.16);
|
||||||
|
}
|
||||||
|
|
||||||
|
.ui-3d-inset-control {
|
||||||
|
box-shadow: var(--control-inset);
|
||||||
|
}
|
||||||
|
|
||||||
|
.ui-3d-inset-control:focus-visible {
|
||||||
|
box-shadow: var(--control-inset), 0 0 0 2px hsl(var(--ring) / 0.22);
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (prefers-reduced-motion: reduce) {
|
||||||
|
.ui-3d-card,
|
||||||
|
.ui-3d-button {
|
||||||
|
transition: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.ui-3d-card-interactive:hover,
|
||||||
|
.ui-3d-button:hover:not(:disabled),
|
||||||
|
.ui-3d-button:active:not(:disabled) {
|
||||||
|
transform: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Brand scale uses heavy purple for 50/500/600 — enforce high-contrast white
|
* Keep high contrast on dark brand fills while pale brand surfaces use dark text.
|
||||||
* foreground on solid brand fills (including opacity modifiers).
|
|
||||||
*/
|
*/
|
||||||
:is(
|
:is(
|
||||||
.bg-brand-50,
|
|
||||||
.bg-brand-500,
|
.bg-brand-500,
|
||||||
.bg-brand-600
|
.bg-brand-600
|
||||||
) {
|
) {
|
||||||
|
|
@ -118,7 +301,6 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
:is(
|
:is(
|
||||||
.bg-brand-50,
|
|
||||||
.bg-brand-500,
|
.bg-brand-500,
|
||||||
.bg-brand-600
|
.bg-brand-600
|
||||||
)
|
)
|
||||||
|
|
@ -127,7 +309,6 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
:is(
|
:is(
|
||||||
.bg-brand-50,
|
|
||||||
.bg-brand-500,
|
.bg-brand-500,
|
||||||
.bg-brand-600
|
.bg-brand-600
|
||||||
)
|
)
|
||||||
|
|
@ -135,18 +316,24 @@
|
||||||
@apply text-white;
|
@apply text-white;
|
||||||
}
|
}
|
||||||
|
|
||||||
.hover\:bg-brand-50:hover,
|
|
||||||
.hover\:bg-brand-500:hover,
|
.hover\:bg-brand-500:hover,
|
||||||
.hover\:bg-brand-600:hover {
|
.hover\:bg-brand-600:hover {
|
||||||
@apply text-white;
|
@apply text-white;
|
||||||
}
|
}
|
||||||
|
|
||||||
.hover\:bg-brand-50:hover svg,
|
.hover\:bg-brand-50:hover {
|
||||||
|
@apply text-grayScale-600;
|
||||||
|
}
|
||||||
|
|
||||||
.hover\:bg-brand-500:hover svg,
|
.hover\:bg-brand-500:hover svg,
|
||||||
.hover\:bg-brand-600:hover svg {
|
.hover\:bg-brand-600:hover svg {
|
||||||
@apply text-white;
|
@apply text-white;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.hover\:bg-brand-50:hover svg {
|
||||||
|
@apply text-grayScale-600;
|
||||||
|
}
|
||||||
|
|
||||||
/* Map legacy light-only surfaces to theme tokens in dark mode */
|
/* Map legacy light-only surfaces to theme tokens in dark mode */
|
||||||
html.dark .bg-white {
|
html.dark .bg-white {
|
||||||
background-color: var(--gs-50);
|
background-color: var(--gs-50);
|
||||||
|
|
@ -187,7 +374,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.rezina-toast[data-sonner-toast] {
|
.rezina-toast[data-sonner-toast] {
|
||||||
--rezina-toast-accent: #9e2891;
|
--rezina-toast-accent: #27272a;
|
||||||
width: var(--width);
|
width: var(--width);
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: flex-start;
|
align-items: flex-start;
|
||||||
|
|
@ -276,7 +463,7 @@
|
||||||
height: 1.75rem;
|
height: 1.75rem;
|
||||||
padding: 0 0.75rem;
|
padding: 0 0.75rem;
|
||||||
border-radius: 0.375rem;
|
border-radius: 0.375rem;
|
||||||
background: #9e2891;
|
background: #27272a;
|
||||||
color: #fff;
|
color: #fff;
|
||||||
font-size: 0.75rem;
|
font-size: 0.75rem;
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
|
|
@ -306,7 +493,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.rezina-toast--info {
|
.rezina-toast--info {
|
||||||
--rezina-toast-accent: #9e2891;
|
--rezina-toast-accent: #27272a;
|
||||||
}
|
}
|
||||||
|
|
||||||
.rezina-toast[data-sonner-toast][data-styled="true"] {
|
.rezina-toast[data-sonner-toast][data-styled="true"] {
|
||||||
|
|
@ -351,7 +538,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.rezina-realtime-popup {
|
.rezina-realtime-popup {
|
||||||
--rezina-popup-accent: #9e2891;
|
--rezina-popup-accent: #27272a;
|
||||||
width: min(380px, calc(100vw - 2rem));
|
width: min(380px, calc(100vw - 2rem));
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
border-radius: 0.75rem;
|
border-radius: 0.75rem;
|
||||||
|
|
@ -384,7 +571,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.rezina-realtime-popup--info {
|
.rezina-realtime-popup--info {
|
||||||
--rezina-popup-accent: #9e2891;
|
--rezina-popup-accent: #27272a;
|
||||||
}
|
}
|
||||||
|
|
||||||
.rezina-realtime-popup__header {
|
.rezina-realtime-popup__header {
|
||||||
|
|
|
||||||
|
|
@ -15,10 +15,10 @@ export const SUBSCRIPTION_STATUS_BREAKDOWN = [
|
||||||
] as const
|
] as const
|
||||||
|
|
||||||
const SUBSCRIPTION_STATUS_COLORS: Record<string, string> = {
|
const SUBSCRIPTION_STATUS_COLORS: Record<string, string> = {
|
||||||
ACTIVE: "#9E2891",
|
ACTIVE: "#27272A",
|
||||||
PENDING: "#FFD23F",
|
PENDING: "#A1A1AA",
|
||||||
EXPIRED: "#F97316",
|
EXPIRED: "#3F3F46",
|
||||||
CANCELLED: "#EF4444",
|
CANCELLED: "#3F3F46",
|
||||||
}
|
}
|
||||||
|
|
||||||
const INACTIVE_SUBSCRIPTION_STATUSES = new Set([
|
const INACTIVE_SUBSCRIPTION_STATUSES = new Set([
|
||||||
|
|
@ -48,7 +48,7 @@ export interface SubscriptionStatusPieSlice {
|
||||||
*/
|
*/
|
||||||
export function buildSubscriptionStatusPie(
|
export function buildSubscriptionStatusPie(
|
||||||
byStatus: LabelCount[] | null | undefined,
|
byStatus: LabelCount[] | null | undefined,
|
||||||
fallbackColors: string[] = ["#9E2891", "#FFD23F", "#1DE9B6", "#C26FC0"],
|
fallbackColors: string[] = ["#27272A", "#A1A1AA", "#71717A", "#52525B"],
|
||||||
): SubscriptionStatusPieSlice[] {
|
): SubscriptionStatusPieSlice[] {
|
||||||
const counts = new Map<string, number>()
|
const counts = new Map<string, number>()
|
||||||
for (const row of byStatus ?? []) {
|
for (const row of byStatus ?? []) {
|
||||||
|
|
|
||||||
|
|
@ -32,7 +32,7 @@ function syncMetaThemeColor(resolved: ResolvedTheme) {
|
||||||
meta.name = "theme-color"
|
meta.name = "theme-color"
|
||||||
document.head.appendChild(meta)
|
document.head.appendChild(meta)
|
||||||
}
|
}
|
||||||
meta.content = resolved === "dark" ? "#12121a" : "#f5f5f5"
|
meta.content = resolved === "dark" ? "#18181b" : "#ffffff"
|
||||||
}
|
}
|
||||||
|
|
||||||
export function applyTheme(mode: ThemeMode): ResolvedTheme {
|
export function applyTheme(mode: ThemeMode): ResolvedTheme {
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@ export function AboutPage() {
|
||||||
title="About"
|
title="About"
|
||||||
subtitle="Rezina Academy provides modern, structured learning experiences and the administration tools to manage courses, question sets, speaking practices, and learner progress at scale."
|
subtitle="Rezina Academy provides modern, structured learning experiences and the administration tools to manage courses, question sets, speaking practices, and learner progress at scale."
|
||||||
>
|
>
|
||||||
<section className="space-y-3 rounded-xl border border-[#ece4f7] bg-gradient-to-br from-white to-[#fcf8ff] p-5 shadow-sm">
|
<section className="space-y-3 rounded-xl border border-[#E4E4E7] bg-gradient-to-br from-white to-[#FAFAFA] p-5 shadow-sm">
|
||||||
<h2 className="text-lg font-semibold text-grayScale-700">What is Rezina Academy?</h2>
|
<h2 className="text-lg font-semibold text-grayScale-700">What is Rezina Academy?</h2>
|
||||||
<p className="text-sm leading-relaxed text-grayScale-600">
|
<p className="text-sm leading-relaxed text-grayScale-600">
|
||||||
Rezina Academy is a digital learning platform focused on high-quality content delivery,
|
Rezina Academy is a digital learning platform focused on high-quality content delivery,
|
||||||
|
|
@ -14,7 +14,7 @@ export function AboutPage() {
|
||||||
</p>
|
</p>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
<section className="space-y-3 rounded-xl border border-[#ece4f7] bg-gradient-to-br from-white to-[#fcf8ff] p-5 shadow-sm">
|
<section className="space-y-3 rounded-xl border border-[#E4E4E7] bg-gradient-to-br from-white to-[#FAFAFA] p-5 shadow-sm">
|
||||||
<h2 className="text-lg font-semibold text-grayScale-700">Core Platform Capabilities</h2>
|
<h2 className="text-lg font-semibold text-grayScale-700">Core Platform Capabilities</h2>
|
||||||
<ul className="list-disc space-y-2 pl-5 text-sm leading-relaxed text-grayScale-600">
|
<ul className="list-disc space-y-2 pl-5 text-sm leading-relaxed text-grayScale-600">
|
||||||
<li>Manage course categories, sub-categories, courses, videos, and assessments.</li>
|
<li>Manage course categories, sub-categories, courses, videos, and assessments.</li>
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@ export function AccountDeletionPage() {
|
||||||
title="Account Deletion"
|
title="Account Deletion"
|
||||||
subtitle="Guidance on requesting and processing account deletion within Rezina Academy."
|
subtitle="Guidance on requesting and processing account deletion within Rezina Academy."
|
||||||
>
|
>
|
||||||
<section className="space-y-3 rounded-xl border border-[#ece4f7] bg-gradient-to-br from-white to-[#fcf8ff] p-5 shadow-sm">
|
<section className="space-y-3 rounded-xl border border-[#E4E4E7] bg-gradient-to-br from-white to-[#FAFAFA] p-5 shadow-sm">
|
||||||
<h2 className="text-lg font-semibold text-grayScale-700">Before Deletion</h2>
|
<h2 className="text-lg font-semibold text-grayScale-700">Before Deletion</h2>
|
||||||
<p className="text-sm leading-relaxed text-grayScale-600">
|
<p className="text-sm leading-relaxed text-grayScale-600">
|
||||||
Confirm account ownership and review the potential impact on course history, progress
|
Confirm account ownership and review the potential impact on course history, progress
|
||||||
|
|
@ -14,7 +14,7 @@ export function AccountDeletionPage() {
|
||||||
</p>
|
</p>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
<section className="space-y-3 rounded-xl border border-[#ece4f7] bg-gradient-to-br from-white to-[#fcf8ff] p-5 shadow-sm">
|
<section className="space-y-3 rounded-xl border border-[#E4E4E7] bg-gradient-to-br from-white to-[#FAFAFA] p-5 shadow-sm">
|
||||||
<h2 className="text-lg font-semibold text-grayScale-700">Deletion Steps</h2>
|
<h2 className="text-lg font-semibold text-grayScale-700">Deletion Steps</h2>
|
||||||
<ol className="list-decimal space-y-2 pl-5 text-sm leading-relaxed text-grayScale-600">
|
<ol className="list-decimal space-y-2 pl-5 text-sm leading-relaxed text-grayScale-600">
|
||||||
<li>
|
<li>
|
||||||
|
|
@ -38,7 +38,7 @@ export function AccountDeletionPage() {
|
||||||
</ol>
|
</ol>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
<section className="space-y-3 rounded-xl border border-[#ece4f7] bg-gradient-to-br from-white to-[#fcf8ff] p-5 shadow-sm">
|
<section className="space-y-3 rounded-xl border border-[#E4E4E7] bg-gradient-to-br from-white to-[#FAFAFA] p-5 shadow-sm">
|
||||||
<h2 className="text-lg font-semibold text-grayScale-700">Post-Deletion Notes</h2>
|
<h2 className="text-lg font-semibold text-grayScale-700">Post-Deletion Notes</h2>
|
||||||
<p className="text-sm leading-relaxed text-grayScale-600">
|
<p className="text-sm leading-relaxed text-grayScale-600">
|
||||||
Some records may be retained where required for compliance, security, or legal obligations.
|
Some records may be retained where required for compliance, security, or legal obligations.
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@ export function PrivacyPage() {
|
||||||
title="Privacy Policy"
|
title="Privacy Policy"
|
||||||
subtitle="This policy explains how Rezina Academy handles personal, educational, and operational data across learning and administration workflows."
|
subtitle="This policy explains how Rezina Academy handles personal, educational, and operational data across learning and administration workflows."
|
||||||
>
|
>
|
||||||
<section className="space-y-3 rounded-xl border border-[#ece4f7] bg-gradient-to-br from-white to-[#fcf8ff] p-5 shadow-sm">
|
<section className="space-y-3 rounded-xl border border-[#E4E4E7] bg-gradient-to-br from-white to-[#FAFAFA] p-5 shadow-sm">
|
||||||
<h2 className="text-lg font-semibold text-grayScale-700">Data We Process</h2>
|
<h2 className="text-lg font-semibold text-grayScale-700">Data We Process</h2>
|
||||||
<p className="text-sm leading-relaxed text-grayScale-600">
|
<p className="text-sm leading-relaxed text-grayScale-600">
|
||||||
We process account information, course activity, assessment records, and administrative logs
|
We process account information, course activity, assessment records, and administrative logs
|
||||||
|
|
@ -14,7 +14,7 @@ export function PrivacyPage() {
|
||||||
</p>
|
</p>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
<section className="space-y-3 rounded-xl border border-[#ece4f7] bg-gradient-to-br from-white to-[#fcf8ff] p-5 shadow-sm">
|
<section className="space-y-3 rounded-xl border border-[#E4E4E7] bg-gradient-to-br from-white to-[#FAFAFA] p-5 shadow-sm">
|
||||||
<h2 className="text-lg font-semibold text-grayScale-700">How Data Is Used</h2>
|
<h2 className="text-lg font-semibold text-grayScale-700">How Data Is Used</h2>
|
||||||
<ul className="list-disc space-y-2 pl-5 text-sm leading-relaxed text-grayScale-600">
|
<ul className="list-disc space-y-2 pl-5 text-sm leading-relaxed text-grayScale-600">
|
||||||
<li>Deliver and personalize course experiences.</li>
|
<li>Deliver and personalize course experiences.</li>
|
||||||
|
|
@ -23,7 +23,7 @@ export function PrivacyPage() {
|
||||||
</ul>
|
</ul>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
<section className="space-y-3 rounded-xl border border-[#ece4f7] bg-gradient-to-br from-white to-[#fcf8ff] p-5 shadow-sm">
|
<section className="space-y-3 rounded-xl border border-[#E4E4E7] bg-gradient-to-br from-white to-[#FAFAFA] p-5 shadow-sm">
|
||||||
<h2 className="text-lg font-semibold text-grayScale-700">Security and Retention</h2>
|
<h2 className="text-lg font-semibold text-grayScale-700">Security and Retention</h2>
|
||||||
<p className="text-sm leading-relaxed text-grayScale-600">
|
<p className="text-sm leading-relaxed text-grayScale-600">
|
||||||
Access controls, role-based restrictions, and logging are used to protect data integrity.
|
Access controls, role-based restrictions, and logging are used to protect data integrity.
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@ export function TermsPage() {
|
||||||
title="Terms and Conditions"
|
title="Terms and Conditions"
|
||||||
subtitle="These terms define acceptable use of Rezina Academy services, administration interfaces, and related learning operations."
|
subtitle="These terms define acceptable use of Rezina Academy services, administration interfaces, and related learning operations."
|
||||||
>
|
>
|
||||||
<section className="space-y-3 rounded-xl border border-[#ece4f7] bg-gradient-to-br from-white to-[#fcf8ff] p-5 shadow-sm">
|
<section className="space-y-3 rounded-xl border border-[#E4E4E7] bg-gradient-to-br from-white to-[#FAFAFA] p-5 shadow-sm">
|
||||||
<h2 className="text-lg font-semibold text-grayScale-700">1. Acceptable Use</h2>
|
<h2 className="text-lg font-semibold text-grayScale-700">1. Acceptable Use</h2>
|
||||||
<p className="text-sm leading-relaxed text-grayScale-600">
|
<p className="text-sm leading-relaxed text-grayScale-600">
|
||||||
The platform may only be used for legitimate education and administration workflows. Users
|
The platform may only be used for legitimate education and administration workflows. Users
|
||||||
|
|
@ -14,7 +14,7 @@ export function TermsPage() {
|
||||||
</p>
|
</p>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
<section className="space-y-3 rounded-xl border border-[#ece4f7] bg-gradient-to-br from-white to-[#fcf8ff] p-5 shadow-sm">
|
<section className="space-y-3 rounded-xl border border-[#E4E4E7] bg-gradient-to-br from-white to-[#FAFAFA] p-5 shadow-sm">
|
||||||
<h2 className="text-lg font-semibold text-grayScale-700">2. Account Responsibility</h2>
|
<h2 className="text-lg font-semibold text-grayScale-700">2. Account Responsibility</h2>
|
||||||
<p className="text-sm leading-relaxed text-grayScale-600">
|
<p className="text-sm leading-relaxed text-grayScale-600">
|
||||||
Account owners are responsible for protecting credentials and all actions performed through
|
Account owners are responsible for protecting credentials and all actions performed through
|
||||||
|
|
@ -22,7 +22,7 @@ export function TermsPage() {
|
||||||
</p>
|
</p>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
<section className="space-y-3 rounded-xl border border-[#ece4f7] bg-gradient-to-br from-white to-[#fcf8ff] p-5 shadow-sm">
|
<section className="space-y-3 rounded-xl border border-[#E4E4E7] bg-gradient-to-br from-white to-[#FAFAFA] p-5 shadow-sm">
|
||||||
<h2 className="text-lg font-semibold text-grayScale-700">3. Service and Policy Updates</h2>
|
<h2 className="text-lg font-semibold text-grayScale-700">3. Service and Policy Updates</h2>
|
||||||
<p className="text-sm leading-relaxed text-grayScale-600">
|
<p className="text-sm leading-relaxed text-grayScale-600">
|
||||||
Rezina Academy may update features, controls, and policies to improve reliability and
|
Rezina Academy may update features, controls, and policies to improve reliability and
|
||||||
|
|
|
||||||
|
|
@ -49,6 +49,7 @@ import {
|
||||||
MonthlyRevenueAreaChart,
|
MonthlyRevenueAreaChart,
|
||||||
MonthlyRevenueTrendPanel,
|
MonthlyRevenueTrendPanel,
|
||||||
SensitiveYtdValue,
|
SensitiveYtdValue,
|
||||||
|
SUBSCRIPTION_CHART_COLORS,
|
||||||
analyticsSoftCardClass,
|
analyticsSoftCardClass,
|
||||||
} from "../../components/analytics/SubscriptionRevenueVisuals"
|
} from "../../components/analytics/SubscriptionRevenueVisuals"
|
||||||
import {
|
import {
|
||||||
|
|
@ -77,7 +78,7 @@ import {
|
||||||
mergeAnalyticsRowsByDisplayLabel,
|
mergeAnalyticsRowsByDisplayLabel,
|
||||||
} from "../../lib/userProfileFieldDisplay"
|
} from "../../lib/userProfileFieldDisplay"
|
||||||
|
|
||||||
const PIE_COLORS = ["#9E2891", "#FFD23F", "#1DE9B6", "#C26FC0", "#6366F1", "#F97316", "#14B8A6", "#EF4444", "#8B5CF6", "#EC4899", "#06B6D4", "#84CC16"]
|
const PIE_COLORS = SUBSCRIPTION_CHART_COLORS
|
||||||
|
|
||||||
function genderAnalyticsRowLabel(label: string): string {
|
function genderAnalyticsRowLabel(label: string): string {
|
||||||
const trimmed = label?.trim() ?? ""
|
const trimmed = label?.trim() ?? ""
|
||||||
|
|
@ -605,8 +606,8 @@ export function AnalyticsPage() {
|
||||||
<AreaChart data={registrationData} margin={{ left: 8, right: 8, top: 8, bottom: 0 }}>
|
<AreaChart data={registrationData} margin={{ left: 8, right: 8, top: 8, bottom: 0 }}>
|
||||||
<defs>
|
<defs>
|
||||||
<linearGradient id="gradUsers" x1="0" y1="0" x2="0" y2="1">
|
<linearGradient id="gradUsers" x1="0" y1="0" x2="0" y2="1">
|
||||||
<stop offset="0%" stopColor="#9E2891" stopOpacity={0.25} />
|
<stop offset="0%" stopColor="#2563EB" stopOpacity={0.25} />
|
||||||
<stop offset="100%" stopColor="#9E2891" stopOpacity={0.02} />
|
<stop offset="100%" stopColor="#2563EB" stopOpacity={0.02} />
|
||||||
</linearGradient>
|
</linearGradient>
|
||||||
</defs>
|
</defs>
|
||||||
<CartesianGrid vertical={false} stroke="#E0E0E0" strokeDasharray="4 4" />
|
<CartesianGrid vertical={false} stroke="#E0E0E0" strokeDasharray="4 4" />
|
||||||
|
|
@ -620,7 +621,7 @@ export function AnalyticsPage() {
|
||||||
fontSize: 12,
|
fontSize: 12,
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
<Area type="monotone" dataKey="count" stroke="#9E2891" strokeWidth={2} fill="url(#gradUsers)" />
|
<Area type="monotone" dataKey="count" stroke="#2563EB" strokeWidth={2} fill="url(#gradUsers)" />
|
||||||
</AreaChart>
|
</AreaChart>
|
||||||
</ResponsiveContainer>
|
</ResponsiveContainer>
|
||||||
</CardContent>
|
</CardContent>
|
||||||
|
|
@ -804,8 +805,8 @@ export function AnalyticsPage() {
|
||||||
<AreaChart data={subscriptionData} margin={{ left: 8, right: 8, top: 8, bottom: 0 }}>
|
<AreaChart data={subscriptionData} margin={{ left: 8, right: 8, top: 8, bottom: 0 }}>
|
||||||
<defs>
|
<defs>
|
||||||
<linearGradient id="gradSubAnalytics" x1="0" y1="0" x2="0" y2="1">
|
<linearGradient id="gradSubAnalytics" x1="0" y1="0" x2="0" y2="1">
|
||||||
<stop offset="0%" stopColor="#8E248D" stopOpacity={0.22} />
|
<stop offset="0%" stopColor="#2563EB" stopOpacity={0.22} />
|
||||||
<stop offset="100%" stopColor="#8E248D" stopOpacity={0.02} />
|
<stop offset="100%" stopColor="#2563EB" stopOpacity={0.02} />
|
||||||
</linearGradient>
|
</linearGradient>
|
||||||
</defs>
|
</defs>
|
||||||
<CartesianGrid vertical={false} stroke="#EEEEEE" strokeDasharray="4 4" />
|
<CartesianGrid vertical={false} stroke="#EEEEEE" strokeDasharray="4 4" />
|
||||||
|
|
@ -823,10 +824,10 @@ export function AnalyticsPage() {
|
||||||
type="monotone"
|
type="monotone"
|
||||||
dataKey="count"
|
dataKey="count"
|
||||||
name="Subscriptions"
|
name="Subscriptions"
|
||||||
stroke="#8E248D"
|
stroke="#2563EB"
|
||||||
strokeWidth={2.5}
|
strokeWidth={2.5}
|
||||||
fill="url(#gradSubAnalytics)"
|
fill="url(#gradSubAnalytics)"
|
||||||
dot={{ r: 3.5, fill: "#8E248D", strokeWidth: 0 }}
|
dot={{ r: 3.5, fill: "#2563EB", strokeWidth: 0 }}
|
||||||
/>
|
/>
|
||||||
</AreaChart>
|
</AreaChart>
|
||||||
</ResponsiveContainer>
|
</ResponsiveContainer>
|
||||||
|
|
@ -861,7 +862,7 @@ export function AnalyticsPage() {
|
||||||
fontSize: 12,
|
fontSize: 12,
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
<Bar dataKey="revenue" radius={[6, 6, 0, 0]} fill="#8E248D" />
|
<Bar dataKey="revenue" radius={[6, 6, 0, 0]} fill="#0F766E" />
|
||||||
</BarChart>
|
</BarChart>
|
||||||
</ResponsiveContainer>
|
</ResponsiveContainer>
|
||||||
</SensitiveChart>
|
</SensitiveChart>
|
||||||
|
|
@ -1027,8 +1028,8 @@ export function AnalyticsPage() {
|
||||||
<AreaChart data={retentionData} margin={{ left: 8, right: 8, top: 8, bottom: 0 }}>
|
<AreaChart data={retentionData} margin={{ left: 8, right: 8, top: 8, bottom: 0 }}>
|
||||||
<defs>
|
<defs>
|
||||||
<linearGradient id="gradRetention" x1="0" y1="0" x2="0" y2="1">
|
<linearGradient id="gradRetention" x1="0" y1="0" x2="0" y2="1">
|
||||||
<stop offset="0%" stopColor="#6366F1" stopOpacity={0.25} />
|
<stop offset="0%" stopColor="#7C3AED" stopOpacity={0.25} />
|
||||||
<stop offset="100%" stopColor="#6366F1" stopOpacity={0.02} />
|
<stop offset="100%" stopColor="#7C3AED" stopOpacity={0.02} />
|
||||||
</linearGradient>
|
</linearGradient>
|
||||||
</defs>
|
</defs>
|
||||||
<CartesianGrid vertical={false} stroke="#E0E0E0" strokeDasharray="4 4" />
|
<CartesianGrid vertical={false} stroke="#E0E0E0" strokeDasharray="4 4" />
|
||||||
|
|
@ -1046,7 +1047,7 @@ export function AnalyticsPage() {
|
||||||
<Area
|
<Area
|
||||||
type="monotone"
|
type="monotone"
|
||||||
dataKey="viewers"
|
dataKey="viewers"
|
||||||
stroke="#6366F1"
|
stroke="#7C3AED"
|
||||||
strokeWidth={2}
|
strokeWidth={2}
|
||||||
fill="url(#gradRetention)"
|
fill="url(#gradRetention)"
|
||||||
/>
|
/>
|
||||||
|
|
@ -1101,7 +1102,7 @@ export function AnalyticsPage() {
|
||||||
fontSize: 12,
|
fontSize: 12,
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
<Bar dataKey="dropOffRate" radius={[6, 6, 0, 0]} fill="#F97316" />
|
<Bar dataKey="dropOffRate" radius={[6, 6, 0, 0]} fill="#C2410C" />
|
||||||
</BarChart>
|
</BarChart>
|
||||||
</ResponsiveContainer>
|
</ResponsiveContainer>
|
||||||
) : (
|
) : (
|
||||||
|
|
|
||||||
|
|
@ -5,6 +5,7 @@ import { Eye, EyeOff } from "lucide-react";
|
||||||
import { BrandLogo } from "../../components/brand/BrandLogo";
|
import { BrandLogo } from "../../components/brand/BrandLogo";
|
||||||
import { Button } from "../../components/ui/button";
|
import { Button } from "../../components/ui/button";
|
||||||
import { Input } from "../../components/ui/input";
|
import { Input } from "../../components/ui/input";
|
||||||
|
import { Label } from "../../components/ui/label";
|
||||||
import { SpinnerIcon } from "../../components/ui/spinner-icon";
|
import { SpinnerIcon } from "../../components/ui/spinner-icon";
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -333,12 +334,12 @@ export function LoginPage() {
|
||||||
<form onSubmit={handleSubmit} className="space-y-5" autoComplete="on" method="post" noValidate>
|
<form onSubmit={handleSubmit} className="space-y-5" autoComplete="on" method="post" noValidate>
|
||||||
{/* Email */}
|
{/* Email */}
|
||||||
<div>
|
<div>
|
||||||
<label
|
<Label
|
||||||
htmlFor="email"
|
htmlFor="email"
|
||||||
className="mb-1.5 block text-sm font-medium text-grayScale-600"
|
className="mb-1.5 block text-sm font-medium text-grayScale-600"
|
||||||
>
|
>
|
||||||
Email address
|
Email address
|
||||||
</label>
|
</Label>
|
||||||
<Input
|
<Input
|
||||||
id="email"
|
id="email"
|
||||||
name="email"
|
name="email"
|
||||||
|
|
@ -360,12 +361,12 @@ export function LoginPage() {
|
||||||
{/* Password */}
|
{/* Password */}
|
||||||
<div>
|
<div>
|
||||||
<div className="mb-1.5 flex items-center justify-between">
|
<div className="mb-1.5 flex items-center justify-between">
|
||||||
<label
|
<Label
|
||||||
htmlFor="password"
|
htmlFor="password"
|
||||||
className="block text-sm font-medium text-grayScale-600"
|
className="block text-sm font-medium text-grayScale-600"
|
||||||
>
|
>
|
||||||
Password
|
Password
|
||||||
</label>
|
</Label>
|
||||||
<Link
|
<Link
|
||||||
to="/forgot-password"
|
to="/forgot-password"
|
||||||
className="text-xs font-medium text-brand-500 transition-colors hover:text-brand-600"
|
className="text-xs font-medium text-brand-500 transition-colors hover:text-brand-600"
|
||||||
|
|
|
||||||
|
|
@ -555,7 +555,7 @@ export function AddPracticeFlow() {
|
||||||
<div className="flex flex-col gap-4 w-full max-w-[400px]">
|
<div className="flex flex-col gap-4 w-full max-w-[400px]">
|
||||||
<Button
|
<Button
|
||||||
onClick={goBack}
|
onClick={goBack}
|
||||||
className="h-14 rounded-[6px] bg-[#9E2891] font-bold shadow-xl shadow-brand-500/20 text-[16px] text-white "
|
className="h-14 rounded-[6px] bg-[#27272A] font-bold shadow-xl shadow-brand-500/20 text-[16px] text-white "
|
||||||
>
|
>
|
||||||
{backLabel}
|
{backLabel}
|
||||||
</Button>
|
</Button>
|
||||||
|
|
@ -601,7 +601,7 @@ export function AddPracticeFlow() {
|
||||||
});
|
});
|
||||||
}}
|
}}
|
||||||
variant="outline"
|
variant="outline"
|
||||||
className="h-14 rounded-[6px] border-[#9E2891] text-[#9E2891] font-semibold text-[16px] bg-white "
|
className="h-14 rounded-[6px] border-[#27272A] text-[#27272A] font-semibold text-[16px] bg-white "
|
||||||
>
|
>
|
||||||
Add Another Practice
|
Add Another Practice
|
||||||
</Button>
|
</Button>
|
||||||
|
|
|
||||||
|
|
@ -56,11 +56,11 @@ export function AttachPracticeFlow() {
|
||||||
</h1>
|
</h1>
|
||||||
<p className="text-grayScale-600 text-md mb-14 max-w-2xl font-medium leading-relaxed">
|
<p className="text-grayScale-600 text-md mb-14 max-w-2xl font-medium leading-relaxed">
|
||||||
The practice has been successfully linked to a video{" "}
|
The practice has been successfully linked to a video{" "}
|
||||||
<span className="text-[#9E2891]">“{formData.video}”</span>
|
<span className="text-[#27272A]">“{formData.video}”</span>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
{/* Video Info Card */}
|
{/* Video Info Card */}
|
||||||
<div className="w-full max-w-[600px] bg-[#9E289114] border border-[#9E2891] rounded-[12px] p-4 flex items-center justify-between mb-16 shadow-sm">
|
<div className="w-full max-w-[600px] bg-[#27272A14] border border-[#27272A] rounded-[12px] p-4 flex items-center justify-between mb-16 shadow-sm">
|
||||||
<div className="flex items-center gap-5">
|
<div className="flex items-center gap-5">
|
||||||
<div className="h-[60px] w-[120px] rounded-xl overflow-hidden shadow-inner flex-shrink-0">
|
<div className="h-[60px] w-[120px] rounded-xl overflow-hidden shadow-inner flex-shrink-0">
|
||||||
<img
|
<img
|
||||||
|
|
@ -86,7 +86,7 @@ export function AttachPracticeFlow() {
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div className="pr-4">
|
<div className="pr-4">
|
||||||
<Check className="h-5 w-5 text-[#9E2891] stroke-[3px]" />
|
<Check className="h-5 w-5 text-[#27272A] stroke-[3px]" />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
@ -94,7 +94,7 @@ export function AttachPracticeFlow() {
|
||||||
<div className="flex flex-col gap-4 w-full max-w-[440px]">
|
<div className="flex flex-col gap-4 w-full max-w-[440px]">
|
||||||
<Button
|
<Button
|
||||||
onClick={() => navigate(backPath)}
|
onClick={() => navigate(backPath)}
|
||||||
className="h-14 rounded-[6px] bg-[#9E2891] font-bold shadow-xl shadow-brand-500/20 text-[16px] text-white"
|
className="h-14 rounded-[6px] bg-[#27272A] font-bold shadow-xl shadow-brand-500/20 text-[16px] text-white"
|
||||||
>
|
>
|
||||||
Go back to Videos
|
Go back to Videos
|
||||||
</Button>
|
</Button>
|
||||||
|
|
@ -104,7 +104,7 @@ export function AttachPracticeFlow() {
|
||||||
setIsPublished(false);
|
setIsPublished(false);
|
||||||
setCurrentStep(1);
|
setCurrentStep(1);
|
||||||
}}
|
}}
|
||||||
className="h-14 rounded-[6px] border-[#9E2891] text-[#9E2891] font-semibold text-[16px] bg-white"
|
className="h-14 rounded-[6px] border-[#27272A] text-[#27272A] font-semibold text-[16px] bg-white"
|
||||||
>
|
>
|
||||||
Attach More Practice
|
Attach More Practice
|
||||||
</Button>
|
</Button>
|
||||||
|
|
@ -179,7 +179,7 @@ export function AttachPracticeFlow() {
|
||||||
>
|
>
|
||||||
Cancel
|
Cancel
|
||||||
</Button>
|
</Button>
|
||||||
<Button className="h-10 w-full rounded-[6px] bg-[#9E2891] px-8 font-bold text-white shadow-md transition-all hover:bg-[#8A237E] sm:w-auto">
|
<Button className="h-10 w-full rounded-[6px] bg-[#27272A] px-8 font-bold text-white shadow-md transition-all hover:bg-[#3F3F46] sm:w-auto">
|
||||||
Save as Draft
|
Save as Draft
|
||||||
</Button>
|
</Button>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -47,13 +47,13 @@ export function AttachProgramPracticeFlow() {
|
||||||
</h1>
|
</h1>
|
||||||
<p className="text-grayScale-600 text-md mb-14 max-w-lg font-medium leading-relaxed">
|
<p className="text-grayScale-600 text-md mb-14 max-w-lg font-medium leading-relaxed">
|
||||||
The practice has been successfully linked to the program{" "}
|
The practice has been successfully linked to the program{" "}
|
||||||
<span className="text-[#9E2891]">“{formData.program}”</span>
|
<span className="text-[#27272A]">“{formData.program}”</span>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<div className="flex flex-col gap-4 w-full max-w-[440px]">
|
<div className="flex flex-col gap-4 w-full max-w-[440px]">
|
||||||
<Button
|
<Button
|
||||||
onClick={() => navigate(backPath)}
|
onClick={() => navigate(backPath)}
|
||||||
className="h-14 rounded-[6px] bg-[#9E2891] font-bold shadow-xl shadow-brand-500/20 text-[16px] text-white "
|
className="h-14 rounded-[6px] bg-[#27272A] font-bold shadow-xl shadow-brand-500/20 text-[16px] text-white "
|
||||||
>
|
>
|
||||||
Go back to Program
|
Go back to Program
|
||||||
</Button>
|
</Button>
|
||||||
|
|
@ -63,7 +63,7 @@ export function AttachProgramPracticeFlow() {
|
||||||
setIsPublished(false);
|
setIsPublished(false);
|
||||||
setCurrentStep(1);
|
setCurrentStep(1);
|
||||||
}}
|
}}
|
||||||
className="h-14 rounded-[6px] border-[#9E2891] text-[#9E2891] font-bold text-[16px] bg-white "
|
className="h-14 rounded-[6px] border-[#27272A] text-[#27272A] font-bold text-[16px] bg-white "
|
||||||
>
|
>
|
||||||
Attach More Practice
|
Attach More Practice
|
||||||
</Button>
|
</Button>
|
||||||
|
|
@ -137,7 +137,7 @@ export function AttachProgramPracticeFlow() {
|
||||||
>
|
>
|
||||||
Cancel
|
Cancel
|
||||||
</Button>
|
</Button>
|
||||||
<Button className="h-10 px-8 rounded-[6px] bg-[#9E2891] font-bold text-white shadow-md hover:bg-[#8A237E] transition-all">
|
<Button className="h-10 px-8 rounded-[6px] bg-[#27272A] font-bold text-white shadow-md hover:bg-[#3F3F46] transition-all">
|
||||||
Save as Draft
|
Save as Draft
|
||||||
</Button>
|
</Button>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -215,7 +215,7 @@ export function ContentOverviewPage() {
|
||||||
<div
|
<div
|
||||||
className="h-1 w-24 rounded-full"
|
className="h-1 w-24 rounded-full"
|
||||||
style={{
|
style={{
|
||||||
background: "linear-gradient(90deg, #9E2891 0%, #6A1B9A 100%)",
|
background: "linear-gradient(90deg, #27272A 0%, #18181B 100%)",
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -256,7 +256,7 @@ export function ContentOverviewPage() {
|
||||||
className="grid h-12 w-12 place-items-center rounded-xl bg-white text-brand-600 shadow-sm ring-1 ring-grayScale-100 transition-all duration-300 group-hover:ring-brand-300 group-hover:shadow-md"
|
className="grid h-12 w-12 place-items-center rounded-xl bg-white text-brand-600 shadow-sm ring-1 ring-grayScale-100 transition-all duration-300 group-hover:ring-brand-300 group-hover:shadow-md"
|
||||||
style={{
|
style={{
|
||||||
background:
|
background:
|
||||||
"linear-gradient(135deg, rgba(158,40,145,0.08) 0%, rgba(106,27,154,0.04) 100%)",
|
"linear-gradient(135deg, rgba(0,0,0,0.08) 0%, rgba(106,27,154,0.04) 100%)",
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<Icon className="h-5.5 w-5.5 transition-transform duration-300 group-hover:scale-110" />
|
<Icon className="h-5.5 w-5.5 transition-transform duration-300 group-hover:scale-110" />
|
||||||
|
|
|
||||||
|
|
@ -77,7 +77,7 @@ import {
|
||||||
} from "../../lib/practiceParentUnlink"
|
} from "../../lib/practiceParentUnlink"
|
||||||
import { SearchHighlight } from "../../components/SearchHighlight"
|
import { SearchHighlight } from "../../components/SearchHighlight"
|
||||||
|
|
||||||
const MODULE_CARD_GRADIENT = "from-[#8E44AD] to-[#C39BD3]" as const;
|
const MODULE_CARD_GRADIENT = "from-[#27272A] to-[#52525B]" as const;
|
||||||
|
|
||||||
function isLikelyImageUrl(src: string): boolean {
|
function isLikelyImageUrl(src: string): boolean {
|
||||||
const t = src.trim();
|
const t = src.trim();
|
||||||
|
|
@ -143,7 +143,7 @@ function ModuleIconCircle({
|
||||||
<div
|
<div
|
||||||
className={cn(
|
className={cn(
|
||||||
"flex h-12 w-12 flex-shrink-0 items-center justify-center overflow-hidden rounded-full border border-purple-100/50 p-2",
|
"flex h-12 w-12 flex-shrink-0 items-center justify-center overflow-hidden rounded-full border border-purple-100/50 p-2",
|
||||||
index % 2 === 1 ? "bg-[#F8FAFC]" : "bg-[#f3e8ff]",
|
index % 2 === 1 ? "bg-[#F4F4F5]" : "bg-[#F4F4F5]",
|
||||||
)}
|
)}
|
||||||
>
|
>
|
||||||
{showImg ? (
|
{showImg ? (
|
||||||
|
|
@ -951,7 +951,7 @@ export function CourseDetailPage() {
|
||||||
<div className="mt-auto flex shrink-0 items-center gap-3">
|
<div className="mt-auto flex shrink-0 items-center gap-3">
|
||||||
<Button
|
<Button
|
||||||
variant="outline"
|
variant="outline"
|
||||||
className="h-10 flex-1 rounded-[6px] border-[#9E2891] text-sm text-[#9E2891] transition-all"
|
className="h-10 flex-1 rounded-[6px] border-[#27272A] text-sm text-[#27272A] transition-all"
|
||||||
onClick={() =>
|
onClick={() =>
|
||||||
navigate(
|
navigate(
|
||||||
`/new-content/learn-english/${programIdParam}/courses/${courseIdParam}/modules/${module.id}`,
|
`/new-content/learn-english/${programIdParam}/courses/${courseIdParam}/modules/${module.id}`,
|
||||||
|
|
@ -1035,9 +1035,9 @@ export function CourseDetailPage() {
|
||||||
onDelete={(practice) => setPracticeToDelete(practice)}
|
onDelete={(practice) => setPracticeToDelete(practice)}
|
||||||
/>
|
/>
|
||||||
) : (
|
) : (
|
||||||
<div className="mx-auto flex max-w-4xl flex-col items-center justify-center rounded-[40px] border-2 border-dashed border-[#F1F5F9] bg-white px-4 py-32 shadow-sm">
|
<div className="mx-auto flex max-w-4xl flex-col items-center justify-center rounded-[40px] border-2 border-dashed border-[#E4E4E7] bg-white px-4 py-32 shadow-sm">
|
||||||
<div className="mb-6 flex h-20 w-20 items-center justify-center rounded-full bg-[#FAF5FF]">
|
<div className="mb-6 flex h-20 w-20 items-center justify-center rounded-full bg-[#F4F4F5]">
|
||||||
<div className="flex h-14 w-14 items-center justify-center rounded-full bg-[#F5EBFF]">
|
<div className="flex h-14 w-14 items-center justify-center rounded-full bg-[#E4E4E7]">
|
||||||
<Calendar className="h-7 w-7 text-brand-500" />
|
<Calendar className="h-7 w-7 text-brand-500" />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -59,10 +59,10 @@ import {
|
||||||
} from "../../lib/fetchAllOffsetPages";
|
} from "../../lib/fetchAllOffsetPages";
|
||||||
|
|
||||||
const LESSON_THUMB_GRADIENTS = [
|
const LESSON_THUMB_GRADIENTS = [
|
||||||
"from-[#CBD5E1] to-[#94A3B8]",
|
"from-[#D4D4D8] to-[#71717A]",
|
||||||
"from-[#DBEAFE] to-[#93C5FD]",
|
"from-[#E4E4E7] to-[#A1A1AA]",
|
||||||
"from-[#FEF3C7] to-[#FCD34D]",
|
"from-[#E4E4E7] to-[#71717A]",
|
||||||
"from-[#FCE7F3] to-[#F9A8D4]",
|
"from-[#E4E4E7] to-[#A1A1AA]",
|
||||||
] as const;
|
] as const;
|
||||||
|
|
||||||
export function CourseModuleDetailPage() {
|
export function CourseModuleDetailPage() {
|
||||||
|
|
@ -913,9 +913,9 @@ export function CourseModuleDetailPage() {
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
) : (
|
) : (
|
||||||
<div className="flex flex-col items-center justify-center py-32 px-4 rounded-[40px] border-2 border-dashed border-[#F1F5F9] bg-white max-w-4xl mx-auto shadow-sm">
|
<div className="flex flex-col items-center justify-center py-32 px-4 rounded-[40px] border-2 border-dashed border-[#E4E4E7] bg-white max-w-4xl mx-auto shadow-sm">
|
||||||
<div className="h-20 w-20 rounded-full bg-[#FAF5FF] flex items-center justify-center mb-6">
|
<div className="h-20 w-20 rounded-full bg-[#F4F4F5] flex items-center justify-center mb-6">
|
||||||
<div className="h-14 w-14 rounded-full bg-[#F5EBFF] flex items-center justify-center">
|
<div className="h-14 w-14 rounded-full bg-[#E4E4E7] flex items-center justify-center">
|
||||||
<Video className="h-7 w-7 text-brand-500 fill-brand-500/10" />
|
<Video className="h-7 w-7 text-brand-500 fill-brand-500/10" />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -374,7 +374,7 @@ export function CreateQuestionTypeFlow() {
|
||||||
Cancel
|
Cancel
|
||||||
</Button>
|
</Button>
|
||||||
<Button
|
<Button
|
||||||
className="h-10 w-full rounded-[6px] bg-[#9E2891] px-8 font-medium text-white shadow-lg shadow-brand-500/10 transition-all hover:bg-[#8A237E] sm:w-auto"
|
className="h-10 w-full rounded-[6px] bg-[#27272A] px-8 font-medium text-white shadow-lg shadow-brand-500/10 transition-all hover:bg-[#3F3F46] sm:w-auto"
|
||||||
onClick={() => void handleHeaderSaveDraft()}
|
onClick={() => void handleHeaderSaveDraft()}
|
||||||
disabled={saving || (isEdit && !hasUnsavedChanges)}
|
disabled={saving || (isEdit && !hasUnsavedChanges)}
|
||||||
>
|
>
|
||||||
|
|
|
||||||
|
|
@ -542,7 +542,7 @@ export function LearnEnglishPage() {
|
||||||
/>
|
/>
|
||||||
<button
|
<button
|
||||||
type="button"
|
type="button"
|
||||||
className="relative w-full cursor-pointer rounded-[6px] border-2 border-dashed border-[#9E289133] bg-white p-10 text-left transition-all hover:border-[#9E289180] disabled:cursor-not-allowed disabled:opacity-60"
|
className="relative w-full cursor-pointer rounded-[6px] border-2 border-dashed border-[#27272A33] bg-white p-10 text-left transition-all hover:border-[#27272A80] disabled:cursor-not-allowed disabled:opacity-60"
|
||||||
disabled={createSaving || createUploadingThumbnail}
|
disabled={createSaving || createUploadingThumbnail}
|
||||||
onClick={() => createThumbnailFileInputRef.current?.click()}
|
onClick={() => createThumbnailFileInputRef.current?.click()}
|
||||||
>
|
>
|
||||||
|
|
@ -551,7 +551,7 @@ export function LearnEnglishPage() {
|
||||||
<img src={uploadIcon} alt="" className="h-10 w-10" />
|
<img src={uploadIcon} alt="" className="h-10 w-10" />
|
||||||
</div>
|
</div>
|
||||||
<p className="text-sm">
|
<p className="text-sm">
|
||||||
<span className="font-bold text-[#9E2891]">
|
<span className="font-bold text-[#27272A]">
|
||||||
{createUploadingThumbnail
|
{createUploadingThumbnail
|
||||||
? "Uploading…"
|
? "Uploading…"
|
||||||
: "Click to upload"}
|
: "Click to upload"}
|
||||||
|
|
@ -708,7 +708,7 @@ export function LearnEnglishPage() {
|
||||||
}
|
}
|
||||||
: {
|
: {
|
||||||
background:
|
background:
|
||||||
"linear-gradient(135deg, #9E289180 0%, #9E2891 100%)",
|
"linear-gradient(135deg, #27272A80 0%, #27272A 100%)",
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
/>
|
/>
|
||||||
|
|
|
||||||
|
|
@ -63,10 +63,10 @@ import {
|
||||||
} from "../../lib/contentListFilters";
|
} from "../../lib/contentListFilters";
|
||||||
|
|
||||||
const LESSON_THUMB_GRADIENTS = [
|
const LESSON_THUMB_GRADIENTS = [
|
||||||
"from-[#CBD5E1] to-[#94A3B8]",
|
"from-[#D4D4D8] to-[#71717A]",
|
||||||
"from-[#DBEAFE] to-[#93C5FD]",
|
"from-[#E4E4E7] to-[#A1A1AA]",
|
||||||
"from-[#FEF3C7] to-[#FCD34D]",
|
"from-[#E4E4E7] to-[#71717A]",
|
||||||
"from-[#FCE7F3] to-[#F9A8D4]",
|
"from-[#E4E4E7] to-[#A1A1AA]",
|
||||||
] as const;
|
] as const;
|
||||||
|
|
||||||
type ModuleDetailState = {
|
type ModuleDetailState = {
|
||||||
|
|
@ -727,9 +727,9 @@ export function ModuleDetailPage() {
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
) : (
|
) : (
|
||||||
<div className="flex flex-col items-center justify-center py-32 px-4 rounded-[40px] border-2 border-dashed border-[#F1F5F9] bg-white max-w-4xl mx-auto shadow-sm">
|
<div className="flex flex-col items-center justify-center py-32 px-4 rounded-[40px] border-2 border-dashed border-[#E4E4E7] bg-white max-w-4xl mx-auto shadow-sm">
|
||||||
<div className="h-20 w-20 rounded-full bg-[#FAF5FF] flex items-center justify-center mb-6">
|
<div className="h-20 w-20 rounded-full bg-[#F4F4F5] flex items-center justify-center mb-6">
|
||||||
<div className="h-14 w-14 rounded-full bg-[#F5EBFF] flex items-center justify-center">
|
<div className="h-14 w-14 rounded-full bg-[#E4E4E7] flex items-center justify-center">
|
||||||
<Video className="h-7 w-7 text-brand-500 fill-brand-500/10" />
|
<Video className="h-7 w-7 text-brand-500 fill-brand-500/10" />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -808,9 +808,9 @@ export function ModuleDetailPage() {
|
||||||
onDelete={(practice) => setPracticeToDelete(practice)}
|
onDelete={(practice) => setPracticeToDelete(practice)}
|
||||||
/>
|
/>
|
||||||
) : (
|
) : (
|
||||||
<div className="flex flex-col items-center justify-center py-32 px-4 rounded-[40px] border-2 border-dashed border-[#F1F5F9] bg-white max-w-4xl mx-auto shadow-sm">
|
<div className="flex flex-col items-center justify-center py-32 px-4 rounded-[40px] border-2 border-dashed border-[#E4E4E7] bg-white max-w-4xl mx-auto shadow-sm">
|
||||||
<div className="h-20 w-20 rounded-full bg-[#FAF5FF] flex items-center justify-center mb-6">
|
<div className="h-20 w-20 rounded-full bg-[#F4F4F5] flex items-center justify-center mb-6">
|
||||||
<div className="h-14 w-14 rounded-full bg-[#F5EBFF] flex items-center justify-center">
|
<div className="h-14 w-14 rounded-full bg-[#E4E4E7] flex items-center justify-center">
|
||||||
<Calendar className="h-7 w-7 text-brand-500" />
|
<Calendar className="h-7 w-7 text-brand-500" />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -558,7 +558,7 @@ export function ProgramCoursesPage() {
|
||||||
/>
|
/>
|
||||||
<button
|
<button
|
||||||
type="button"
|
type="button"
|
||||||
className="relative w-full cursor-pointer rounded-[6px] border-2 border-dashed border-[#9E289133] bg-white p-10 text-left transition-all hover:border-[#9E289180] disabled:cursor-not-allowed disabled:opacity-60"
|
className="relative w-full cursor-pointer rounded-[6px] border-2 border-dashed border-[#27272A33] bg-white p-10 text-left transition-all hover:border-[#27272A80] disabled:cursor-not-allowed disabled:opacity-60"
|
||||||
disabled={createSaving || createUploadingThumbnail}
|
disabled={createSaving || createUploadingThumbnail}
|
||||||
onClick={() =>
|
onClick={() =>
|
||||||
createThumbnailFileInputRef.current?.click()
|
createThumbnailFileInputRef.current?.click()
|
||||||
|
|
@ -573,7 +573,7 @@ export function ProgramCoursesPage() {
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<p className="text-sm">
|
<p className="text-sm">
|
||||||
<span className="font-bold text-[#9E2891]">
|
<span className="font-bold text-[#27272A]">
|
||||||
{createUploadingThumbnail
|
{createUploadingThumbnail
|
||||||
? "Uploading…"
|
? "Uploading…"
|
||||||
: "Click to upload"}
|
: "Click to upload"}
|
||||||
|
|
@ -740,7 +740,7 @@ export function ProgramCoursesPage() {
|
||||||
}
|
}
|
||||||
: {
|
: {
|
||||||
background:
|
background:
|
||||||
"linear-gradient(135deg, #9E289180 0%, #9E2891 100%)",
|
"linear-gradient(135deg, #27272A80 0%, #27272A 100%)",
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
/>
|
/>
|
||||||
|
|
|
||||||
|
|
@ -185,7 +185,7 @@ export function QuestionTypeGroupDetailPage() {
|
||||||
Delete group
|
Delete group
|
||||||
</Button>
|
</Button>
|
||||||
<Link to={`/new-content/question-types/create?groupId=${group.id}`}>
|
<Link to={`/new-content/question-types/create?groupId=${group.id}`}>
|
||||||
<Button size="sm" className="bg-[#9E2891] hover:bg-[#8A237E] text-white">
|
<Button size="sm" className="bg-[#27272A] hover:bg-[#3F3F46] text-white">
|
||||||
<Plus className="mr-2 h-4 w-4" />
|
<Plus className="mr-2 h-4 w-4" />
|
||||||
Add definition
|
Add definition
|
||||||
</Button>
|
</Button>
|
||||||
|
|
|
||||||
|
|
@ -197,7 +197,7 @@ export function QuestionTypeLibraryPage() {
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
<Link to="/new-content/question-types/create">
|
<Link to="/new-content/question-types/create">
|
||||||
<Button className="h-12 px-8 rounded-[6px] bg-[#9E2891] font-bold text-white shadow-lg shadow-brand-500/10 hover:bg-[#8A237E] transition-all flex items-center gap-3">
|
<Button className="h-12 px-8 rounded-[6px] bg-[#27272A] font-bold text-white shadow-lg shadow-brand-500/10 hover:bg-[#3F3F46] transition-all flex items-center gap-3">
|
||||||
<Plus className="h-5 w-5" />
|
<Plus className="h-5 w-5" />
|
||||||
Create definition
|
Create definition
|
||||||
</Button>
|
</Button>
|
||||||
|
|
|
||||||
|
|
@ -2573,7 +2573,7 @@ export function SpeakingPage() {
|
||||||
style={{
|
style={{
|
||||||
background:
|
background:
|
||||||
segmentIdx < activeSegments
|
segmentIdx < activeSegments
|
||||||
? "linear-gradient(180deg, #9E2891 0%, #6A1B9A 100%)"
|
? "linear-gradient(180deg, #27272A 0%, #18181B 100%)"
|
||||||
: "rgba(189, 189, 189, 0.35)",
|
: "rgba(189, 189, 189, 0.35)",
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
|
|
|
||||||
|
|
@ -598,7 +598,7 @@ export function SubModuleContentPage() {
|
||||||
<p className="text-sm leading-relaxed text-grayScale-500 line-clamp-2">{practice.description}</p>
|
<p className="text-sm leading-relaxed text-grayScale-500 line-clamp-2">{practice.description}</p>
|
||||||
|
|
||||||
<div className="flex items-center gap-2 flex-wrap">
|
<div className="flex items-center gap-2 flex-wrap">
|
||||||
<Badge className="rounded-full bg-[#f3e8ff] text-[#6b21a8] text-[11px] font-medium px-2.5 py-0.5 ring-1 ring-inset ring-[#d8b4fe]">
|
<Badge className="rounded-full bg-[#F4F4F5] text-[#3F3F46] text-[11px] font-medium px-2.5 py-0.5 ring-1 ring-inset ring-[#D4D4D8]">
|
||||||
{practice.set_type}
|
{practice.set_type}
|
||||||
</Badge>
|
</Badge>
|
||||||
{practice.persona && (
|
{practice.persona && (
|
||||||
|
|
|
||||||
|
|
@ -934,7 +934,7 @@ export function UnitManagementPage() {
|
||||||
|
|
||||||
<div className="p-5 flex flex-col space-y-4">
|
<div className="p-5 flex flex-col space-y-4">
|
||||||
<div className="flex items-start gap-3">
|
<div className="flex items-start gap-3">
|
||||||
<div className="mt-1 h-10 w-10 shrink-0 rounded-full bg-[#9E28911A] border border-[#9E289133] flex items-center justify-center overflow-hidden">
|
<div className="mt-1 h-10 w-10 shrink-0 rounded-full bg-[#27272A1A] border border-[#27272A33] flex items-center justify-center overflow-hidden">
|
||||||
{module.icon ? (
|
{module.icon ? (
|
||||||
<ResolvedImage
|
<ResolvedImage
|
||||||
src={module.icon}
|
src={module.icon}
|
||||||
|
|
|
||||||
|
|
@ -197,9 +197,9 @@ export function LessonMediaUploadField({
|
||||||
onDragLeave={handleDragLeave}
|
onDragLeave={handleDragLeave}
|
||||||
onDrop={handleDrop}
|
onDrop={handleDrop}
|
||||||
className={cn(
|
className={cn(
|
||||||
"flex w-full cursor-pointer flex-col items-center justify-center rounded-[6px] border-2 border-dashed border-[#9E289133] bg-white p-10 text-center transition-colors",
|
"flex w-full cursor-pointer flex-col items-center justify-center rounded-[6px] border-2 border-dashed border-[#27272A33] bg-white p-10 text-center transition-colors",
|
||||||
"hover:border-[#9E289180] hover:bg-grayScale-50/30",
|
"hover:border-[#27272A80] hover:bg-grayScale-50/30",
|
||||||
dragActive && "border-[#9E2891] bg-[#9E289108]",
|
dragActive && "border-[#27272A] bg-[#27272A08]",
|
||||||
zoneDisabled && "cursor-not-allowed opacity-60",
|
zoneDisabled && "cursor-not-allowed opacity-60",
|
||||||
)}
|
)}
|
||||||
>
|
>
|
||||||
|
|
@ -210,12 +210,12 @@ export function LessonMediaUploadField({
|
||||||
) : (
|
) : (
|
||||||
<>
|
<>
|
||||||
<CloudUpload
|
<CloudUpload
|
||||||
className="mb-4 h-10 w-10 text-[#9E2891]"
|
className="mb-4 h-10 w-10 text-[#27272A]"
|
||||||
strokeWidth={1.5}
|
strokeWidth={1.5}
|
||||||
aria-hidden
|
aria-hidden
|
||||||
/>
|
/>
|
||||||
<p className="text-sm">
|
<p className="text-sm">
|
||||||
<span className="font-bold text-[#9E2891]">Click to upload</span>{" "}
|
<span className="font-bold text-[#27272A]">Click to upload</span>{" "}
|
||||||
<span className="text-grayScale-500">or paste a URL below</span>
|
<span className="text-grayScale-500">or paste a URL below</span>
|
||||||
</p>
|
</p>
|
||||||
<p className="mt-1 text-xs font-medium uppercase tracking-wider text-grayScale-400">
|
<p className="mt-1 text-xs font-medium uppercase tracking-wider text-grayScale-400">
|
||||||
|
|
|
||||||
|
|
@ -126,9 +126,9 @@ export function ModuleIconUploadField({
|
||||||
onDragLeave={handleDragLeave}
|
onDragLeave={handleDragLeave}
|
||||||
onDrop={handleDrop}
|
onDrop={handleDrop}
|
||||||
className={cn(
|
className={cn(
|
||||||
"flex w-full cursor-pointer flex-col items-center justify-center rounded-[6px] border-2 border-dashed border-[#9E289133] bg-white p-10 text-center transition-colors",
|
"flex w-full cursor-pointer flex-col items-center justify-center rounded-[6px] border-2 border-dashed border-[#27272A33] bg-white p-10 text-center transition-colors",
|
||||||
"hover:border-[#9E289180] hover:bg-grayScale-50/30",
|
"hover:border-[#27272A80] hover:bg-grayScale-50/30",
|
||||||
dragActive && "border-[#9E2891] bg-[#9E289108]",
|
dragActive && "border-[#27272A] bg-[#27272A08]",
|
||||||
zoneDisabled && "cursor-not-allowed opacity-60",
|
zoneDisabled && "cursor-not-allowed opacity-60",
|
||||||
)}
|
)}
|
||||||
>
|
>
|
||||||
|
|
@ -137,12 +137,12 @@ export function ModuleIconUploadField({
|
||||||
) : (
|
) : (
|
||||||
<>
|
<>
|
||||||
<CloudUpload
|
<CloudUpload
|
||||||
className="mb-4 h-10 w-10 text-[#9E2891]"
|
className="mb-4 h-10 w-10 text-[#27272A]"
|
||||||
strokeWidth={1.5}
|
strokeWidth={1.5}
|
||||||
aria-hidden
|
aria-hidden
|
||||||
/>
|
/>
|
||||||
<p className="text-sm">
|
<p className="text-sm">
|
||||||
<span className="font-bold text-[#9E2891]">Click to upload</span>{" "}
|
<span className="font-bold text-[#27272A]">Click to upload</span>{" "}
|
||||||
<span className="text-grayScale-500">or paste a URL below</span>
|
<span className="text-grayScale-500">or paste a URL below</span>
|
||||||
</p>
|
</p>
|
||||||
<p className="mt-1 text-xs font-medium uppercase tracking-wider text-grayScale-400">
|
<p className="mt-1 text-xs font-medium uppercase tracking-wider text-grayScale-400">
|
||||||
|
|
|
||||||
|
|
@ -91,7 +91,7 @@ export function ModulePracticeCard({
|
||||||
"group flex flex-col overflow-hidden rounded-[20px] border bg-white shadow-sm transition-all hover:shadow-xl hover:shadow-grayScale-400/5",
|
"group flex flex-col overflow-hidden rounded-[20px] border bg-white shadow-sm transition-all hover:shadow-xl hover:shadow-grayScale-400/5",
|
||||||
selected ? "border-brand-400 ring-2 ring-brand-200" : "border-grayScale-50",
|
selected ? "border-brand-400 ring-2 ring-brand-200" : "border-grayScale-50",
|
||||||
)}>
|
)}>
|
||||||
<div className="relative h-44 w-full overflow-hidden bg-gradient-to-br from-[#E0F2FE] to-[#BFDBFE]">
|
<div className="relative h-44 w-full overflow-hidden bg-gradient-to-br from-[#E4E4E7] to-[#A1A1AA]">
|
||||||
{selectable ? (
|
{selectable ? (
|
||||||
<label className="absolute left-3 top-3 z-10 flex h-8 w-8 cursor-pointer items-center justify-center rounded-[6px] bg-white/95 shadow-sm">
|
<label className="absolute left-3 top-3 z-10 flex h-8 w-8 cursor-pointer items-center justify-center rounded-[6px] bg-white/95 shadow-sm">
|
||||||
<input
|
<input
|
||||||
|
|
@ -215,7 +215,7 @@ export function ModulePracticeCard({
|
||||||
className={cn(
|
className={cn(
|
||||||
"h-10 w-full rounded-[6px] text-[12px] font-bold shadow-sm transition-all",
|
"h-10 w-full rounded-[6px] text-[12px] font-bold shadow-sm transition-all",
|
||||||
isPublished
|
isPublished
|
||||||
? "cursor-default bg-[#ECD5E9] text-[#9E2891] hover:bg-[#ECD5E9]"
|
? "cursor-default bg-[#D4D4D8] text-[#27272A] hover:bg-[#D4D4D8]"
|
||||||
: "bg-brand-500 text-white hover:bg-brand-600",
|
: "bg-brand-500 text-white hover:bg-brand-600",
|
||||||
)}
|
)}
|
||||||
onClick={(e) => {
|
onClick={(e) => {
|
||||||
|
|
|
||||||
|
|
@ -65,7 +65,7 @@ export function QuestionTypeCard({
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<div className="flex flex-wrap items-center gap-2 text-grayScale-700 font-medium text-[14px]">
|
<div className="flex flex-wrap items-center gap-2 text-grayScale-700 font-medium text-[14px]">
|
||||||
<Layers className="h-4 w-4 text-[#9E2891]" />
|
<Layers className="h-4 w-4 text-[#27272A]" />
|
||||||
<span>
|
<span>
|
||||||
{stimulusKindsCount} stimulus kinds · {responseKindsCount} response kinds
|
{stimulusKindsCount} stimulus kinds · {responseKindsCount} response kinds
|
||||||
</span>
|
</span>
|
||||||
|
|
|
||||||
|
|
@ -172,7 +172,7 @@ export function QuestionTypeGroupFormDialog({
|
||||||
</Button>
|
</Button>
|
||||||
<Button
|
<Button
|
||||||
type="button"
|
type="button"
|
||||||
className="bg-[#9E2891] hover:bg-[#8A237E] text-white"
|
className="bg-[#27272A] hover:bg-[#3F3F46] text-white"
|
||||||
disabled={submitting}
|
disabled={submitting}
|
||||||
onClick={() => void handleSubmit()}
|
onClick={() => void handleSubmit()}
|
||||||
>
|
>
|
||||||
|
|
|
||||||
|
|
@ -55,7 +55,7 @@ export function QuestionTypeGroupsMultiSelect({
|
||||||
<div className={cn("relative", className)}>
|
<div className={cn("relative", className)}>
|
||||||
<div
|
<div
|
||||||
className={cn(
|
className={cn(
|
||||||
"max-h-48 space-y-1 overflow-y-auto rounded-[12px] border border-grayScale-300 bg-[#F8FAFC] p-3",
|
"max-h-48 space-y-1 overflow-y-auto rounded-[12px] border border-grayScale-300 bg-[#F4F4F5] p-3",
|
||||||
disabled && "opacity-70",
|
disabled && "opacity-70",
|
||||||
)}
|
)}
|
||||||
>
|
>
|
||||||
|
|
|
||||||
|
|
@ -109,7 +109,7 @@ export function VideoCard({
|
||||||
durationSeconds,
|
durationSeconds,
|
||||||
status,
|
status,
|
||||||
publishStatus,
|
publishStatus,
|
||||||
thumbnailGradient = "from-[#CBD5E1] to-[#94A3B8]",
|
thumbnailGradient = "from-[#D4D4D8] to-[#71717A]",
|
||||||
thumbnailUrl,
|
thumbnailUrl,
|
||||||
videoUrl,
|
videoUrl,
|
||||||
onEdit,
|
onEdit,
|
||||||
|
|
@ -404,7 +404,7 @@ export function VideoCard({
|
||||||
className="max-w-4xl w-[min(100vw-1.5rem,56rem)] gap-0 overflow-hidden rounded-2xl border border-grayScale-200 p-0 shadow-2xl"
|
className="max-w-4xl w-[min(100vw-1.5rem,56rem)] gap-0 overflow-hidden rounded-2xl border border-grayScale-200 p-0 shadow-2xl"
|
||||||
onOpenAutoFocus={(e) => e.preventDefault()}
|
onOpenAutoFocus={(e) => e.preventDefault()}
|
||||||
>
|
>
|
||||||
<div className="border-b border-grayScale-100 bg-gradient-to-r from-[#F8FAFC] to-white px-5 py-4 pr-12 sm:px-6 sm:pr-14">
|
<div className="border-b border-grayScale-100 bg-gradient-to-r from-[#F4F4F5] to-white px-5 py-4 pr-12 sm:px-6 sm:pr-14">
|
||||||
<DialogHeader className="space-y-0.5 p-0 text-left">
|
<DialogHeader className="space-y-0.5 p-0 text-left">
|
||||||
<p className="text-[10px] font-bold uppercase tracking-[0.2em] text-brand-500">
|
<p className="text-[10px] font-bold uppercase tracking-[0.2em] text-brand-500">
|
||||||
Short preview
|
Short preview
|
||||||
|
|
|
||||||
|
|
@ -92,7 +92,7 @@ export function AttachPracticeReviewStep({
|
||||||
onClick={() => setIsExpanded(!isExpanded)}
|
onClick={() => setIsExpanded(!isExpanded)}
|
||||||
>
|
>
|
||||||
<div className="flex items-center gap-4">
|
<div className="flex items-center gap-4">
|
||||||
<div className="h-12 w-12 rounded-full bg-[#FDF2F8] flex items-center justify-center text-[#9E2891]">
|
<div className="h-12 w-12 rounded-full bg-[#F4F4F5] flex items-center justify-center text-[#27272A]">
|
||||||
<ClipboardList className="h-6 w-6" />
|
<ClipboardList className="h-6 w-6" />
|
||||||
</div>
|
</div>
|
||||||
<div className="space-y-0.5">
|
<div className="space-y-0.5">
|
||||||
|
|
@ -105,7 +105,7 @@ export function AttachPracticeReviewStep({
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div className="flex items-center gap-6">
|
<div className="flex items-center gap-6">
|
||||||
<button className="flex items-center gap-2 text-[#9E2891] font-medium text-[14px] hover:opacity-80 transition-opacity">
|
<button className="flex items-center gap-2 text-[#27272A] font-medium text-[14px] hover:opacity-80 transition-opacity">
|
||||||
<Eye className="h-4 w-4" />
|
<Eye className="h-4 w-4" />
|
||||||
Preview
|
Preview
|
||||||
</button>
|
</button>
|
||||||
|
|
@ -163,7 +163,7 @@ export function AttachPracticeReviewStep({
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{/* 3. Confirmation Checkbox */}
|
{/* 3. Confirmation Checkbox */}
|
||||||
<div className="bg-[#F1F5F9] border border-[#E2E8F0] px-6 py-4 rounded-[12px] flex items-start gap-4">
|
<div className="bg-[#E4E4E7] border border-[#E2E8F0] px-6 py-4 rounded-[12px] flex items-start gap-4">
|
||||||
<input
|
<input
|
||||||
type="checkbox"
|
type="checkbox"
|
||||||
id="confirm"
|
id="confirm"
|
||||||
|
|
@ -207,7 +207,7 @@ export function AttachPracticeReviewStep({
|
||||||
className={cn(
|
className={cn(
|
||||||
"flex h-12 w-full items-center justify-center gap-3 rounded-[6px] px-10 font-bold text-white shadow-xl transition-all active:scale-95 sm:w-auto",
|
"flex h-12 w-full items-center justify-center gap-3 rounded-[6px] px-10 font-bold text-white shadow-xl transition-all active:scale-95 sm:w-auto",
|
||||||
isConfirmed
|
isConfirmed
|
||||||
? "bg-[#9E2891] shadow-[#9E2891]/20 hover:bg-[#8A237E]"
|
? "bg-[#27272A] shadow-[#27272A]/20 hover:bg-[#3F3F46]"
|
||||||
: "cursor-not-allowed bg-grayScale-200 opacity-50",
|
: "cursor-not-allowed bg-grayScale-200 opacity-50",
|
||||||
)}
|
)}
|
||||||
>
|
>
|
||||||
|
|
|
||||||
|
|
@ -148,7 +148,7 @@ export function AttachPracticeStep1({
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div className="flex flex-col-reverse gap-3 border-t border-grayScale-200 bg-[#F8FAFC] px-4 py-4 sm:flex-row sm:items-center sm:justify-between sm:px-8">
|
<div className="flex flex-col-reverse gap-3 border-t border-grayScale-200 bg-[#F4F4F5] px-4 py-4 sm:flex-row sm:items-center sm:justify-between sm:px-8">
|
||||||
<button
|
<button
|
||||||
className="text-[14px] text-grayScale-500 transition-colors hover:text-grayScale-700"
|
className="text-[14px] text-grayScale-500 transition-colors hover:text-grayScale-700"
|
||||||
onClick={onCancel}
|
onClick={onCancel}
|
||||||
|
|
@ -157,7 +157,7 @@ export function AttachPracticeStep1({
|
||||||
</button>
|
</button>
|
||||||
<Button
|
<Button
|
||||||
onClick={nextStep}
|
onClick={nextStep}
|
||||||
className="flex h-10 w-full items-center justify-center gap-3 rounded-[6px] bg-[#9E2891] px-8 text-[14px] font-bold text-white shadow-lg shadow-brand-500/10 transition-all active:scale-95 sm:w-auto sm:px-12"
|
className="flex h-10 w-full items-center justify-center gap-3 rounded-[6px] bg-[#27272A] px-8 text-[14px] font-bold text-white shadow-lg shadow-brand-500/10 transition-all active:scale-95 sm:w-auto sm:px-12"
|
||||||
>
|
>
|
||||||
Next: Review
|
Next: Review
|
||||||
<ArrowRight className="h-4 w-4" />
|
<ArrowRight className="h-4 w-4" />
|
||||||
|
|
|
||||||
|
|
@ -336,7 +336,7 @@ export function ContextStep({
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div className="flex flex-col-reverse gap-3 border-t border-grayScale-100 bg-[#F8FAFC] p-4 sm:flex-row sm:items-center sm:justify-between sm:px-8">
|
<div className="flex flex-col-reverse gap-3 border-t border-grayScale-100 bg-[#F4F4F5] p-4 sm:flex-row sm:items-center sm:justify-between sm:px-8">
|
||||||
<button
|
<button
|
||||||
type="button"
|
type="button"
|
||||||
className="text-[14px] font-bold text-grayScale-500 transition-colors hover:text-grayScale-700"
|
className="text-[14px] font-bold text-grayScale-500 transition-colors hover:text-grayScale-700"
|
||||||
|
|
|
||||||
|
|
@ -226,7 +226,7 @@ export function PracticeSequentialReview({
|
||||||
) : persona?.avatar ? (
|
) : persona?.avatar ? (
|
||||||
<PersonaAvatar src={persona.avatar} alt={persona.name} size="md" />
|
<PersonaAvatar src={persona.avatar} alt={persona.name} size="md" />
|
||||||
) : (
|
) : (
|
||||||
<div className="flex h-full w-full items-center justify-center bg-gradient-to-br from-[#E0F2FE] to-[#BFDBFE]" />
|
<div className="flex h-full w-full items-center justify-center bg-gradient-to-br from-[#E4E4E7] to-[#A1A1AA]" />
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -75,7 +75,7 @@ export function ProgramAttachReviewStep({
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{/* Footer Actions */}
|
{/* Footer Actions */}
|
||||||
<div className="flex flex-col-reverse gap-3 rounded-[12px] border border-grayScale-200 bg-[#F8FAFC] px-4 py-4 sm:flex-row sm:items-center sm:justify-between sm:px-6">
|
<div className="flex flex-col-reverse gap-3 rounded-[12px] border border-grayScale-200 bg-[#F4F4F5] px-4 py-4 sm:flex-row sm:items-center sm:justify-between sm:px-6">
|
||||||
<Button
|
<Button
|
||||||
onClick={onCancel}
|
onClick={onCancel}
|
||||||
variant="outline"
|
variant="outline"
|
||||||
|
|
@ -85,7 +85,7 @@ export function ProgramAttachReviewStep({
|
||||||
</Button>
|
</Button>
|
||||||
<Button
|
<Button
|
||||||
onClick={onPublish}
|
onClick={onPublish}
|
||||||
className="flex h-10 w-full items-center justify-center gap-3 rounded-[6px] bg-[#9E2891] px-10 text-[16px] font-medium text-white transition-all active:scale-95 sm:w-auto"
|
className="flex h-10 w-full items-center justify-center gap-3 rounded-[6px] bg-[#27272A] px-10 text-[16px] font-medium text-white transition-all active:scale-95 sm:w-auto"
|
||||||
>
|
>
|
||||||
Next: Review & Publish
|
Next: Review & Publish
|
||||||
<ArrowRight className="h-4 w-4" />
|
<ArrowRight className="h-4 w-4" />
|
||||||
|
|
|
||||||
|
|
@ -113,15 +113,15 @@ export function ProgramAttachStep1({
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{/* Add More Button */}
|
{/* Add More Button */}
|
||||||
<button className="flex items-center gap-2 text-[#9E2891] font-medium text-[14px] group transition-all hover:translate-x-1">
|
<button className="flex items-center gap-2 text-[#27272A] font-medium text-[14px] group transition-all hover:translate-x-1">
|
||||||
<div className="h-5 w-5 rounded-full border-2 border-[#9E2891] flex items-center justify-center">
|
<div className="h-5 w-5 rounded-full border-2 border-[#27272A] flex items-center justify-center">
|
||||||
<Plus className="h-3 w-3" />
|
<Plus className="h-3 w-3" />
|
||||||
</div>
|
</div>
|
||||||
Add More
|
Add More
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div className="flex flex-col-reverse gap-3 border-t border-grayScale-200 bg-[#F8FAFC] px-4 py-4 sm:flex-row sm:items-center sm:justify-between sm:px-8">
|
<div className="flex flex-col-reverse gap-3 border-t border-grayScale-200 bg-[#F4F4F5] px-4 py-4 sm:flex-row sm:items-center sm:justify-between sm:px-8">
|
||||||
<button
|
<button
|
||||||
className="text-[14px] text-grayScale-500 transition-colors hover:text-grayScale-700"
|
className="text-[14px] text-grayScale-500 transition-colors hover:text-grayScale-700"
|
||||||
onClick={onCancel}
|
onClick={onCancel}
|
||||||
|
|
@ -130,7 +130,7 @@ export function ProgramAttachStep1({
|
||||||
</button>
|
</button>
|
||||||
<Button
|
<Button
|
||||||
onClick={nextStep}
|
onClick={nextStep}
|
||||||
className="flex h-10 w-full items-center justify-center gap-3 rounded-[6px] bg-[#9E2891] px-8 text-[14px] font-bold text-white shadow-lg shadow-brand-500/10 transition-all active:scale-95 sm:w-auto sm:px-12"
|
className="flex h-10 w-full items-center justify-center gap-3 rounded-[6px] bg-[#27272A] px-8 text-[14px] font-bold text-white shadow-lg shadow-brand-500/10 transition-all active:scale-95 sm:w-auto sm:px-12"
|
||||||
>
|
>
|
||||||
Next: Review
|
Next: Review
|
||||||
<ArrowRight className="h-4 w-4" />
|
<ArrowRight className="h-4 w-4" />
|
||||||
|
|
|
||||||
|
|
@ -287,7 +287,7 @@ export function QuestionBankAttachDialog({
|
||||||
>
|
>
|
||||||
<input
|
<input
|
||||||
type="checkbox"
|
type="checkbox"
|
||||||
className="mt-1 h-4 w-4 shrink-0 rounded border-grayScale-300 accent-[#9E2891]"
|
className="mt-1 h-4 w-4 shrink-0 rounded border-grayScale-300 accent-[#27272A]"
|
||||||
checked={checked}
|
checked={checked}
|
||||||
onChange={() => toggleId(q.id)}
|
onChange={() => toggleId(q.id)}
|
||||||
/>
|
/>
|
||||||
|
|
|
||||||
|
|
@ -337,7 +337,7 @@ export function SelectPracticeToAttachStep({
|
||||||
"flex flex-col-reverse gap-3 border-t border-grayScale-100 sm:flex-row sm:items-center sm:justify-between",
|
"flex flex-col-reverse gap-3 border-t border-grayScale-100 sm:flex-row sm:items-center sm:justify-between",
|
||||||
isDialog
|
isDialog
|
||||||
? "bg-grayScale-50/60 px-4 py-3.5 sm:px-5"
|
? "bg-grayScale-50/60 px-4 py-3.5 sm:px-5"
|
||||||
: "bg-[#F8FAFC] px-4 py-4 sm:px-8",
|
: "bg-[#F4F4F5] px-4 py-4 sm:px-8",
|
||||||
)}
|
)}
|
||||||
>
|
>
|
||||||
<button
|
<button
|
||||||
|
|
|
||||||
|
|
@ -176,7 +176,7 @@ export function VoicePrompt({
|
||||||
className="w-[4px] rounded-full flex-shrink-0"
|
className="w-[4px] rounded-full flex-shrink-0"
|
||||||
style={{
|
style={{
|
||||||
height: `${Math.max(v * 100, 14)}%`,
|
height: `${Math.max(v * 100, 14)}%`,
|
||||||
backgroundColor: i < playedBars ? "#9E2891" : "#D5C5DC",
|
backgroundColor: i < playedBars ? "#27272A" : "#D5C5DC",
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
))}
|
))}
|
||||||
|
|
|
||||||
|
|
@ -17,7 +17,7 @@ export function ComponentKindCard({ label, Icon, selected, onClick }: ComponentK
|
||||||
className={cn(
|
className={cn(
|
||||||
"w-full flex flex-col items-start justify-between p-4 min-h-[132px] rounded-[6px] border text-left transition-all group relative",
|
"w-full flex flex-col items-start justify-between p-4 min-h-[132px] rounded-[6px] border text-left transition-all group relative",
|
||||||
selected
|
selected
|
||||||
? "border-[#9E2891] bg-white dark:bg-grayScale-100 shadow-[0_4px_12px_rgba(158,40,145,0.08)] ring-1 ring-[#9E2891]"
|
? "border-[#27272A] bg-white dark:bg-grayScale-100 shadow-[0_4px_12px_rgba(0,0,0,0.08)] ring-1 ring-[#27272A]"
|
||||||
: "border-grayScale-200 bg-white dark:bg-grayScale-50 hover:border-grayScale-300 hover:bg-grayScale-50/80 dark:hover:bg-grayScale-100/80",
|
: "border-grayScale-200 bg-white dark:bg-grayScale-50 hover:border-grayScale-300 hover:bg-grayScale-50/80 dark:hover:bg-grayScale-100/80",
|
||||||
)}
|
)}
|
||||||
>
|
>
|
||||||
|
|
@ -25,7 +25,7 @@ export function ComponentKindCard({ label, Icon, selected, onClick }: ComponentK
|
||||||
<div
|
<div
|
||||||
className={cn(
|
className={cn(
|
||||||
"h-12 w-12 rounded-xl flex items-center justify-center shrink-0 transition-colors",
|
"h-12 w-12 rounded-xl flex items-center justify-center shrink-0 transition-colors",
|
||||||
selected ? "bg-[#9E2891] text-white" : "bg-[#F1F5F9] dark:bg-grayScale-200 text-grayScale-600 group-hover:bg-grayScale-100 dark:group-hover:bg-grayScale-200/80",
|
selected ? "bg-[#27272A] text-white" : "bg-[#E4E4E7] dark:bg-grayScale-200 text-grayScale-600 group-hover:bg-grayScale-100 dark:group-hover:bg-grayScale-200/80",
|
||||||
)}
|
)}
|
||||||
>
|
>
|
||||||
<Icon className="h-6 w-6" />
|
<Icon className="h-6 w-6" />
|
||||||
|
|
@ -33,10 +33,10 @@ export function ComponentKindCard({ label, Icon, selected, onClick }: ComponentK
|
||||||
<div
|
<div
|
||||||
className={cn(
|
className={cn(
|
||||||
"h-6 w-6 rounded-full border-2 flex items-center justify-center shrink-0 transition-all",
|
"h-6 w-6 rounded-full border-2 flex items-center justify-center shrink-0 transition-all",
|
||||||
selected ? "border-[#9E2891] bg-white dark:bg-grayScale-50" : "border-grayScale-300 bg-white dark:bg-grayScale-50",
|
selected ? "border-[#27272A] bg-white dark:bg-grayScale-50" : "border-grayScale-300 bg-white dark:bg-grayScale-50",
|
||||||
)}
|
)}
|
||||||
>
|
>
|
||||||
{selected ? <Check className="h-3.5 w-3.5 text-[#9E2891] stroke-[3]" /> : null}
|
{selected ? <Check className="h-3.5 w-3.5 text-[#27272A] stroke-[3]" /> : null}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<span className={cn("text-[15px] font-bold leading-tight mt-2", selected ? "text-grayScale-900" : "text-grayScale-800")}>
|
<span className={cn("text-[15px] font-bold leading-tight mt-2", selected ? "text-grayScale-900" : "text-grayScale-800")}>
|
||||||
|
|
|
||||||
|
|
@ -42,7 +42,7 @@ export function QuestionTypeBasicInfoStep({
|
||||||
Key <span className="text-red-500">*</span>
|
Key <span className="text-red-500">*</span>
|
||||||
</label>
|
</label>
|
||||||
<Input
|
<Input
|
||||||
className="h-12 rounded-[12px] border-grayScale-300 bg-[#F8FAFC] dark:bg-grayScale-100 disabled:opacity-70"
|
className="h-12 rounded-[12px] border-grayScale-300 bg-[#F4F4F5] dark:bg-grayScale-100 disabled:opacity-70"
|
||||||
placeholder="e.g. dynamic_visual_mcq_001"
|
placeholder="e.g. dynamic_visual_mcq_001"
|
||||||
value={draft.key}
|
value={draft.key}
|
||||||
onChange={(e) => setDraft((d) => ({ ...d, key: e.target.value }))}
|
onChange={(e) => setDraft((d) => ({ ...d, key: e.target.value }))}
|
||||||
|
|
@ -62,7 +62,7 @@ export function QuestionTypeBasicInfoStep({
|
||||||
Display name <span className="text-red-500">*</span>
|
Display name <span className="text-red-500">*</span>
|
||||||
</label>
|
</label>
|
||||||
<Input
|
<Input
|
||||||
className="h-12 rounded-[12px] border-grayScale-300 bg-[#F8FAFC] dark:bg-grayScale-100"
|
className="h-12 rounded-[12px] border-grayScale-300 bg-[#F4F4F5] dark:bg-grayScale-100"
|
||||||
placeholder="e.g. Speak About the Photo"
|
placeholder="e.g. Speak About the Photo"
|
||||||
value={draft.display_name}
|
value={draft.display_name}
|
||||||
onChange={(e) => setDraft((d) => ({ ...d, display_name: e.target.value }))}
|
onChange={(e) => setDraft((d) => ({ ...d, display_name: e.target.value }))}
|
||||||
|
|
@ -74,7 +74,7 @@ export function QuestionTypeBasicInfoStep({
|
||||||
<div className="space-y-2">
|
<div className="space-y-2">
|
||||||
<label className="text-[14px] font-medium text-grayScale-700 dark:text-grayScale-500">Description</label>
|
<label className="text-[14px] font-medium text-grayScale-700 dark:text-grayScale-500">Description</label>
|
||||||
<Textarea
|
<Textarea
|
||||||
className="min-h-[100px] rounded-[12px] border-grayScale-300 bg-[#F8FAFC] dark:bg-grayScale-100"
|
className="min-h-[100px] rounded-[12px] border-grayScale-300 bg-[#F4F4F5] dark:bg-grayScale-100"
|
||||||
placeholder="Optional description for admins"
|
placeholder="Optional description for admins"
|
||||||
value={draft.description ?? ""}
|
value={draft.description ?? ""}
|
||||||
onChange={(e) => setDraft((d) => ({ ...d, description: e.target.value }))}
|
onChange={(e) => setDraft((d) => ({ ...d, description: e.target.value }))}
|
||||||
|
|
@ -86,7 +86,7 @@ export function QuestionTypeBasicInfoStep({
|
||||||
Status <span className="text-red-500">*</span>
|
Status <span className="text-red-500">*</span>
|
||||||
</label>
|
</label>
|
||||||
<Select
|
<Select
|
||||||
className="h-12 rounded-[12px] border-grayScale-300 bg-[#F8FAFC] dark:bg-grayScale-100"
|
className="h-12 rounded-[12px] border-grayScale-300 bg-[#F4F4F5] dark:bg-grayScale-100"
|
||||||
value={draft.status}
|
value={draft.status}
|
||||||
onChange={(e) =>
|
onChange={(e) =>
|
||||||
setDraft((d) => ({
|
setDraft((d) => ({
|
||||||
|
|
|
||||||
|
|
@ -158,7 +158,7 @@ export function QuestionTypeReviewPublishStep({
|
||||||
</Button>
|
</Button>
|
||||||
<Button
|
<Button
|
||||||
type="button"
|
type="button"
|
||||||
className="h-11 bg-[#9E2891] hover:bg-[#8A237E] text-white"
|
className="h-11 bg-[#27272A] hover:bg-[#3F3F46] text-white"
|
||||||
disabled={submitting || (isEdit && saveDisabled)}
|
disabled={submitting || (isEdit && saveDisabled)}
|
||||||
onClick={() => void submit("ACTIVE")}
|
onClick={() => void submit("ACTIVE")}
|
||||||
>
|
>
|
||||||
|
|
@ -173,7 +173,7 @@ export function QuestionTypeReviewPublishStep({
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div className="px-4 py-4 border border-grayScale-200 flex items-center justify-start bg-[#F8FAFC] dark:bg-grayScale-100">
|
<div className="px-4 py-4 border border-grayScale-200 flex items-center justify-start bg-[#F4F4F5] dark:bg-grayScale-100">
|
||||||
<Button
|
<Button
|
||||||
type="button"
|
type="button"
|
||||||
variant="outline"
|
variant="outline"
|
||||||
|
|
|
||||||
|
|
@ -17,7 +17,7 @@ export function QuestionTypeStepFooter({
|
||||||
nextDisabled = false,
|
nextDisabled = false,
|
||||||
}: QuestionTypeStepFooterProps) {
|
}: QuestionTypeStepFooterProps) {
|
||||||
return (
|
return (
|
||||||
<div className="flex flex-col-reverse gap-3 border border-grayScale-200 bg-[#F8FAFC] px-4 py-4 dark:bg-grayScale-100 sm:flex-row sm:flex-wrap sm:items-center sm:justify-between">
|
<div className="flex flex-col-reverse gap-3 border border-grayScale-200 bg-[#F4F4F5] px-4 py-4 dark:bg-grayScale-100 sm:flex-row sm:flex-wrap sm:items-center sm:justify-between">
|
||||||
<div className="flex items-center gap-2">
|
<div className="flex items-center gap-2">
|
||||||
{onBack ? (
|
{onBack ? (
|
||||||
<Button
|
<Button
|
||||||
|
|
@ -36,7 +36,7 @@ export function QuestionTypeStepFooter({
|
||||||
type="button"
|
type="button"
|
||||||
onClick={onNext}
|
onClick={onNext}
|
||||||
disabled={saving || nextDisabled}
|
disabled={saving || nextDisabled}
|
||||||
className="flex h-10 w-full items-center justify-center gap-3 rounded-[6px] bg-[#9E2891] px-8 font-medium text-white shadow-lg shadow-brand-500/10 transition-all hover:bg-[#8A237E] disabled:opacity-50 sm:w-auto sm:px-10"
|
className="flex h-10 w-full items-center justify-center gap-3 rounded-[6px] bg-[#27272A] px-8 font-medium text-white shadow-lg shadow-brand-500/10 transition-all hover:bg-[#3F3F46] disabled:opacity-50 sm:w-auto sm:px-10"
|
||||||
>
|
>
|
||||||
{nextLabel}
|
{nextLabel}
|
||||||
<ArrowRight className="h-5 w-5" />
|
<ArrowRight className="h-5 w-5" />
|
||||||
|
|
|
||||||
|
|
@ -125,7 +125,7 @@ export function SchemaBuilderSection({
|
||||||
return (
|
return (
|
||||||
<div
|
<div
|
||||||
key={`${side}-${index}`}
|
key={`${side}-${index}`}
|
||||||
className="rounded-xl border border-grayScale-200 bg-[#F8FAFC] dark:bg-grayScale-100 p-4 space-y-3"
|
className="rounded-xl border border-grayScale-200 bg-[#F4F4F5] dark:bg-grayScale-100 p-4 space-y-3"
|
||||||
>
|
>
|
||||||
<div className="flex items-start justify-between gap-2">
|
<div className="flex items-start justify-between gap-2">
|
||||||
<span className="text-[12px] font-bold uppercase tracking-wide text-grayScale-400 dark:text-grayScale-500">
|
<span className="text-[12px] font-bold uppercase tracking-wide text-grayScale-400 dark:text-grayScale-500">
|
||||||
|
|
|
||||||
|
|
@ -118,7 +118,7 @@ export function SchemaSlotLabelsPanel({
|
||||||
if (!stimulusRows.length && !responseRows.length) return null
|
if (!stimulusRows.length && !responseRows.length) return null
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="rounded-xl border border-grayScale-200 bg-[#F8FAFC] dark:bg-grayScale-100 p-5 space-y-6">
|
<div className="rounded-xl border border-grayScale-200 bg-[#F4F4F5] dark:bg-grayScale-100 p-5 space-y-6">
|
||||||
<div>
|
<div>
|
||||||
<h3 className="text-[16px] font-bold text-grayScale-900 dark:text-grayScale-600">Field labels</h3>
|
<h3 className="text-[16px] font-bold text-grayScale-900 dark:text-grayScale-600">Field labels</h3>
|
||||||
<p className="text-[13px] text-grayScale-500 dark:text-grayScale-400 mt-0.5">
|
<p className="text-[13px] text-grayScale-500 dark:text-grayScale-400 mt-0.5">
|
||||||
|
|
|
||||||
|
|
@ -181,7 +181,7 @@ export function VideoDetailStep({
|
||||||
Description
|
Description
|
||||||
</label>
|
</label>
|
||||||
<div className="rounded-xl border border-grayScale-200 bg-white overflow-hidden flex flex-col min-h-[200px] shadow-sm focus-within:border-brand-200 transition-all">
|
<div className="rounded-xl border border-grayScale-200 bg-white overflow-hidden flex flex-col min-h-[200px] shadow-sm focus-within:border-brand-200 transition-all">
|
||||||
<div className="flex items-center gap-1 bg-[#F8FAFC]">
|
<div className="flex items-center gap-1 bg-[#F4F4F5]">
|
||||||
<div className="flex items-center gap-1 w-fit bg-transparent px-2 py-1 rounded-lg">
|
<div className="flex items-center gap-1 w-fit bg-transparent px-2 py-1 rounded-lg">
|
||||||
<button
|
<button
|
||||||
type="button"
|
type="button"
|
||||||
|
|
@ -242,12 +242,12 @@ export function VideoDetailStep({
|
||||||
setFormData((prev) => ({ ...prev, thumbnailUrl: v }))
|
setFormData((prev) => ({ ...prev, thumbnailUrl: v }))
|
||||||
}
|
}
|
||||||
/>
|
/>
|
||||||
<div className="bg-brand-500/5 flex items-start gap-3 rounded-xl border border-[#F3E8FF] p-6 space-y-3">
|
<div className="bg-brand-500/5 flex items-start gap-3 rounded-xl border border-[#F4F4F5] p-6 space-y-3">
|
||||||
<div className="flex items-center gap-3">
|
<div className="flex items-center gap-3">
|
||||||
<div className="h-8 w-8 flex-shrink-0 flex items-center justify-center">
|
<div className="h-8 w-8 flex-shrink-0 flex items-center justify-center">
|
||||||
<Lightbulb
|
<Lightbulb
|
||||||
className="h-4 w-4 text-brand-50"
|
className="h-4 w-4 text-brand-50"
|
||||||
fill="#A855F7"
|
fill="#3F3F46"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
import type { ReactNode } from "react"
|
import type { ReactNode } from "react"
|
||||||
import { Link, useLocation } from "react-router-dom"
|
import { Link, useLocation } from "react-router-dom"
|
||||||
import logoSrc from "../../assets/logo.svg"
|
import { BrandLogo } from "../../components/brand/BrandLogo"
|
||||||
|
|
||||||
interface InfoLayoutProps {
|
interface InfoLayoutProps {
|
||||||
title: string
|
title: string
|
||||||
|
|
@ -25,15 +25,15 @@ export function InfoLayout({
|
||||||
const location = useLocation()
|
const location = useLocation()
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="relative h-dvh overflow-y-auto bg-[#fefcff] px-4 py-10 sm:px-6">
|
<div className="relative h-dvh overflow-y-auto bg-[#FFFFFF] px-4 py-10 sm:px-6">
|
||||||
<div className="pointer-events-none absolute -left-24 -top-24 h-72 w-72 rounded-full bg-[#f3e8ff]" />
|
<div className="pointer-events-none absolute -left-24 -top-24 h-72 w-72 rounded-full bg-[#F4F4F5]" />
|
||||||
<div className="pointer-events-none absolute -right-20 top-24 h-64 w-64 rounded-full bg-[#f5ecff]" />
|
<div className="pointer-events-none absolute -right-20 top-24 h-64 w-64 rounded-full bg-[#F4F4F5]" />
|
||||||
<div className="mx-auto w-full max-w-5xl rounded-2xl border border-[#eadff7] bg-white px-6 py-6 shadow-[0_20px_60px_rgba(83,33,120,0.08)] sm:px-10 sm:py-8">
|
<div className="mx-auto w-full max-w-5xl rounded-2xl border border-[#E4E4E7] bg-white px-6 py-6 shadow-[0_20px_60px_rgba(0,0,0,0.08)] sm:px-10 sm:py-8">
|
||||||
<header>
|
<header>
|
||||||
<div className="flex flex-col gap-4 sm:flex-row sm:items-center sm:justify-between">
|
<div className="flex flex-col gap-4 sm:flex-row sm:items-center sm:justify-between">
|
||||||
<Link to="/about" className="inline-flex items-center gap-3">
|
<Link to="/about" className="inline-flex items-center gap-3">
|
||||||
<span className="inline-flex rounded-xl bg-brand-500 p-2 shadow-sm ring-1 ring-brand-400/40">
|
<span className="inline-flex rounded-xl bg-brand-500 p-2 shadow-sm ring-1 ring-brand-400/40">
|
||||||
<img src={logoSrc} alt="Rezina Academy" className="h-8 w-auto" />
|
<BrandLogo variant="light" className="h-8" />
|
||||||
</span>
|
</span>
|
||||||
<p className="text-xl font-semibold text-grayScale-700">Rezina Academy</p>
|
<p className="text-xl font-semibold text-grayScale-700">Rezina Academy</p>
|
||||||
</Link>
|
</Link>
|
||||||
|
|
@ -44,14 +44,14 @@ export function InfoLayout({
|
||||||
to={item.to}
|
to={item.to}
|
||||||
className={`px-3 transition-colors ${
|
className={`px-3 transition-colors ${
|
||||||
location.pathname === item.to
|
location.pathname === item.to
|
||||||
? "text-[#8f56b5]"
|
? "text-[#3F3F46]"
|
||||||
: "text-grayScale-600 hover:text-[#8f56b5]"
|
: "text-grayScale-600 hover:text-[#3F3F46]"
|
||||||
}`}
|
}`}
|
||||||
>
|
>
|
||||||
{item.label}
|
{item.label}
|
||||||
</Link>
|
</Link>
|
||||||
{index < footerLinks.length - 1 && (
|
{index < footerLinks.length - 1 && (
|
||||||
<span className="h-5 w-px bg-[#e0d8eb]" aria-hidden="true" />
|
<span className="h-5 w-px bg-[#D4D4D8]" aria-hidden="true" />
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
))}
|
))}
|
||||||
|
|
@ -65,7 +65,7 @@ export function InfoLayout({
|
||||||
</p>
|
</p>
|
||||||
<p className="mt-3 max-w-3xl text-sm leading-relaxed text-grayScale-500">{subtitle}</p>
|
<p className="mt-3 max-w-3xl text-sm leading-relaxed text-grayScale-500">{subtitle}</p>
|
||||||
</div>
|
</div>
|
||||||
<div className="mt-6 h-px bg-[#e8e1f2]" />
|
<div className="mt-6 h-px bg-[#E4E4E7]" />
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
<main className="space-y-6 pt-6">{children}</main>
|
<main className="space-y-6 pt-6">{children}</main>
|
||||||
|
|
|
||||||
|
|
@ -26,9 +26,9 @@ export function ThemeModePreview({
|
||||||
<div className="h-1.5 w-8 rounded-sm bg-white shadow-sm" />
|
<div className="h-1.5 w-8 rounded-sm bg-white shadow-sm" />
|
||||||
<div className="mt-auto h-4 rounded-sm bg-white shadow-sm" />
|
<div className="mt-auto h-4 rounded-sm bg-white shadow-sm" />
|
||||||
</div>
|
</div>
|
||||||
<div className="flex flex-col gap-1 bg-[#12121a] p-1.5">
|
<div className="flex flex-col gap-1 bg-[#18181b] p-1.5">
|
||||||
<div className="h-1.5 w-8 rounded-sm bg-[#2e2e3a]" />
|
<div className="h-1.5 w-8 rounded-sm bg-[#3f3f46]" />
|
||||||
<div className="mt-auto h-4 rounded-sm bg-[#1c1c24]" />
|
<div className="mt-auto h-4 rounded-sm bg-[#27272a]" />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<span className="absolute bottom-1 right-1 rounded bg-black/60 px-1 py-0.5 text-[9px] font-semibold uppercase tracking-wide text-white">
|
<span className="absolute bottom-1 right-1 rounded bg-black/60 px-1 py-0.5 text-[9px] font-semibold uppercase tracking-wide text-white">
|
||||||
|
|
@ -45,7 +45,7 @@ export function ThemeModePreview({
|
||||||
className={cn(
|
className={cn(
|
||||||
"flex h-14 w-full flex-col gap-1 rounded-md border p-1.5 shadow-inner",
|
"flex h-14 w-full flex-col gap-1 rounded-md border p-1.5 shadow-inner",
|
||||||
isDark
|
isDark
|
||||||
? "border-[#2e2e3a] bg-[#12121a]"
|
? "border-[#3f3f46] bg-[#18181b]"
|
||||||
: "border-grayScale-200 bg-[#f5f5f5]",
|
: "border-grayScale-200 bg-[#f5f5f5]",
|
||||||
className,
|
className,
|
||||||
)}
|
)}
|
||||||
|
|
@ -53,20 +53,20 @@ export function ThemeModePreview({
|
||||||
<div
|
<div
|
||||||
className={cn(
|
className={cn(
|
||||||
"h-1.5 w-10 rounded-sm",
|
"h-1.5 w-10 rounded-sm",
|
||||||
isDark ? "bg-[#2e2e3a]" : "bg-white shadow-sm",
|
isDark ? "bg-[#3f3f46]" : "bg-white shadow-sm",
|
||||||
)}
|
)}
|
||||||
/>
|
/>
|
||||||
<div className="flex flex-1 gap-1">
|
<div className="flex flex-1 gap-1">
|
||||||
<div
|
<div
|
||||||
className={cn(
|
className={cn(
|
||||||
"flex-1 rounded-sm",
|
"flex-1 rounded-sm",
|
||||||
isDark ? "bg-[#1c1c24]" : "bg-white shadow-sm",
|
isDark ? "bg-[#27272a]" : "bg-white shadow-sm",
|
||||||
)}
|
)}
|
||||||
/>
|
/>
|
||||||
<div
|
<div
|
||||||
className={cn(
|
className={cn(
|
||||||
"w-4 rounded-sm",
|
"w-4 rounded-sm",
|
||||||
isDark ? "bg-[#9E2891]" : "bg-[#9E2891]",
|
isDark ? "bg-[#27272A]" : "bg-[#27272A]",
|
||||||
)}
|
)}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -42,13 +42,13 @@ export default {
|
||||||
foreground: "hsl(var(--popover-foreground))",
|
foreground: "hsl(var(--popover-foreground))",
|
||||||
},
|
},
|
||||||
brand: {
|
brand: {
|
||||||
50: "#5E1F70",
|
50: "#F4F4F5",
|
||||||
100: "#E7C5E4",
|
100: "#E4E4E7",
|
||||||
200: "#D69AD3",
|
200: "#D4D4D8",
|
||||||
300: "#C26FC0",
|
300: "#A1A1AA",
|
||||||
400: "#A94EAA",
|
400: "#52525B",
|
||||||
500: "#9E2891",
|
500: "#3F3F46",
|
||||||
600: "#6A1B9A",
|
600: "#27272A",
|
||||||
},
|
},
|
||||||
gold: {
|
gold: {
|
||||||
100: "#FFF6CC",
|
100: "#FFF6CC",
|
||||||
|
|
|
||||||
|
|
@ -10,6 +10,10 @@
|
||||||
|
|
||||||
/* Bundler mode */
|
/* Bundler mode */
|
||||||
"moduleResolution": "bundler",
|
"moduleResolution": "bundler",
|
||||||
|
"baseUrl": ".",
|
||||||
|
"paths": {
|
||||||
|
"@/*": ["./src/*"]
|
||||||
|
},
|
||||||
"allowImportingTsExtensions": true,
|
"allowImportingTsExtensions": true,
|
||||||
"verbatimModuleSyntax": true,
|
"verbatimModuleSyntax": true,
|
||||||
"moduleDetection": "force",
|
"moduleDetection": "force",
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,16 @@
|
||||||
import { defineConfig } from 'vite'
|
import { defineConfig } from 'vite'
|
||||||
import react from '@vitejs/plugin-react'
|
import react from '@vitejs/plugin-react'
|
||||||
import { execSync } from 'child_process'
|
import { execSync } from 'child_process'
|
||||||
|
import { fileURLToPath, URL } from 'node:url'
|
||||||
|
|
||||||
// https://vite.dev/config/
|
// https://vite.dev/config/
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
plugins: [react()],
|
plugins: [react()],
|
||||||
|
resolve: {
|
||||||
|
alias: {
|
||||||
|
'@': fileURLToPath(new URL('./src', import.meta.url)),
|
||||||
|
},
|
||||||
|
},
|
||||||
define: {
|
define: {
|
||||||
__BUILD_HASH__: JSON.stringify(
|
__BUILD_HASH__: JSON.stringify(
|
||||||
(() => {
|
(() => {
|
||||||
|
|
|
||||||