From 4a76602ab2dacb4d301d3763e61220d6fbbf95ec Mon Sep 17 00:00:00 2001 From: Oliver Grack Date: Fri, 31 Jan 2025 15:17:06 +0100 Subject: [PATCH] background color changes + further changes to the start page --- src/components/content-wrapper.tsx | 2 +- src/routes/(home).tsx | 14 ++++++++++---- src/style/fancy-button.css | 15 +++++++++++++-- src/style/main.css | 20 +++----------------- 4 files changed, 27 insertions(+), 24 deletions(-) diff --git a/src/components/content-wrapper.tsx b/src/components/content-wrapper.tsx index 0fd73778..8708ea63 100644 --- a/src/components/content-wrapper.tsx +++ b/src/components/content-wrapper.tsx @@ -24,7 +24,7 @@ export const ContentWrapper: Component = (props) => { >
diff --git a/src/routes/(home).tsx b/src/routes/(home).tsx index 8003fbbc..391a94eb 100644 --- a/src/routes/(home).tsx +++ b/src/routes/(home).tsx @@ -22,10 +22,16 @@ export default function HomePage() { HKViz for Hollow Knight
-

- -

-

Visual Analytics for Hollow Knight

+
+

+ +

+

+ Visual Analytics for Hollow Knight +

+

With you can record gameplay analytics of your Hollow Knight gameplays, and share them with others. diff --git a/src/style/fancy-button.css b/src/style/fancy-button.css index 68ff0152..2f93ba10 100644 --- a/src/style/fancy-button.css +++ b/src/style/fancy-button.css @@ -30,6 +30,12 @@ position: relative; transform: translate(0); transform-style: preserve-3d; + + transform-origin: center; + transition: transform 0.4s ease-out; +} +.fancy-button:hover { + transform: scale(1.025); } .fancy-button-shadow { --overflow: 150px; @@ -46,7 +52,6 @@ -webkit-mask-composite: xor; mask-composite: exclude; - mix-blend-mode: screen; opacity: 0.25; transition: opacity 1s ease-in-out; } @@ -63,7 +68,13 @@ position: absolute; inset: -5px; transform: translate(0, 0); - background: conic-gradient(in oklab from var(--fancy-button-shadow-rotation), #8b0000, #d4af37, #2e4f4f, #8b0000); + background: conic-gradient( + in oklab from var(--fancy-button-shadow-rotation), + #b752ff50, + #ffd754b0, + #8bffff34, + #b752ff50 + ); filter: blur(10px); border-radius: var(--r-top) var(--r-right) var(--r-bottom) var(--r-left); transition: filter 0.2s ease-in-out; diff --git a/src/style/main.css b/src/style/main.css index fd53339f..29571a9f 100644 --- a/src/style/main.css +++ b/src/style/main.css @@ -63,21 +63,7 @@ html { .prose { --tw-prose-bullets: #b6b9be; } -/* -.fancy-button { - position: relative; - transform-style: preserve-3d; -} -.fancy-button::before { - content: ''; - position: absolute; - top: 0; - left: 0; - right: 0; - bottom: 0; - border-radius: inherit; - filter: blur(10px); - background: conic-gradient(in oklab, #6154b4, orange, yellow, #6154b4); - transform: translate3d(10px, 8px, -1px); + +.start-page-header { + text-shadow: 0 0 150px rgba(255, 177, 21, 0.5); } - */