Skip to content
Open
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 challenge/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
"devDependencies": {
"autoprefixer": "^10.4.20",
"postcss": "^8.4.45",
"tailwindcss": "^3.4.10"
"tailwindcss": "^3.4.10",
"dotenv": "^16.4.5"
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
18 changes: 11 additions & 7 deletions challenge/src/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -84,24 +84,28 @@ class App extends Component {
}

render() {
console.log("User has selected page ", this.state.currentPageName);


const backgroundStyle = {
background: 'linear-gradient(90deg, #FFD700, #FF69B4, #8A2BE2)', // Horizontal Yellowish-Pinkish-Darkish Gradient
background: 'linear-gradient(90deg, #FFD700, #FF69B4, #8A2BE2)',
backgroundSize: '200% 200%',
animation: 'gradientAnimation 10s ease infinite',
minHeight: '100vh',
padding: '20px',
color: '#000',
};




return (
<MuiThemeProvider theme={theme}>
<div style={backgroundStyle}>
{/* Keyframe definition for gradient animation */}
<style>
{`
@keyframes gradientAnimation {
0% { background-position: 0% 50%; }
50% { background-position: 100% 50%; }
100% { background-position: 0% 50%; }
}
`}
</style>
<Navbar
fixed={true}
items={["Home", "Sponsors", "About", "Contact us", "Fun Facts", "Memes"]}
Expand Down