Skip to content

Commit

Permalink
added new contact section
Browse files Browse the repository at this point in the history
  • Loading branch information
Nathan1258 committed Jan 23, 2024
0 parents commit d7dcba6
Show file tree
Hide file tree
Showing 48 changed files with 20,478 additions and 0 deletions.
Binary file added .DS_Store
Binary file not shown.
5 changes: 5 additions & 0 deletions .idea/.gitignore

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

6 changes: 6 additions & 0 deletions .idea/inspectionProfiles/Project_Default.xml

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

8 changes: 8 additions & 0 deletions .idea/modules.xml

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

12 changes: 12 additions & 0 deletions .idea/portfolio.iml

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

62 changes: 62 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
<div align="center">
<img alt="Logo" src="https://raw.githubusercontent.com/nathan1258/ellisn-portfolio/master/src/assets/logo.png" width="100" />
</div>
<h1 align="center">
ellisn.com - portfolio
</h1>
<p align="center">
Built with React and <a href="https://styled-components.com/" target="_blank">Styled Components.</a> Hosted with <a href="https://www.vercel.com/" target="_blank">Vercel</a>
</p>
<p align="center">
<img src="https://vercelbadge.vercel.app/api/nathan1258/ellisn-portfolio?style=for-the-badge" alt="Vercel Status" />
</p>

![demo](https://raw.githubusercontent.com/nathan1258/ellisn-portfolio/master/src/assets/preview.png)

## 🚨 Forking this repo

**Yes** you can fork, make changes and use this project for your own portfolios or sites, **with attribution**.

I'm starting to share my projects and would like to start contributing to GitHub more - so here you go. However, please give credit if you do use anything - it has taken a long time to design and create.

### TL;DR

Yes, you can fork this repo. Please give proper credit to me (and any other's) by linking back to [ellisn.com](https://ellisn.com) and their respective sites. Thanks!

## 🛠 Installation & Set Up

1. Clone the repo

```sh
clone https://github.com/Nathan1258/ellisn-portfolio.git
```

2. Install packages

```sh
yarn install
```

3. Start the development server

```sh
yarn start
```

## 🚀 Building and Running for Production

1. Generate a full static production build

```sh
npm run build
```

1. Preview the site as it will appear once deployed

```sh
npm run serve
```

## 🥇 Contributions

[Typewriting effect](https://github.com/tameemsafi/typewriterjs)
45 changes: 45 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
{
"name": "portfolio",
"version": "0.1.0",
"private": true,
"dependencies": {
"@testing-library/jest-dom": "^5.14.1",
"@testing-library/react": "^13.0.0",
"@testing-library/user-event": "^13.2.1",
"@vercel/analytics": "^0.1.5",
"framer-motion": "^7.6.18",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-icons": "^4.7.1",
"react-responsive": "^9.0.2",
"react-router-dom": "^6.12.1",
"react-scripts": "5.0.1",
"styled-components": "^5.3.6",
"typewriter-effect": "^2.19.0",
"web-vitals": "^2.1.0"
},
"scripts": {
"start": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test",
"eject": "react-scripts eject"
},
"eslintConfig": {
"extends": [
"react-app",
"react-app/jest"
]
},
"browserslist": {
"production": [
">0.2%",
"not dead",
"not op_mini all"
],
"development": [
"last 1 chrome version",
"last 1 firefox version",
"last 1 safari version"
]
}
}
Binary file added public/favicon.ico
Binary file not shown.
Binary file added public/favicon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
40 changes: 40 additions & 0 deletions public/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<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="description" content="Nathan Ellis' online portfolio" />
<link rel="apple-touch-icon" href="%PUBLIC_URL%/favicon.ico" />
<!--
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>Nathan Ellis</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 public/logo192.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/logo512.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
25 changes: 25 additions & 0 deletions public/manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"short_name": "React App",
"name": "Create React App Sample",
"icons": [
{
"src": "favicon.ico",
"sizes": "64x64 32x32 24x24 16x16",
"type": "image/x-icon"
},
{
"src": "logo192.png",
"type": "image/png",
"sizes": "192x192"
},
{
"src": "logo512.png",
"type": "image/png",
"sizes": "512x512"
}
],
"start_url": ".",
"display": "standalone",
"theme_color": "#000000",
"background_color": "#ffffff"
}
3 changes: 3 additions & 0 deletions public/robots.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# https://www.robotstxt.org/robotstxt.html
User-agent: *
Disallow:
42 changes: 42 additions & 0 deletions src/App.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
.App {
text-align: center;
}

html {
scroll-behavior: smooth;
}

.App-logo {
height: 40vmin;
pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) {
.App-logo {
animation: App-logo-spin infinite 20s linear;
}
}

.App-header {
background-color: #282c34;
min-height: 100vh;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
font-size: calc(10px + 2vmin);
color: white;
}

.App-link {
color: #61dafb;
}

@keyframes App-logo-spin {
from {
transform: rotate(0deg);
}
to {
transform: rotate(360deg);
}
}
92 changes: 92 additions & 0 deletions src/App.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
import "./App.css";
import { Home } from "./components/home";
import { MyWork } from "./components/mywork";
import { About } from "./components/about";
import { Contact } from "./components/contact";
import { Navbar } from "./components/navbar";
import { Footer } from "./components/footer";
import React, { useState, useEffect } from "react";

import { inject } from "@vercel/analytics";

import styled, { ThemeProvider } from "styled-components";
import { lightTheme, darkTheme, GlobalStyles } from "./theme";
import { BrowserRouter as Router, Route, Routes } from "react-router-dom";

import { CloudNotify } from "./components/projects/cloudnotify";
import { Upsend } from "./components/projects/upsend";

const AppContainer = styled.div`
position: relative;
width: 100%;
height: 100vh;
scroll-behavior: smooth;
`;

function App() {
inject();

const [theme, setTheme] = useState("light");
const isDarkTheme = theme === "dark";
const toggleTheme = () => {
const updatedTheme = isDarkTheme ? "light" : "dark";
setTheme(updatedTheme);
localStorage.setItem("theme", updatedTheme);
};
useEffect(() => {
const savedTheme = localStorage.getItem("theme");
const prefersDark =
window.matchMedia &&
window.matchMedia("(prefers-color-scheme: dark)").matches;
if (savedTheme && ["dark", "light"].includes(savedTheme)) {
setTheme(savedTheme);
} else if (prefersDark) {
setTheme("dark");
}
}, []);

useEffect(() => {
// Check for the hash in the URL and scroll to the corresponding element
const hash = window.location.hash;
if (hash) {
const element = document.querySelector(hash);
if (element) {
element.scrollIntoView();
}
}
}, []);

return (
<Router>
<AppContainer>
<ThemeProvider theme={isDarkTheme ? darkTheme : lightTheme}>
<>
<GlobalStyles />
<Navbar isDarkTheme={isDarkTheme} toggleTheme={toggleTheme} />

<Routes>
<Route path="/" element={<PageWrapper />}></Route>
<Route path="/projects/cloud-notify" element={<CloudNotify />} />
<Route path="/projects/upsend" element={<Upsend />} />
</Routes>

<Footer />
</>
</ThemeProvider>
</AppContainer>
</Router>
);
}

const PageWrapper = () => {
return (
<div>
<Home />
<About />
<MyWork />
<Contact />
</div>
);
};

export default App;
Binary file added src/assets/cloudnotify.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/preview.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

1 comment on commit d7dcba6

@vercel
Copy link

@vercel vercel bot commented on d7dcba6 Jan 23, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.