Skip to content

Commit

Permalink
Revert to original UI and fix MUI dependency with build
Browse files Browse the repository at this point in the history
  • Loading branch information
RUSHIGoswami committed Nov 20, 2024
1 parent 214b1ce commit e1b3cd7
Show file tree
Hide file tree
Showing 8 changed files with 900 additions and 395 deletions.
1 change: 1 addition & 0 deletions dist/assets/index-BFX-wx5F.css

Large diffs are not rendered by default.

40 changes: 0 additions & 40 deletions dist/assets/index-BO8ynfS5.js

This file was deleted.

217 changes: 217 additions & 0 deletions dist/assets/index-D5boipDV.js

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion dist/assets/index-Dha9-lM4.css

This file was deleted.

4 changes: 2 additions & 2 deletions dist/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
<link rel="icon" type="image/svg+xml" href="./vite.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Rushi - Portfolio</title>
<script type="module" crossorigin src="./assets/index-BO8ynfS5.js"></script>
<link rel="stylesheet" crossorigin href="./assets/index-Dha9-lM4.css">
<script type="module" crossorigin src="./assets/index-D5boipDV.js"></script>
<link rel="stylesheet" crossorigin href="./assets/index-BFX-wx5F.css">
</head>
<body>
<div id="root"></div>
Expand Down
903 changes: 557 additions & 346 deletions package-lock.json

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@
"preview": "vite preview"
},
"dependencies": {
"@emotion/react": "^11.11.4",
"@emotion/styled": "^11.11.0",
"@mui/icons-material": "^5.15.13",
"@mui/material": "^5.15.13",
"@tsparticles/react": "^3.0.0",
"@tsparticles/slim": "^3.6.0",
"clsx": "^2.1.1",
Expand Down
125 changes: 119 additions & 6 deletions src/App.jsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,124 @@
import React from "react";

import { React, useState, useMemo } from "react";
import { ThemeProvider, createTheme } from "@mui/material/styles";
import CssBaseline from "@mui/material/CssBaseline";
import { BrowserRouter as Router } from "react-router-dom";
import Navbar from "./components/Navbar";
import Hero from "./components/Hero";
import About from "./components/About";
import Skills from "./components/Skills";
import Projects from "./components/Projects";
import Contact from "./components/Contact";
import { Box } from "@mui/material";
function App() {
const [mode, setMode] = useState("dark");
const theme = useMemo(
() =>
createTheme({
palette: {
mode,
primary: {
main: mode === "dark" ? "#7C3AED" : "#6D28D9", // Purple shade
light: mode === "dark" ? "#8B5CF6" : "#7C3AED",
dark: mode === "dark" ? "#5B21B6" : "#5B21B6",
},
secondary: {
main: mode === "dark" ? "#EC4899" : "#DB2777", // Pink shade
},
background: {
default: mode === "dark" ? "#0F172A" : "#F8FAFC", // Slate colors
paper: mode === "dark" ? "#1E293B" : "#FFFFFF",
},
text: {
primary: mode === "dark" ? "#F1F5F9" : "#1E293B",
secondary: mode === "dark" ? "#CBD5E1" : "#475569",
},
},
typography: {
fontFamily: '"Inter", "Roboto", "Helvetica", "Arial", sans-serif',
h1: {
fontWeight: 800,
},
h2: {
fontWeight: 700,
},
h3: {
fontWeight: 700,
},
h4: {
fontWeight: 600,
},
h5: {
fontWeight: 600,
},
h6: {
fontWeight: 600,
},
},
components: {
MuiContainer: {
styleOverrides: {
root: {
"@media (min-width: 1200px)": {
maxWidth: "1400px",
},
},
},
},
MuiPaper: {
styleOverrides: {
root: {
backgroundImage: "none",
},
},
},
},
}),
[mode]
);
const toggleColorMode = () => {
setMode((prevMode) => (prevMode === "light" ? "dark" : "light"));
};
return (
<div className="min-h-screen bg-black">
<h1 className="text-white text-3xl font-bold">Welcome to My Portfolio</h1>
</div>
<ThemeProvider theme={theme}>
<CssBaseline />
<Router>
<Box
sx={{
width: "100%",
margin: 0,
padding: 0,
overflow: "hidden",
minHeight: "100vh",
bgcolor: "background.default",
color: "text.primary",
position: "relative",
"&::before": {
content: '""',
position: "fixed",
top: 0,
left: 0,
right: 0,
bottom: 0,
background:
mode === "dark"
? "radial-gradient(circle at center, rgba(124, 58, 237, 0.1) 0%, rgba(15, 23, 42, 0) 70%)"
: "radial-gradient(circle at center, rgba(109, 40, 217, 0.05) 0%, rgba(248, 250, 252, 0) 70%)",
pointerEvents: "none",
zIndex: 1,
},
}}
>
<Box sx={{ position: "relative", zIndex: 2 }}>
<Navbar colorMode={{ mode, toggleColorMode }} />
<Hero />
<About />
<Skills />
<Projects />
<Contact />
</Box>
</Box>
</Router>
</ThemeProvider>
);
}

export default App;

0 comments on commit e1b3cd7

Please sign in to comment.