Skip to content

Commit 7e2525d

Browse files
authored
Merge pull request #106 from carsonSgit/code-formatting
style: Run prettier on codebase
2 parents 226751b + 4a1210a commit 7e2525d

File tree

8 files changed

+62
-52
lines changed

8 files changed

+62
-52
lines changed

README.md

Lines changed: 22 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,9 @@
2929
<div align="center"><h2> ✨ Features </h2></div>
3030

3131
- 🎨 **Top Project Showcase:** Tiled sections featuring my top projects with links to live demos and GitHub repos.
32-
- 🔧 **Technologies:** A display of *most* of the technologies I've used in my CS career.
32+
- 🔧 **Technologies:** A display of _most_ of the technologies I've used in my CS career.
3333
- 📱 **Responsive Design:** Made with different screen-sizes in mind (mobile-first approach).
3434

35-
3635
<div align="center"><h2> 🔗 Important Links </h2></div>
3736

3837
- 📚 **Development Resources:** Here are some [helpful links](https://github.com/carsonSgit/carsonsgit.github.io/issues/9) I made use of during development.
@@ -41,7 +40,6 @@
4140
- 📘 **TypeScript Documentation:** Explore TypeScript documentation [here](https://www.typescriptlang.org/docs/).
4241
- 🎨 **SCSS Documentation:** Check out the SCSS documentation [here](https://sass-lang.com/documentation).
4342

44-
4543
<div align="center"><h2> 📈 Quick Repo Stats </h2></div>
4644

4745
<div align="center">
@@ -51,42 +49,47 @@
5149
<img src="https://img.shields.io/github/issues-pr-closed/carsonSgit/carsonSgit.github.io?style=for-the-badge" alt="GitHub PRs" />
5250
</p>
5351
<p>
52+
<img src="https://img.shields.io/github/languages/count/carsonSgit/carsonSgit.github.io?style=for-the-badge" alt="GitHub Languages" />
5453
<img src="https://img.shields.io/github/languages/code-size/carsonSgit/carsonSgit.github.io?style=for-the-badge" alt="GitHub Code Size" />
5554
<img src="https://img.shields.io/github/repo-size/carsonSgit/carsonSgit.github.io?style=for-the-badge" alt="GitHub Repo Size" />
56-
<img src="https://img.shields.io/github/languages/count/carsonSgit/carsonSgit.github.io?style=for-the-badge" alt="GitHub Languages" />
5755
</p>
5856
</div>
5957

6058
<div align="center"><h2> 🚀 Deploy Locally </h2></div>
6159
If you want to run it locally follow these steps:
6260

6361
### 🔧 Prerequisites:
62+
6463
- `Git`
6564
- `Node.js`
6665
- `npm (Node Package Manager)`
6766

6867
### 📥 Installation Steps:
68+
6969
1. Clone the repository:
7070
```bash
7171
git clone https://github.com/carsonSgit/carsonsgit.github.io.git
72-
```
72+
```
7373
2. Go to the project directory:
74-
```bash
75-
cd carsonsgit.github.io
76-
```
74+
```bash
75+
cd carsonsgit.github.io
76+
```
7777
3. Install dependencies
78-
```bash
79-
npm i
80-
```
81-
**OR** if your `npm i` doesn't work
82-
83-
```bash
84-
npm i --force
85-
```
78+
79+
```bash
80+
npm i
81+
```
82+
83+
**OR** if your `npm i` doesn't work
84+
85+
```bash
86+
npm i --force
87+
```
88+
8689
4. Run locally
87-
```bash
88-
npm start
89-
```
90+
```bash
91+
npm start
92+
```
9093
5. Open your browser at `http://localhost:3000`!
9194

9295
<br />

public/manifest.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@
2020
],
2121
"start_url": ".",
2222
"display": "standalone",
23-
"theme_color": "#1c5722",
24-
"background_color": "#23272b",
23+
"theme_color": "#1c5722",
24+
"background_color": "#23272b",
2525
"description": "Welcome to my personal portfolio!",
2626
"lang": "en-US"
2727
}

src/App.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,6 @@ body {
2626
}
2727

2828
::selection {
29-
color:rgb(106, 222, 170);
29+
color: rgb(106, 222, 170);
3030
background-color: #c7f2ea4d;
31-
}
31+
}

src/Components/About/About.scss

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,9 @@ $tools-item-tint: darken($list-item-color, 40%);
133133
font-family: 'Poppins', sans-serif;
134134
font-weight: 500;
135135
box-shadow: $box-shadow;
136-
transition: background 0.3s ease, transform 0.2s ease;
136+
transition:
137+
background 0.3s ease,
138+
transform 0.2s ease;
137139

