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

Updated home page bg issue #46 #48

Merged
merged 2 commits into from
May 31, 2024
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
2 changes: 1 addition & 1 deletion client/package-lock.json

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

Binary file modified client/src/assets/diabetes.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 5 additions & 4 deletions client/src/components/Home.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ const Home = () => {
backgroundImage: `url(${diabetesImg})`,
backgroundSize: "cover",
backgroundPosition: "center",
backgroundColor: "#8b008b",
backgroundColor: "rgba(0,0,0,0.4)",
backgroundBlendMode: "multiply",
}}
>
<div className="p-8 text-center">
Expand All @@ -29,7 +30,7 @@ const Home = () => {
stiffness: 100,
delay: 0.5,
}}
className="text-4xl font-bold mb-4 text-purple-800"
className="text-4xl lg:text-5xl font-bold mb-4 text-purple-600 text-shadow-sm text-shadow shadow-black"
>
Welcome to the Diabetes Prediction App
</motion.h1>
Expand All @@ -43,7 +44,7 @@ const Home = () => {
stiffness: 100,
delay: 1,
}}
className="text-lg text-gray-800 mb-8"
className="text-lg mb-8 text-white"
>
This app helps you predict the likelihood of developing diabetes
based on your health data.
Expand All @@ -61,7 +62,7 @@ const Home = () => {
>
<Link
to="/prediction"
className="bg-purple-700 hover:bg-purple-800 text-white font-bold py-2 px-4 rounded transition-colors duration-300"
className="bg-purple-700 hover:bg-purple-800 text-white lg:text-xl font-bold py-2 px-4 rounded transition-colors duration-300 shadow-sm shadow-black"
>
Get Started
</Link>
Expand Down
23 changes: 21 additions & 2 deletions client/tailwind.config.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,30 @@
const plugin = require('tailwindcss/plugin')

/** @type {import('tailwindcss').Config} */
export default {
content: [
"./index.html",
"./src/**/*.{js,ts,jsx,tsx}",
],
theme: {
extend: {},
extend: {
textShadow: {
sm: '0 1px 2px var(--tw-shadow-color)',
DEFAULT: '0 2px 4px var(--tw-shadow-color)',
lg: '0 8px 16px var(--tw-shadow-color)',
},
},
},
plugins: [],
plugins: [
plugin(function ({ matchUtilities, theme }) {
matchUtilities(
{
'text-shadow': (value) => ({
textShadow: value,
}),
},
{ values: theme('textShadow') }
)
}),
],
}
Loading