This commit is contained in:
Kaushik Narayan R 2023-11-05 00:28:42 -07:00
parent f9e4b1e328
commit 75fc0482e8
18 changed files with 1395 additions and 90 deletions

View File

@ -1,70 +1 @@
# Getting Started with Create React App # portfolio-page
This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).
## Available Scripts
In the project directory, you can run:
### `npm start`
Runs the app in the development mode.\
Open [http://localhost:3000](http://localhost:3000) to view it in your browser.
The page will reload when you make changes.\
You may also see any lint errors in the console.
### `npm test`
Launches the test runner in the interactive watch mode.\
See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information.
### `npm run build`
Builds the app for production to the `build` folder.\
It correctly bundles React in production mode and optimizes the build for the best performance.
The build is minified and the filenames include the hashes.\
Your app is ready to be deployed!
See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information.
### `npm run eject`
**Note: this is a one-way operation. Once you `eject`, you can't go back!**
If you aren't satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project.
Instead, it will copy all the configuration files and the transitive dependencies (webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you're on your own.
You don't have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn't feel obligated to use this feature. However we understand that this tool wouldn't be useful if you couldn't customize it when you are ready for it.
## Learn More
You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started).
To learn React, check out the [React documentation](https://reactjs.org/).
### Code Splitting
This section has moved here: [https://facebook.github.io/create-react-app/docs/code-splitting](https://facebook.github.io/create-react-app/docs/code-splitting)
### Analyzing the Bundle Size
This section has moved here: [https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size](https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size)
### Making a Progressive Web App
This section has moved here: [https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app](https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app)
### Advanced Configuration
This section has moved here: [https://facebook.github.io/create-react-app/docs/advanced-configuration](https://facebook.github.io/create-react-app/docs/advanced-configuration)
### Deployment
This section has moved here: [https://facebook.github.io/create-react-app/docs/deployment](https://facebook.github.io/create-react-app/docs/deployment)
### `npm run build` fails to minify
This section has moved here: [https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify](https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify)

1025
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -3,11 +3,16 @@
"version": "0.1.0", "version": "0.1.0",
"private": true, "private": true,
"dependencies": { "dependencies": {
"@emotion/react": "^11.11.1",
"@emotion/styled": "^11.11.0",
"@mui/icons-material": "^5.14.16",
"@mui/material": "^5.14.16",
"@testing-library/jest-dom": "^5.17.0", "@testing-library/jest-dom": "^5.17.0",
"@testing-library/react": "^13.4.0", "@testing-library/react": "^13.4.0",
"@testing-library/user-event": "^13.5.0", "@testing-library/user-event": "^13.5.0",
"react": "^18.2.0", "react": "^18.2.0",
"react-dom": "^18.2.0", "react-dom": "^18.2.0",
"react-material-ui-carousel": "^3.4.2",
"react-scripts": "5.0.1", "react-scripts": "5.0.1",
"web-vitals": "^2.1.4" "web-vitals": "^2.1.4"
}, },

Binary file not shown.

After

Width:  |  Height:  |  Size: 39 KiB

BIN
public/pappu2.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 321 KiB

View File

@ -1,23 +1,10 @@
import logo from './logo.svg';
import './App.css'; import './App.css';
import Menu from './components/Menu';
function App() { function App() {
return ( return (
<div className="App"> <div className="App">
<header className="App-header"> <Menu />
<img src={logo} className="App-logo" alt="logo" />
<p>
Edit <code>src/App.js</code> and save to reload.
</p>
<a
className="App-link"
href="https://reactjs.org"
target="_blank"
rel="noopener noreferrer"
>
Learn React
</a>
</header>
</div> </div>
); );
} }

Binary file not shown.

Binary file not shown.

View File

@ -0,0 +1,9 @@
import React from 'react'
const Experiences = () => {
return (
<div>Experiences</div>
)
}
export default Experiences

View File

@ -0,0 +1,9 @@
import React from 'react'
const Interests = () => {
return (
<div>Interests</div>
)
}
export default Interests

59
src/components/Landing.js Normal file
View File

@ -0,0 +1,59 @@
import React from 'react';
import { Button, ButtonGroup, List, ListItem, ListItemText, Typography } from '@mui/material';
import { handleButtonClick } from '../utils/linkClick';
import GitHubIcon from '@mui/icons-material/GitHub';
import LinkedInIcon from '@mui/icons-material/LinkedIn';
import EmailIcon from '@mui/icons-material/Email';
const socialsData = [
{ key: 'github', socialText: 'GitHub', socialLink: 'https://github.com/20kaushik02', socialIcon: <GitHubIcon /> },
{ key: 'linkedin', socialText: 'LinkedIn', socialLink: 'https://linkedin.com/in/kaushik-ravishankar', socialIcon: <LinkedInIcon /> },
{ key: 'email', socialText: 'Email', socialLink: 'mailto:hello@knravish.me', socialIcon: <EmailIcon /> },
];
const Landing = () => {
return (
<>
<List>
{/* one-liner summary */}
<ListItem>
<ListItemText
primary={"TL;DR: Aspiring SWE whose passions lie in computer\
networks, web development and machine learning."} />
</ListItem>
{/* intro with education */}
<ListItem>
<ListItemText
primary={"I'm currently pursuing my masters in computer\
science at ASU, and will be graduating in the summer of 2025."} />
</ListItem>
{/* current stuff and last stint */}
<ListItem>
<ListItemText
primary={"Right now, I'm working on *insert recent project\
here*. My last stint was at *insert recent experience* as a\
*insert recent role*, *insert recent role's description*."} />
</ListItem>
</List>
<Typography paragraph>
Reach me at:
</Typography>
<ButtonGroup
size="large"
variant="outlined"
aria-label="social media links button group">
{socialsData.map((social) => (
<Button
key={social.key}
onClick={() => handleButtonClick(social.socialLink)}
>
{social.socialIcon}
</Button>
))}
</ButtonGroup>
</>
)
}
export default Landing;

View File

@ -0,0 +1,38 @@
import { Typography } from '@mui/material'
import * as React from 'react'
const LoremIpsum = () => {
return (
<>
<Typography paragraph>
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod
tempor incididunt ut labore et dolore magna aliqua. Rhoncus dolor purus non
enim praesent elementum facilisis leo vel. Risus at ultrices mi tempus
imperdiet. Semper risus in hendrerit gravida rutrum quisque non tellus.
Convallis convallis tellus id interdum velit laoreet id donec ultrices.
Odio morbi quis commodo odio aenean sed adipiscing. Amet nisl suscipit
adipiscing bibendum est ultricies integer quis. Cursus euismod quis viverra
nibh cras. Metus vulputate eu scelerisque felis imperdiet proin fermentum
leo. Mauris commodo quis imperdiet massa tincidunt. Cras tincidunt lobortis
feugiat vivamus at augue. At augue eget arcu dictum varius duis at
consectetur lorem. Velit sed ullamcorper morbi tincidunt. Lorem donec massa
sapien faucibus et molestie ac.
</Typography>
<Typography paragraph>
Consequat mauris nunc congue nisi vitae suscipit. Fringilla est ullamcorper
eget nulla facilisi etiam dignissim diam. Pulvinar elementum integer enim
neque volutpat ac tincidunt. Ornare suspendisse sed nisi lacus sed viverra
tellus. Purus sit amet volutpat consequat mauris. Elementum eu facilisis
sed odio morbi. Euismod lacinia at quis risus sed vulputate odio. Morbi
tincidunt ornare massa eget egestas purus viverra accumsan in. In hendrerit
gravida rutrum quisque non tellus orci ac. Pellentesque nec nam aliquam sem
et tortor. Habitant morbi tristique senectus et. Adipiscing elit duis
tristique sollicitudin nibh sit. Ornare aenean euismod elementum nisi quis
eleifend. Commodo viverra maecenas accumsan lacus vel facilisis. Nulla
posuere sollicitudin aliquam ultrices sagittis orci a.
</Typography>
</>
)
}
export default LoremIpsum;

160
src/components/Menu.js Normal file
View File

@ -0,0 +1,160 @@
import * as React from 'react';
import AppBar from '@mui/material/AppBar';
import Avatar from '@mui/material/Avatar';
import Box from '@mui/material/Box';
import CssBaseline from '@mui/material/CssBaseline';
import Divider from '@mui/material/Divider';
import Drawer from '@mui/material/Drawer';
import IconButton from '@mui/material/IconButton';
import List from '@mui/material/List';
import ListItem from '@mui/material/ListItem';
import ListItemButton from '@mui/material/ListItemButton';
import ListItemIcon from '@mui/material/ListItemIcon';
import ListItemText from '@mui/material/ListItemText';
import MenuIcon from '@mui/icons-material/Menu';
import Toolbar from '@mui/material/Toolbar';
import Typography from '@mui/material/Typography';
import Link from '@mui/material/Link';
import LandingIcon from '@mui/icons-material/Home';
import ProjIcon from '@mui/icons-material/AccountTree';
import ExpIcon from '@mui/icons-material/Work';
import SkilIcon from '@mui/icons-material/Build';
import EduIcon from '@mui/icons-material/School';
import IntsIcon from '@mui/icons-material/SportsEsports';
import ArticleIcon from '@mui/icons-material/Article';
import Landing from './Landing';
import LoremIpsum from './LoremIpsum';
import Projects from './Projects';
const drawerWidth = 240;
const menuSections = [
{ key: 'landing', display_name: 'Home', appbar_text: 'Hello There!', display_icon: <LandingIcon />, },
{ key: 'proj', display_name: 'Projects', appbar_text: 'My Projects', display_icon: <ProjIcon />, },
{ key: 'exp', display_name: 'Experiences', appbar_text: 'My Career', display_icon: <ExpIcon />, },
{ key: 'skil', display_name: 'Skills', appbar_text: 'My Skills', display_icon: <SkilIcon />, },
{ key: 'edu', display_name: 'Education', appbar_text: 'My Education', display_icon: <EduIcon />, },
{ key: 'ints', display_name: 'Interests', appbar_text: 'My Interests', display_icon: <IntsIcon />, },
{ key: 'resume', display_name: 'Resume', appbar_text: 'My Resume', display_icon: <ArticleIcon />, },
];
const menuSectionsData = [
{ key: 'landing', component: <Landing /> },
{ key: 'proj', component: <Projects /> },
{ key: 'exp', component: <LoremIpsum /> },
{ key: 'skil', component: <LoremIpsum /> },
{ key: 'edu', component: <LoremIpsum /> },
{ key: 'ints', component: <LoremIpsum /> },
{ key: 'resume', component: <LoremIpsum /> },
];
export default function Menu(props) {
const { window } = props;
const [mobileOpen, setMobileOpen] = React.useState(false);
const [activeSection, setActiveSection] = React.useState('landing');
const handleDrawerToggle = () => {
setMobileOpen(!mobileOpen);
};
const drawer = (
<div>
{/* <Toolbar /> */}
<Box component="div" align="center" padding={2}>
<Avatar src={process.env.PUBLIC_URL + "pappu2.jpg"} alt='' sx={{ width: 120, height: 120 }} />
<Typography sx={{ padding: 2 }}>Kaushik Narayan Ravishankar</Typography>
</Box>
<Divider />
<List>
{menuSections.map((menuItem, index) => (
<ListItem onClick={() => { handleDrawerToggle(); setActiveSection(menuItem.key); }} key={menuItem.key} disablePadding>
<ListItemButton selected={activeSection === menuItem.key}>
<ListItemIcon>
{menuItem.display_icon}
</ListItemIcon>
<ListItemText primary={menuItem.display_name} />
</ListItemButton>
</ListItem>
))}
</List>
<Divider />
<Box component="div" align="center" padding={2}>
<Link sx={{ padding: 1 }} href="https://mui.com" underline="hover">
Made with MUI
</Link>
</Box>
</div>
);
const container = window !== undefined ? () => window().document.body : undefined;
return (
<Box sx={{ display: 'flex' }}>
<CssBaseline />
<AppBar
position="fixed"
sx={{
width: { sm: `calc(100% - ${drawerWidth}px)` },
ml: { sm: `${drawerWidth}px` },
}}
>
<Toolbar>
<IconButton
color="inherit"
aria-label="open drawer"
edge="start"
onClick={handleDrawerToggle}
sx={{ mr: 2, display: { sm: 'none' } }}
>
<MenuIcon />
</IconButton>
<Typography variant="h6" noWrap component="div">
{menuSections.filter((menuItem) => menuItem.key === activeSection)[0].appbar_text}
</Typography>
</Toolbar>
</AppBar>
<Box
component="nav"
sx={{ width: { sm: drawerWidth }, flexShrink: { sm: 0 } }}
aria-label="mailbox folders"
>
<Drawer
container={container}
variant="temporary"
open={mobileOpen}
onClose={handleDrawerToggle}
ModalProps={{
keepMounted: true, // Better open performance on mobile.
}}
sx={{
display: { xs: 'block', sm: 'none' },
'& .MuiDrawer-paper': { boxSizing: 'border-box', width: drawerWidth },
}}
>
{drawer}
</Drawer>
<Drawer
variant="permanent"
sx={{
display: { xs: 'none', sm: 'block' },
'& .MuiDrawer-paper': { boxSizing: 'border-box', width: drawerWidth },
}}
open
>
{drawer}
</Drawer>
</Box>
{/* content goes here */}
<Box
component="main"
sx={{ flexGrow: 1, padding: 3, width: { sm: `calc(100% - ${drawerWidth}px)` } }}
>
<Toolbar />
{menuSectionsData.filter((menuItem) => menuItem.key === activeSection)[0].component}
</Box>
</Box>
);
}

View File

@ -0,0 +1,62 @@
import React from 'react';
import { Button, Card, CardActionArea, CardActions, CardContent, CardMedia, List, ListItem, ListItemText, Typography } from '@mui/material';
import Carousel from 'react-material-ui-carousel';
import { handleButtonClick } from '../utils/linkClick';
export const projectsData = [
{
key: 'fyp-tcp-rl', oneliner: 'adversarial attacks on reinforcement learning-based congestion control for TCP',
name: 'Implementation of RL based TCP congestion control schemes and their performance evaluation under adversarial attacks',
img: 'fyp-tcp-rl.png',
desc: [
'Implementation of reinforcement learning based TCP congestion control mechanisms, namely deep Q-learning and PPO models,\
which were 2% more performant than existing algorithms.',
'Then, demonstrated that performance under simple adversarial attacks was dampened by 40%.',
'Utilized the ns-3 network simulator, TensorFlow and OpenAIs Gym framework for reinforcement learning.'
],
tools: ['ns3', 'TensorFlow', 'OpenAI Gym'],
link: 'https://github.com/harish3030/FYP-TCP-RL'
},
]
const Projects = () => {
const ProjectCard = (project) => {
return (
<Card scroll="paper" sx={{ maxWidth: 325 }} key={project.key}>
<CardActionArea>
<CardMedia
component="img"
height="140"
image={process.env.PUBLIC_URL + "Projects/" + project.img}
alt={project.name}
/>
<CardContent align="left">
<Typography gutterBottom primaryTypographyProps={{ fontSize: 16}} component="div">
{project.name}
</Typography>
<List>
{project.desc.map((line) =>
<ListItem>
<ListItemText primaryTypographyProps={{ fontSize: 12}} primary={line} />
</ListItem>
)}
</List>
</CardContent>
</CardActionArea>
<CardActions>
<Button onClick={() => handleButtonClick(project.link)} className="CheckButton">
Check it out
</Button>
</CardActions>
</Card>
)
}
return (
<>
<Carousel navButtonsAlwaysVisible cycleNavigation animation='slide'>
{projectsData.map(project => ProjectCard(project))}
</Carousel>
</>
)
}
export default Projects;

9
src/components/Skills.js Normal file
View File

@ -0,0 +1,9 @@
import React from 'react'
const Skills = () => {
return (
<div>Skills</div>
)
}
export default Skills

View File

@ -11,3 +11,16 @@ code {
font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New', font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',
monospace; monospace;
} }
.App-logo {
animation: spin 1s infinite linear;
}
@keyframes spin {
from {
transform: rotate(0deg);
}
to {
transform: rotate(360deg);
}
}

View File

@ -1,5 +0,0 @@
// jest-dom adds custom jest matchers for asserting on DOM nodes.
// allows you to do things like:
// expect(element).toHaveTextContent(/react/i)
// learn more: https://github.com/testing-library/jest-dom
import '@testing-library/jest-dom';

3
src/utils/linkClick.js Normal file
View File

@ -0,0 +1,3 @@
export const handleButtonClick = (link) => {
window.open(link, "_blank", "noopener")
}