From 96e507eca117d5af3d82bc652f7185726b25fefb Mon Sep 17 00:00:00 2001 From: Stanislaw <62724833+BoberITman@users.noreply.github.com> Date: Thu, 26 Oct 2023 14:01:49 +0200 Subject: [PATCH] tailwind fucked up many things so its large small fix --- src/app/page.tsx | 8 ++++---- src/components/footer.tsx | 2 +- src/components/icons/patreon.tsx | 5 ++--- src/components/mesh/skeleton.tsx | 14 +++++++------- tailwind.config.js | 22 ++++++++++++++++++++-- 5 files changed, 34 insertions(+), 17 deletions(-) diff --git a/src/app/page.tsx b/src/app/page.tsx index e2115b5..a8ebd16 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -5,10 +5,10 @@ export default function Home() { return (
-
- - - +
+ + +
diff --git a/src/components/footer.tsx b/src/components/footer.tsx index 31f84a2..7458c0c 100644 --- a/src/components/footer.tsx +++ b/src/components/footer.tsx @@ -12,7 +12,7 @@ export default function Footer() { ); diff --git a/src/components/icons/patreon.tsx b/src/components/icons/patreon.tsx index 24a5bf0..ea97f86 100644 --- a/src/components/icons/patreon.tsx +++ b/src/components/icons/patreon.tsx @@ -3,15 +3,14 @@ export default function Patreon(props: any) { ); diff --git a/src/components/mesh/skeleton.tsx b/src/components/mesh/skeleton.tsx index 42ed889..9d45ab9 100644 --- a/src/components/mesh/skeleton.tsx +++ b/src/components/mesh/skeleton.tsx @@ -8,8 +8,8 @@ import { Canvas } from "@react-three/fiber"; function SkeletonMesh() { const [eyeAngle, setEyeAAngle] = useState([ - THREE.MathUtils.degToRad(10), - THREE.MathUtils.degToRad(100), + THREE.MathUtils.degToRad(0), + THREE.MathUtils.degToRad(0), THREE.MathUtils.degToRad(0), ]); const mesh = useRef(null!); @@ -21,10 +21,10 @@ function SkeletonMesh() { window.addEventListener("mousemove", (event) => { setEyeAAngle([ THREE.MathUtils.degToRad( - ((event.clientY - window.innerHeight) * 15) / 360 + 20 + ((event.clientY - window.innerHeight) * 15) / 360 + 30 ), THREE.MathUtils.degToRad( - ((event.clientX - window.innerWidth) * 20 - 10) / 360 + ((event.clientX - window.innerWidth) * 20 - 10) / 360 - 40 ), 0, ]); @@ -60,12 +60,12 @@ export default function Skeleton() { - - + ); diff --git a/tailwind.config.js b/tailwind.config.js index f96c785..5e402f1 100644 --- a/tailwind.config.js +++ b/tailwind.config.js @@ -1,4 +1,6 @@ /** @type {import('tailwindcss').Config} */ +const plugin = require("tailwindcss/plugin"); + module.exports = { content: [ "./app/**/*.{js,ts,jsx,tsx,mdx}", // Note the addition of the `app` directory. @@ -9,7 +11,23 @@ module.exports = { "./src/**/*.{js,ts,jsx,tsx,mdx}", ], theme: { - extend: {}, + extend: { + textShadow: { + DEFAULT: + "0 0 10px #fff, 0 0 20px #fff, 0 0 30px #23d400, 0 0 40px #00a30e, 0 0 50px #0a7c00, 0 0 60px #0b5e00, 0 0 70px #00440b", + }, + }, }, - plugins: [], + plugins: [ + plugin(function ({ matchUtilities, theme }) { + matchUtilities( + { + "text-shadow": (value) => ({ + textShadow: value, + }), + }, + { values: theme("textShadow") } + ); + }), + ], };