Skip to content

Commit

Permalink
fix(web/app): default progress to 0 and add blue dropshadow
Browse files Browse the repository at this point in the history
  • Loading branch information
mafewtm committed Nov 11, 2024
1 parent 410d9db commit 77598cf
Show file tree
Hide file tree
Showing 2 changed files with 57 additions and 51 deletions.
4 changes: 2 additions & 2 deletions web/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import Carousel from './components/carousel/Carousel';
import { Progress } from '@/components/ui/progress';

export default function App() {
const [progress, setProgress] = useState(20);
const [progress, setProgress] = useState(30);
const handlers = {
loadProgress(data: { loadFraction: number }) {
data.loadFraction === 1 ? setProgress(100) : setProgress(data.loadFraction * 100);
Expand All @@ -24,7 +24,7 @@ export default function App() {
<Media />
<Carousel />

<Progress className='h-1 absolute z-10 top-0 bg-transparent' value={progress} />
<Progress className='h-1 absolute z-10 top-0 bg-transparent drop-shadow-blue' value={progress} />
</div>
);
}
104 changes: 55 additions & 49 deletions web/tailwind.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,59 +6,65 @@ export default {
"./src/**/*.{js,ts,jsx,tsx}",
],
theme: {
extend: {
borderRadius: {
lg: 'var(--radius)',
md: 'calc(var(--radius) - 2px)',
sm: 'calc(var(--radius) - 4px)'
},
colors: {
background: 'hsl(var(--background))',
foreground: 'hsl(var(--foreground))',
card: {
DEFAULT: 'hsl(var(--card))',
foreground: 'hsl(var(--card-foreground))'
},
popover: {
DEFAULT: 'hsl(var(--popover))',
foreground: 'hsl(var(--popover-foreground))'
},
primary: {
DEFAULT: 'hsl(var(--primary))',
foreground: 'hsl(var(--primary-foreground))'
},
secondary: {
DEFAULT: 'hsl(var(--secondary))',
foreground: 'hsl(var(--secondary-foreground))'
},
muted: {
DEFAULT: 'hsl(var(--muted))',
foreground: 'hsl(var(--muted-foreground))'
},
accent: {
DEFAULT: 'hsl(var(--accent))',
foreground: 'hsl(var(--accent-foreground))'
},
destructive: {
DEFAULT: 'hsl(var(--destructive))',
foreground: 'hsl(var(--destructive-foreground))'
},
border: 'hsl(var(--border))',
input: 'hsl(var(--input))',
ring: 'hsl(var(--ring))',
chart: {
'1': 'hsl(var(--chart-1))',
'2': 'hsl(var(--chart-2))',
'3': 'hsl(var(--chart-3))',
'4': 'hsl(var(--chart-4))',
'5': 'hsl(var(--chart-5))'
},
extend: {
dropShadow: {
'blue': [
'0px 0px 12px rgb(96 165 250/ 0.06)',
'0px 0px 12px rgb(96 165 250 / 0.12)'
],
},
borderRadius: {
lg: 'var(--radius)',
md: 'calc(var(--radius) - 2px)',
sm: 'calc(var(--radius) - 4px)'
},
colors: {
background: 'hsl(var(--background))',
foreground: 'hsl(var(--foreground))',
card: {
DEFAULT: 'hsl(var(--card))',
foreground: 'hsl(var(--card-foreground))'
},
popover: {
DEFAULT: 'hsl(var(--popover))',
foreground: 'hsl(var(--popover-foreground))'
},
primary: {
DEFAULT: 'hsl(var(--primary))',
foreground: 'hsl(var(--primary-foreground))'
},
secondary: {
DEFAULT: 'hsl(var(--secondary))',
foreground: 'hsl(var(--secondary-foreground))'
},
muted: {
DEFAULT: 'hsl(var(--muted))',
foreground: 'hsl(var(--muted-foreground))'
},
accent: {
DEFAULT: 'hsl(var(--accent))',
foreground: 'hsl(var(--accent-foreground))'
},
destructive: {
DEFAULT: 'hsl(var(--destructive))',
foreground: 'hsl(var(--destructive-foreground))'
},
border: 'hsl(var(--border))',
input: 'hsl(var(--input))',
ring: 'hsl(var(--ring))',
chart: {
'1': 'hsl(var(--chart-1))',
'2': 'hsl(var(--chart-2))',
'3': 'hsl(var(--chart-3))',
'4': 'hsl(var(--chart-4))',
'5': 'hsl(var(--chart-5))'
},
text1: '#c9c9c9'
},
},
fontSize: {
'9.5xl': '9rem'
}
}
}
},
plugins: [require("tailwindcss-animate")],
}

0 comments on commit 77598cf

Please sign in to comment.