Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
Rohit-R-Rao committed Jul 11, 2024
1 parent 9bf10e3 commit 930f3dc
Show file tree
Hide file tree
Showing 10 changed files with 154 additions and 122 deletions.
Binary file modified bun.lockb
Binary file not shown.
4 changes: 4 additions & 0 deletions help.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
bun run dev
bun install [PACKAGE_NAME]
bun uninstall [PACKAGE_NAME]
^^^ Commands to ball out
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@
"dependencies": {
"gh-pages": "^6.1.1",
"react": "^18.3.1",
"react-dom": "^18.3.1"
"react-dom": "^18.3.1",
"react-icons": "^5.2.1",
"react-scroll": "^1.9.0"
},
"devDependencies": {
"@types/react": "^18.3.3",
Expand Down
46 changes: 5 additions & 41 deletions src/App.css
Original file line number Diff line number Diff line change
@@ -1,42 +1,6 @@
#root {
max-width: 1280px;
margin: 0 auto;
padding: 2rem;
text-align: center;
}

.logo {
height: 6em;
padding: 1.5em;
will-change: filter;
transition: filter 300ms;
}
.logo:hover {
filter: drop-shadow(0 0 2em #646cffaa);
}
.logo.react:hover {
filter: drop-shadow(0 0 2em #61dafbaa);
}

@keyframes logo-spin {
from {
transform: rotate(0deg);
}
to {
transform: rotate(360deg);
}
}

@media (prefers-reduced-motion: no-preference) {
a:nth-of-type(2) .logo {
animation: logo-spin infinite 20s linear;
}
}

.card {
padding: 2em;
}

.read-the-docs {
color: #888;
.AppWrapper {
width: 100%;
height: 100%;
display: flex;
flex-direction: row;
}
31 changes: 6 additions & 25 deletions src/App.tsx
Original file line number Diff line number Diff line change
@@ -1,34 +1,15 @@
import { useState } from 'react'
import reactLogo from './assets/react.svg'
import viteLogo from '/vite.svg'
import Sidebar from './Sidebar'
import Home from './Home'
import './App.css'

function App() {
const [count, setCount] = useState(0)

return (
<>
<div>
<a href="https://vitejs.dev" target="_blank">
<img src={viteLogo} className="logo" alt="Vite logo" />
</a>
<a href="https://react.dev" target="_blank">
<img src={reactLogo} className="logo react" alt="React logo" />
</a>
</div>
<h1>Vite + React</h1>
<div className="card">
<button onClick={() => setCount((count) => count + 1)}>
count is {count}
</button>
<p>
Edit <code>src/App.tsx</code> and save ur mom
</p>
</div>
<p className="read-the-docs">
Hello World!
</p>
</>
<div className='AppWrapper'>
<Sidebar />
<Home />
</div>
)
}

Expand Down
6 changes: 6 additions & 0 deletions src/Home.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
.HomeWrapper {
width: 100%;
display: flex;
flex-direction: column;
margin-left: 20%;
}
55 changes: 55 additions & 0 deletions src/Home.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
import './Home.css'

function Home() {

return (
<div className="HomeWrapper">
<p className="MyName">Rohit Rao</p>
<p className="HomeText">This website is all about me, and my work so far. Blah Blah Blah</p>
<p className="HomeText">This website is all about me, and my work so far. Blah Blah Blah</p>
<p className="HomeText">This website is all about me, and my work so far. Blah Blah Blah</p>
<p className="HomeText">This website is all about me, and my work so far. Blah Blah Blah</p>
<p className="HomeText">This website is all about me, and my work so far. Blah Blah Blah</p>
<p className="HomeText">This website is all about me, and my work so far. Blah Blah Blah</p>
<p className="HomeText">This website is all about me, and my work so far. Blah Blah Blah</p>
<p className="HomeText">This website is all about me, and my work so far. Blah Blah Blah</p>
<p className="HomeText">This website is all about me, and my work so far. Blah Blah Blah</p>
<p className="HomeText">This website is all about me, and my work so far. Blah Blah Blah</p>
<p className="HomeText">This website is all about me, and my work so far. Blah Blah Blah</p>
<p className="HomeText">This website is all about me, and my work so far. Blah Blah Blah</p>
<p className="HomeText">This website is all about me, and my work so far. Blah Blah Blah</p>
<p className="HomeText">This website is all about me, and my work so far. Blah Blah Blah</p>
<p className="HomeText">This website is all about me, and my work so far. Blah Blah Blah</p>
<p className="HomeText">This website is all about me, and my work so far. Blah Blah Blah</p>
<p className="HomeText">This website is all about me, and my work so far. Blah Blah Blah</p>
<p className="HomeText">This website is all about me, and my work so far. Blah Blah Blah</p>
<p className="HomeText">This website is all about me, and my work so far. Blah Blah Blah</p>
<p className="HomeText">This website is all about me, and my work so far. Blah Blah Blah</p>
<p className="HomeText">This website is all about me, and my work so far. Blah Blah Blah</p>
<p className="HomeText">This website is all about me, and my work so far. Blah Blah Blah</p>
<p className="HomeText">This website is all about me, and my work so far. Blah Blah Blah</p>
<p className="HomeText">This website is all about me, and my work so far. Blah Blah Blah</p>
<p className="HomeText">This website is all about me, and my work so far. Blah Blah Blah</p>
<p className="HomeText">This website is all about me, and my work so far. Blah Blah Blah</p>
<p className="HomeText">This website is all about me, and my work so far. Blah Blah Blah</p>
<p className="HomeText">This website is all about me, and my work so far. Blah Blah Blah</p>
<p className="HomeText">This website is all about me, and my work so far. Blah Blah Blah</p>
<p className="HomeText">This website is all about me, and my work so far. Blah Blah Blah</p>
<p className="HomeText">This website is all about me, and my work so far. Blah Blah Blah</p>
<p className="HomeText">This website is all about me, and my work so far. Blah Blah Blah</p>
<p className="HomeText">This website is all about me, and my work so far. Blah Blah Blah</p>
<p className="HomeText">This website is all about me, and my work so far. Blah Blah Blah</p>
<p className="HomeText">This website is all about me, and my work so far. Blah Blah Blah</p>
<p className="HomeText">This website is all about me, and my work so far. Blah Blah Blah</p>
<p className="HomeText">This website is all about me, and my work so far. Blah Blah Blah</p>
<p className="HomeText">This website is all about me, and my work so far. Blah Blah Blah</p>
<p className="HomeText">This website is all about me, and my work so far. Blah Blah Blah</p>
<p className="HomeText">This website is all about me, and my work so far. Blah Blah Blah</p>
<p className="HomeText">This website is all about me, and my work so far. Blah Blah Blah</p>
<p className="HomeText">This website is all about me, and my work so far. Blah Blah Blah</p>
<p className="HomeText">This website is all about me, and my work so far. Blah Blah Blah</p>
</div>
)
}

export default Home
40 changes: 40 additions & 0 deletions src/Sidebar.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
.SidebarWrapper {
width: 20%;
position: fixed;
top: 0;
bottom: 0;
left: 0;
z-index: 1;
display: flex;
flex-direction: row;
justify-content: space-between;
align-items: center;
background-color: #e2e2e2;
}

.SidebarContent {
width: 100%;
height: 100%;
display: flex;
flex-direction: column;
justify-content: start;
}

.CollapseBar {
width: 100%;
height: 100%;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
cursor: pointer;
}
.CollapseBar:hover {
background-color: #c9c9c9;
}

.TabText {
font-size: 1.25rem;
font-weight: 600;
padding: 0rem 1rem;
}
21 changes: 21 additions & 0 deletions src/Sidebar.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
import { MdOutlineKeyboardArrowLeft } from "react-icons/md";
import "./Sidebar.css";

function Sidebar() {
return (
<div className="SidebarWrapper">
<div className="SidebarContent">
<p className="TabText">Home</p>
<p className="TabText">About</p>
<p className="TabText">Experience</p>
<p className="TabText">Projects</p>
<p className="TabText">Contact</p>
</div>
<div className="CollapseBar">
<MdOutlineKeyboardArrowLeft size={30} />
</div>
</div>
);
}

export default Sidebar;
69 changes: 14 additions & 55 deletions src/index.css
Original file line number Diff line number Diff line change
@@ -1,68 +1,27 @@
:root {
font-family: Inter, system-ui, Avenir, Helvetica, Arial, sans-serif;
line-height: 1.5;
font-weight: 400;

color-scheme: light dark;
color: rgba(255, 255, 255, 0.87);
background-color: #242424;

font-family: 'Inter', sans-serif;
font-optical-sizing: auto;
font-synthesis: none;
text-rendering: optimizeLegibility;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}

a {
font-weight: 500;
color: #646cff;
text-decoration: inherit;
}
a:hover {
color: #535bf2;
}

body {
margin: 0;
display: flex;
place-items: center;
min-width: 320px;
min-height: 100vh;
::-webkit-scrollbar {
width: 0.75rem;
height: 0.75rem;
}

h1 {
font-size: 3.2em;
line-height: 1.1;
::-webkit-scrollbar-track {
background: #f1f1f1;
/* border-radius: 1rem; */
}

button {
border-radius: 8px;
border: 1px solid transparent;
padding: 0.6em 1.2em;
font-size: 1em;
font-weight: 500;
font-family: inherit;
background-color: #1a1a1a;
cursor: pointer;
transition: border-color 0.25s;
}
button:hover {
border-color: #646cff;
}
button:focus,
button:focus-visible {
outline: 4px auto -webkit-focus-ring-color;
::-webkit-scrollbar-thumb {
background: #c9c9c9;
border-radius: 1rem;
}

@media (prefers-color-scheme: light) {
:root {
color: #213547;
background-color: #ffffff;
}
a:hover {
color: #747bff;
}
button {
background-color: #f9f9f9;
}
}
::-webkit-scrollbar-thumb:hover {
background: #c1c1c1;
}

0 comments on commit 930f3dc

Please sign in to comment.