Skip to content

Commit

Permalink
Merge pull request #8 from TusharSSurve/test
Browse files Browse the repository at this point in the history
[test] : Started with Footer CSS
  • Loading branch information
TusharSSurve authored Apr 18, 2024
2 parents 9a35941 + be7c741 commit 92d91fe
Show file tree
Hide file tree
Showing 14 changed files with 325 additions and 37 deletions.
119 changes: 119 additions & 0 deletions package-lock.json

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

5 changes: 5 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@
"private": true,
"homepage": "https://TusharSSurve.github.io/portfolio",
"dependencies": {
"@fortawesome/fontawesome-svg-core": "^6.5.2",
"@fortawesome/free-brands-svg-icons": "^6.5.2",
"@fortawesome/free-regular-svg-icons": "^6.5.2",
"@fortawesome/free-solid-svg-icons": "^6.5.2",
"@fortawesome/react-fontawesome": "^0.2.0",
"@testing-library/jest-dom": "^5.17.0",
"@testing-library/react": "^13.4.0",
"@testing-library/user-event": "^13.5.0",
Expand Down
30 changes: 2 additions & 28 deletions public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,40 +5,14 @@
<link rel="icon" href="%PUBLIC_URL%/favicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="theme-color" content="#000000" />
<meta name="author" content="Tushar Surve">
<meta
name="description"
content="Tushar Surve's Portfolio"
/>
<meta name="author" content="Tushar Surve" />
<meta name="description" content="Tushar Surve's Portfolio" />
<link rel="apple-touch-icon" href="%PUBLIC_URL%/logo192.png" />
<!--
manifest.json provides metadata used when your web app is installed on a
user's mobile device or desktop. See https://developers.google.com/web/fundamentals/web-app-manifest/
-->
<link rel="manifest" href="%PUBLIC_URL%/manifest.json" />
<!--
Notice the use of %PUBLIC_URL% in the tags above.
It will be replaced with the URL of the `public` folder during the build.
Only files inside the `public` folder can be referenced from the HTML.
Unlike "/favicon.ico" or "favicon.ico", "%PUBLIC_URL%/favicon.ico" will
work correctly both with client-side routing and a non-root public URL.
Learn how to configure a non-root public URL by running `npm run build`.
-->
<title>Tushar Surve</title>
</head>
<body>
<noscript>You need to enable JavaScript to run this app.</noscript>
<div id="root"></div>
<!--
This HTML file is a template.
If you open it directly in the browser, you will see an empty page.
You can add webfonts, meta tags, or analytics to this file.
The build step will place the bundled scripts into the <body> tag.
To begin the development, run `npm start` or `yarn start`.
To create a production bundle, use `npm run build` or `yarn build`.
-->
</body>
</html>
Binary file added src/assets/resume.pdf
Binary file not shown.
11 changes: 11 additions & 0 deletions src/global/Button.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import React from "react";
import styles from './Button.module.css';

const Button = (props) => {
return (
<div className={styles.button}>
{props.children}
</div>
)
}
export default Button;
20 changes: 20 additions & 0 deletions src/global/Button.module.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
.button {
border: 1px solid var(--neon-color);
border-radius: var(--border-radius);
padding: 12px 16px;
font-family: var(--font-roboto-slab);
line-height: 1;
text-decoration: none;
font-size: var(--font-14);
width: max-content;
cursor: pointer;
transition: all 0.3s ease-in;
}

.button:hover {
background-color: var(--neon-color);
}

.button:hover a {
color: var(--black-color);
}
27 changes: 27 additions & 0 deletions src/global/Cursor.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
import React, { useState, useEffect } from 'react';
import styles from './Cursor.module.css';
const Cursor = () => {
const [cursorPos, setCursorPos] = useState({ x: -100, y: -100 });

useEffect(() => {
const updateCursorPosition = (e) => {
setCursorPos({ x: e.clientX, y: e.clientY });
};

window.addEventListener('mousemove', updateCursorPosition);

return () => {
window.removeEventListener('mousemove', updateCursorPosition);
};
}, []);

return (
<div className={styles['custom-cursor']} style={{ left: cursorPos.x, top: cursorPos.y }}>
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="none" stroke="#000000" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round">
<circle cx="12" cy="12" r="10" />
</svg>
</div>
);
};

export default Cursor;
17 changes: 17 additions & 0 deletions src/global/Cursor.module.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
.custom-cursor {
position: fixed;
pointer-events: none;
z-index: 9999;
transition: transform 0.15s ease-out;
transform: translate(-50%, -50%);
}

.custom-cursor svg {
width: 20px;
height: 20px;
fill: none;
stroke: var(--neon-color);
stroke-width: 1;
stroke-linecap: round;
stroke-linejoin: round;
}
16 changes: 15 additions & 1 deletion src/global/Footer.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,23 @@
import React from "react";
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
import { faCopyright } from '@fortawesome/free-regular-svg-icons';
import { faGithub, faKaggle, faLinkedin, faInstagram } from '@fortawesome/free-brands-svg-icons'
import styles from './Footer.module.css';

const Footer = () => {
return (
<footer>
<h1>Footer</h1>
<div className={styles['footer-container']}>
<p className={styles.copyright}><FontAwesomeIcon icon={faCopyright} /> Tushar Surve 2024</p>
<div className={styles.contact}>
<ul>
<li><a href="https://github.com/TusharSSurve"><FontAwesomeIcon icon={faGithub} /></a></li>
<li><a href="https://www.linkedin.com/in/surve-tushar/"><FontAwesomeIcon icon={faLinkedin} /></a></li>
<li><a href="https://www.kaggle.com/tusharsurve"><FontAwesomeIcon icon={faKaggle} /></a></li>
<li><a href="https://instagram.com/surve_tushar"><FontAwesomeIcon icon={faInstagram} /></a></li>
</ul>
</div>
</div>
</footer>
);
}
Expand Down
55 changes: 55 additions & 0 deletions src/global/Footer.module.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
footer {
background-color: var(--dark-grey-color);
}

.footer-container {
width: 90%;
display: flex;
justify-content: space-between;
align-items: center;
margin: 0 auto;
padding: 40px 0;
}

.copyright {
font-size: var(--font-14);
color: var(--dark-white-color);
}

.contact ul {
display: flex;
gap: 16px;
padding: 0;
margin: 0;
}

.contact ul li {
list-style-type: none;
}

.contact ul li a {
text-decoration: none;
color: var(--dark-white-color);
width: 50px;
height: 50px;
border: 1px solid rgba(248, 248, 248, .2);
border-radius: 50%;
flex-direction: row;
justify-content: center;
align-items: center;
transition: all .2s;
display: flex;
}

.contact ul li a:hover {
color: var(--neon-color);
background-color: #3b3b3b;
border-color: rgba(0, 0, 0, 0);
}

@media (max-width: 500px) {
.footer-container {
flex-direction: column-reverse;
gap: 40px;
}
}
21 changes: 19 additions & 2 deletions src/global/Header.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,26 @@
import React from "react";

import styles from './Header.module.css'
import resume from '../assets/resume.pdf';
import Button from "./Button";
const Header = () => {
return (
<header>
<h1>Header</h1>
<div className={styles['logo-container']}>
<a href="/">Tushar Surve</a>
</div>
<div className={styles['navbar-container']}>
<nav>
<ul>
<li><a href="/">ABOUT</a></li>
<li><a href="/">EXPERIENCE</a></li>
<li><a href="/">WORK</a></li>
<li><a href="/">CONTACT</a></li>
</ul>
<Button>
<a href={resume} className={styles.button} target="_blank" rel="noopener noreferrer">Resume</a>
</Button>
</nav>
</div>
</header>
);
}
Expand Down
4 changes: 4 additions & 0 deletions src/global/Header.module.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
.button {
color: var(--neon-color);
text-decoration: none;
}
Loading

0 comments on commit 92d91fe

Please sign in to comment.