Skip to content

Commit

Permalink
Fixed an issue with shadow color in home page
Browse files Browse the repository at this point in the history
  • Loading branch information
Leo-Peyronnet committed Jan 2, 2024
1 parent 25d5c63 commit 7ce3e03
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 7 deletions.
2 changes: 1 addition & 1 deletion components/card.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export default function DashboardCard(props: CardProps) {
return (
<a
href={props.link}
className="group m-3 flex w-[350px] items-center space-x-2 rounded-lg border border-[#0088FF] bg-white p-5 text-black shadow-md shadow-[#0088ff2f] transition-all hover:-translate-y-1 hover:shadow-lg hover:shadow-[#0088ff2f] dark:bg-slate-900 dark:text-white"
className="shadow-accent-trans hover:shadow-accent-trans group m-3 flex w-[350px] items-center space-x-2 rounded-lg border border-[#0088FF] bg-white p-5 text-black shadow-md transition-all hover:-translate-y-1 hover:shadow-lg dark:bg-slate-900 dark:text-white"
>
<p className="icon-f text-4xl text-[#0088FF]">{props.icon}</p>
<div>
Expand Down
2 changes: 1 addition & 1 deletion public/sw.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 15 additions & 5 deletions tailwind.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,19 @@ const { fontFamily } = require("tailwindcss/defaultTheme")
/** @type {import('tailwindcss').Config} */
module.exports = {
darkMode: ["class"],
content: ["pages/**/*.{ts,tsx}", "components/**/*.{ts,tsx}"],
content: [
"./pages/**/*.{ts,tsx}",
"./components/**/*.{ts,tsx}",
"./app/**/*.{ts,tsx}",
"./src/**/*.{ts,tsx}",
],
prefix: "",
theme: {
container: {
center: true,
padding: "1.5rem",
padding: "2rem",
screens: {
"2xl": "1360px",
"2xl": "1400px",
},
},
extend: {
Expand All @@ -18,18 +24,22 @@ module.exports = {
},
keyframes: {
"accordion-down": {
from: { height: 0 },
from: { height: "0" },
to: { height: "var(--radix-accordion-content-height)" },
},
"accordion-up": {
from: { height: "var(--radix-accordion-content-height)" },
to: { height: 0 },
to: { height: "0" },
},
},
animation: {
"accordion-down": "accordion-down 0.2s ease-out",
"accordion-up": "accordion-up 0.2s ease-out",
},
colors: {
"accent-trans": "#0088ff2f",
accent: "#0088FF",
},
},
},
plugins: [require("tailwindcss-animate")],
Expand Down

0 comments on commit 7ce3e03

Please sign in to comment.