138140
&:hover {
139141
transform: translateY(-2px);
@@ -174,7 +176,9 @@ $tools-item-tint: darken($list-item-color, 40%);
174176
font-family: 'Poppins', sans-serif;
175177
font-weight: 500;
176178
box-shadow: $box-shadow;
177-
transition: background 0.3s ease, transform 0.2s ease;
179+
transition:
180+
background 0.3s ease,
181+
transform 0.2s ease;
178182

179183
&:hover {
180184
transform: translateY(-2px);
@@ -192,4 +196,3 @@ $tools-item-tint: darken($list-item-color, 40%);
192196
margin-top: -3px;
193197
font-size: 1.2em;
194198
}
195-

src/Components/About/About.tsx

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import React from 'react';
22
import { motion, useInView } from 'framer-motion';
3-
import { FaFilePdf, FaStar, FaGithub } from 'react-icons/fa';
3+
import { FaFilePdf, FaStar, FaGithub } from 'react-icons/fa';
44
import { toast, ToastContainer } from 'react-toastify';
55
import 'react-toastify/dist/ReactToastify.css';
66
import './About.scss';
@@ -10,8 +10,8 @@ const About: React.FC = () => {
1010
const isInView = useInView(ref, { once: true });
1111

1212
const handleDownloadClick = () => {
13-
toast.success("Resume downloaded successfully!", {
14-
position: "bottom-right",
13+
toast.success('Resume downloaded successfully!', {
14+
position: 'bottom-right',
1515
});
1616
};
1717

@@ -98,23 +98,23 @@ const About: React.FC = () => {
9898
alt="At JACHacks"
9999
/>
100100
<div className="ButtonContainer">
101-
<a
102-
href={`${process.env.PUBLIC_URL}/CarsonSpriggs_CV.pdf`}
103-
download
101+
<a
102+
href={`${process.env.PUBLIC_URL}/CarsonSpriggs_CV.pdf`}
103+
download
104104
onClick={handleDownloadClick}
105105
>
106106
<button className="DownloadCVButton">
107107
<FaFilePdf className="DownloadIcon" />
108108
Resume
109109
</button>
110110
</a>
111-
<a
112-
href="https://github.com/carsonSgit/carsonsgit.github.io"
113-
target="_blank"
111+
<a
112+
href="https://github.com/carsonSgit/carsonsgit.github.io"
113+
target="_blank"
114114
rel="noreferrer"
115115
>
116116
<button className="GitHubButton">
117-
<FaStar className="StarIcon" />
117+
<FaStar className="StarIcon" />
118118
this on
119119
<FaGithub className="GitHubIcon" />
120120
</button>

src/Components/Home/Hero/Hero.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ $font-color: #a2aa94;
1313
flex-direction: column;
1414
height: 100vh;
1515
color: $text-color;
16-
margin-top:80px;
16+
margin-top: 80px;
1717
margin-bottom: -100px;
1818
overflow: hidden;
1919

src/Components/Navbar/Navbar.scss

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ $hamburger-size: 32px;
2121
left: 0;
2222
right: 0;
2323
z-index: 1000;
24-
background-color: #27302B;
24+
background-color: #27302b;
2525

2626
@media (max-width: 768px) {
2727
padding-top: 20px;
@@ -40,7 +40,9 @@ $hamburger-size: 32px;
4040

4141
a {
4242
color: $navbar-text-color;
43-
transition: background 0.5s ease, color 0.5s ease;
43+
transition:
44+
background 0.5s ease,
45+
color 0.5s ease;
4446

4547
&:hover {
4648
background: linear-gradient(
@@ -97,7 +99,9 @@ $hamburger-size: 32px;
9799
font-size: 1.5rem;
98100
font-weight: 700;
99101
position: relative;
100-
transition: background 0.5s ease, color 0.5s ease;
102+
transition:
103+
background 0.5s ease,
104+
color 0.5s ease;
101105

102106
@media (max-width: 768px) {
103107
margin: 0;
@@ -106,7 +110,9 @@ $hamburger-size: 32px;
106110
text-align: right;
107111
font-weight: 700;
108112
background-color: $background-color;
109-
transition: transform 0.3s ease, opacity 0.3s ease;
113+
transition:
114+
transform 0.3s ease,
115+
opacity 0.3s ease;
110116
transform: translateY(0px);
111117

112118
&.show {
@@ -168,4 +174,4 @@ $hamburger-size: 32px;
168174
100% {
169175
background-position: 0% 50%;
170176
}
171-
}
177+
}

src/Components/Navbar/Navbar.tsx

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,12 @@ const Navbar: React.FC = () => {
1717
event.preventDefault();
1818
const element = document.getElementById(id);
1919
if (element) {
20-
const elementPosition = element.getBoundingClientRect().top + window.scrollY;
21-
const offsetPosition = elementPosition - 60;
20+
const elementPosition =
21+
element.getBoundingClientRect().top + window.scrollY;
22+
const offsetPosition = elementPosition - 60;
2223
window.scrollTo({
2324
top: offsetPosition,
24-
behavior: 'smooth'
25+
behavior: 'smooth',
2526
});
2627
}
2728
setMenuOpen(false);
@@ -30,13 +31,10 @@ const Navbar: React.FC = () => {
3031
return (
3132
<nav className="navbar">
3233
<div className="navbar-left">
33-
<a
34-
href={`#hero`}
35-
onClick={event => handleLinkClick(event, 'hero')}
36-
>
37-
carsonSgit
38-
</a>
39-
</div>
34+
<a href={`#hero`} onClick={event => handleLinkClick(event, 'hero')}>
35+
carsonSgit
36+
</a>
37+
</div>
4038
<div className="hamburger" onClick={toggleMenu}>
4139
{menuOpen ? <FaTimes /> : <FaBars />}
4240
</div>

0 commit comments

Comments
 (0)