Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Optimize button styles and add color-coded blur animation #33

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions DiagnoseMeApp/public/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,18 @@ h1 {
bottom: -20;
width: 100%;
padding: 10px;
background: linear-gradient(to right, #9f60e1, #5f3a9b);
border-radius: 15px;
background: linear-gradient(to right, #99d0db, #6a3093);
border-radius: 15px;
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
text-align: center;
color: white;
}

button {
/* existing styles... */
background: linear-gradient(to right, #a199db, #6a3093);
border: none;
color: white; /* You might want to change the text color so it's visible against the gradient */
}

4 changes: 2 additions & 2 deletions DiagnoseMeApp/src/components/ButtonGooey.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export const ButtonGooey = () => {
<feColorMatrix
in="blur"
mode="matrix"
values="1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 20 -10"
values="0 0 1 0 0 0 1 1 0 0 1 0 1 0 1 0 0 0 20 -10"

result="gooey"
/>
Expand All @@ -55,7 +55,7 @@ export const ButtonGooey = () => {
}

.button {
background: #7e44c5;
background: linear-gradient(to right, #a199db, #6a3093);
color: #eee;
display: inline-flex;
font-weight: bold;
Expand Down