From 1c73c8e35ea8cf829dbc33a5577754d98866477b Mon Sep 17 00:00:00 2001 From: Jason Reed Date: Thu, 22 Feb 2024 10:46:42 -0500 Subject: [PATCH] Hover state for buttons --- public/index.html | 13 +++++++++++++ src/app.tsx | 17 ++++------------- 2 files changed, 17 insertions(+), 13 deletions(-) diff --git a/public/index.html b/public/index.html index ca9cebc..467933b 100644 --- a/public/index.html +++ b/public/index.html @@ -38,6 +38,19 @@ right: 0px; bottom: 0px; } + button { + background-color: black; + color: white; + padding: 15px; + border: 1px solid black; + border-radius: 20px; + font-family: sans-serif; + font-weight: bold; + cursor: pointer; + } + button:hover { + background-color: #860099; + } .inner-container { position: relative; width: 1024px; diff --git a/src/app.tsx b/src/app.tsx index 54fac3e..511129d 100644 --- a/src/app.tsx +++ b/src/app.tsx @@ -39,16 +39,7 @@ export function App(_props: {}): JSX.Element { switch (state.t) { case 'menu': { - const style: React.CSSProperties = { - backgroundColor: 'black', - color: 'white', - padding: 15, - border: '1px solid black', - borderRadius: 20, - fontFamily: 'sans-serif', - fontWeight: 'bold', - cursor: 'pointer', - }; + const githubLink = ``; @@ -60,11 +51,11 @@ export function App(_props: {}): JSX.Element {
- +

- +

- +

);