├── .gitignore
├── README.md
├── package-lock.json
├── package.json
├── public
├── favicon-32x32.png
├── index.html
├── logo192.png
├── logo512.png
├── manifest.json
└── robots.txt
├── src
├── App.tsx
├── assets
│ ├── about-illustration.svg
│ ├── about-me-page.svg
│ ├── arrow-btn-icon.svg
│ ├── contact-illustration.svg
│ ├── contact-page.svg
│ ├── download-btn-icon.svg
│ ├── facebook-icon.svg
│ ├── hero-illustration.svg
│ ├── home-page.svg
│ ├── instagram-icon.svg
│ ├── projects-page.svg
│ ├── twitter-icon.svg
│ ├── ui-ux-project-one.svg
│ ├── ui-ux-project-three.svg
│ ├── ui-ux-project-two.svg
│ ├── web-project-one.jpeg
│ ├── web-project-three.jpeg
│ ├── web-project-two.jpeg
│ └── youtube-icon.svg
├── components
│ ├── Button.tsx
│ ├── Card.tsx
│ ├── LabelInput.tsx
│ ├── Menu.tsx
│ ├── Reveal.tsx
│ ├── SocialMediaIcon.tsx
│ └── index.ts
├── data.ts
├── index.css
├── index.tsx
├── react-app-env.d.ts
├── utils
│ ├── transition.ts
│ └── variants.ts
└── views
│ ├── About.tsx
│ ├── Contact.tsx
│ ├── Hero.tsx
│ ├── Projects.tsx
│ └── index.ts
├── tailwind.config.js
└── tsconfig.json
/.gitignore:
--------------------------------------------------------------------------------
1 | node_modules
2 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # Getting Started with Create React App
2 |
3 | This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).
4 |
5 | ## Available Scripts
6 |
7 | In the project directory, you can run:
8 |
9 | ### `npm start`
10 |
11 | Runs the app in the development mode.\
12 | Open [http://localhost:3000](http://localhost:3000) to view it in the browser.
13 |
14 | The page will reload if you make edits.\
15 | You will also see any lint errors in the console.
16 |
17 | ### `npm test`
18 |
19 | Launches the test runner in the interactive watch mode.\
20 | See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information.
21 |
22 | ### `npm run build`
23 |
24 | Builds the app for production to the `build` folder.\
25 | It correctly bundles React in production mode and optimizes the build for the best performance.
26 |
27 | The build is minified and the filenames include the hashes.\
28 | Your app is ready to be deployed!
29 |
30 | See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information.
31 |
32 | ### `npm run eject`
33 |
34 | **Note: this is a one-way operation. Once you `eject`, you can’t go back!**
35 |
36 | 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.
37 |
38 | 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.
39 |
40 | 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.
41 |
42 | ## Learn More
43 |
44 | You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started).
45 |
46 | To learn React, check out the [React documentation](https://reactjs.org/).
47 |
--------------------------------------------------------------------------------
/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "portfolio-app-typescript",
3 | "version": "0.1.0",
4 | "private": true,
5 | "dependencies": {
6 | "@emotion/react": "^11.11.1",
7 | "@emotion/styled": "^11.11.0",
8 | "@mui/icons-material": "^5.14.8",
9 | "@mui/material": "^5.14.8",
10 | "@testing-library/jest-dom": "^5.17.0",
11 | "@testing-library/react": "^13.4.0",
12 | "@testing-library/user-event": "^13.5.0",
13 | "@types/jest": "^27.5.2",
14 | "@types/node": "^16.18.48",
15 | "@types/react": "^18.2.21",
16 | "@types/react-dom": "^18.2.7",
17 | "framer-motion": "^10.16.4",
18 | "react": "^18.2.0",
19 | "react-dom": "^18.2.0",
20 | "react-scripts": "5.0.1",
21 | "react-scroll": "^1.8.9",
22 | "react-simple-typewriter": "^5.0.1",
23 | "typescript": "^4.9.5",
24 | "web-vitals": "^2.1.4"
25 | },
26 | "scripts": {
27 | "start": "react-scripts start",
28 | "build": "react-scripts build",
29 | "test": "react-scripts test",
30 | "eject": "react-scripts eject"
31 | },
32 | "eslintConfig": {
33 | "extends": [
34 | "react-app",
35 | "react-app/jest"
36 | ]
37 | },
38 | "browserslist": {
39 | "production": [
40 | ">0.2%",
41 | "not dead",
42 | "not op_mini all"
43 | ],
44 | "development": [
45 | "last 1 chrome version",
46 | "last 1 firefox version",
47 | "last 1 safari version"
48 | ]
49 | },
50 | "devDependencies": {
51 | "@types/react-scroll": "^1.8.7",
52 | "tailwindcss": "^3.3.3"
53 | }
54 | }
55 |
--------------------------------------------------------------------------------
/public/favicon-32x32.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ionandrei44/portfolio-typescript/2aa5c18c83d1c725a39c5c34824b11261e0f9886/public/favicon-32x32.png
--------------------------------------------------------------------------------
/public/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
12 |
13 |
17 |
18 |
27 | My Portfolio
28 |
29 |
30 | You need to enable JavaScript to run this app.
31 |
32 |
42 |
43 |
44 |
--------------------------------------------------------------------------------
/public/logo192.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ionandrei44/portfolio-typescript/2aa5c18c83d1c725a39c5c34824b11261e0f9886/public/logo192.png
--------------------------------------------------------------------------------
/public/logo512.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ionandrei44/portfolio-typescript/2aa5c18c83d1c725a39c5c34824b11261e0f9886/public/logo512.png
--------------------------------------------------------------------------------
/public/manifest.json:
--------------------------------------------------------------------------------
1 | {
2 | "short_name": "React App",
3 | "name": "Create React App Sample",
4 | "icons": [
5 | {
6 | "src": "favicon.ico",
7 | "sizes": "64x64 32x32 24x24 16x16",
8 | "type": "image/x-icon"
9 | },
10 | {
11 | "src": "logo192.png",
12 | "type": "image/png",
13 | "sizes": "192x192"
14 | },
15 | {
16 | "src": "logo512.png",
17 | "type": "image/png",
18 | "sizes": "512x512"
19 | }
20 | ],
21 | "start_url": ".",
22 | "display": "standalone",
23 | "theme_color": "#000000",
24 | "background_color": "#ffffff"
25 | }
26 |
--------------------------------------------------------------------------------
/public/robots.txt:
--------------------------------------------------------------------------------
1 | # https://www.robotstxt.org/robotstxt.html
2 | User-agent: *
3 | Disallow:
4 |
--------------------------------------------------------------------------------
/src/App.tsx:
--------------------------------------------------------------------------------
1 | // views
2 | import { About, Contact, Hero, Projects } from "./views";
3 |
4 | // components
5 | import { Menu } from "./components";
6 |
7 | function App() {
8 | return (
9 | <>
10 |
11 |
12 |
13 |
14 |
15 | >
16 | );
17 | }
18 |
19 | export default App;
20 |
--------------------------------------------------------------------------------
/src/assets/about-illustration.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
--------------------------------------------------------------------------------
/src/assets/arrow-btn-icon.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/src/assets/contact-illustration.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
--------------------------------------------------------------------------------
/src/assets/contact-page.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
--------------------------------------------------------------------------------
/src/assets/download-btn-icon.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/src/assets/facebook-icon.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
--------------------------------------------------------------------------------
/src/assets/hero-illustration.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
--------------------------------------------------------------------------------
/src/assets/home-page.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 |
54 |
55 |
56 |
57 |
58 |
59 |
60 |
61 |
62 |
63 |
64 |
65 |
66 |
67 |
68 |
69 |
70 |
71 |
72 |
73 |
74 |
75 |
76 |
77 |
78 |
79 |
80 |
81 |
82 |
83 |
84 |
85 |
86 |
87 |
88 |
89 |
90 |
91 |
92 |
93 |
94 |
95 |
96 |
97 |
98 |
99 |
100 |
101 |
102 |
103 |
104 |
105 |
106 |
107 |
108 |
109 |
110 |
111 |
112 |
113 |
114 |
115 |
116 |
117 |
118 |
119 |
120 |
121 |
122 |
123 |
124 |
125 |
126 |
127 |
128 |
129 |
130 |
131 |
132 |
133 |
134 |
135 |
136 |
137 |
138 |
139 |
140 |
141 |
142 |
143 |
144 |
145 |
146 |
147 |
148 |
149 |
150 |
151 |
152 |
153 |
154 |
155 |
156 |
157 |
158 |
159 |
160 |
161 |
162 |
163 |
164 |
165 |
166 |
167 |
168 |
169 |
170 |
171 |
172 |
173 |
174 |
175 |
176 |
177 |
178 |
179 |
180 |
181 |
182 |
183 |
184 |
185 |
186 |
187 |
188 |
--------------------------------------------------------------------------------
/src/assets/instagram-icon.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/src/assets/twitter-icon.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
--------------------------------------------------------------------------------
/src/assets/web-project-one.jpeg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ionandrei44/portfolio-typescript/2aa5c18c83d1c725a39c5c34824b11261e0f9886/src/assets/web-project-one.jpeg
--------------------------------------------------------------------------------
/src/assets/web-project-three.jpeg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ionandrei44/portfolio-typescript/2aa5c18c83d1c725a39c5c34824b11261e0f9886/src/assets/web-project-three.jpeg
--------------------------------------------------------------------------------
/src/assets/web-project-two.jpeg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ionandrei44/portfolio-typescript/2aa5c18c83d1c725a39c5c34824b11261e0f9886/src/assets/web-project-two.jpeg
--------------------------------------------------------------------------------
/src/assets/youtube-icon.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/src/components/Button.tsx:
--------------------------------------------------------------------------------
1 | // react
2 | import { FC, ReactNode } from "react";
3 |
4 | interface ButtonProps {
5 | children: ReactNode;
6 | secondary?: boolean;
7 | icon?: string;
8 | onClick?: () => void;
9 | }
10 |
11 | const Button: FC = ({ children, secondary, icon, onClick }) => {
12 | return (
13 |
19 | {icon ? (
20 |
21 |
22 | {children}
23 |
24 |
25 |
26 | ) : (
27 | {children}
28 | )}
29 |
30 | );
31 | };
32 |
33 | export default Button;
34 |
--------------------------------------------------------------------------------
/src/components/Card.tsx:
--------------------------------------------------------------------------------
1 | // react
2 | import { FC } from "react";
3 |
4 | interface CardProps {
5 | imgSrc: string;
6 | title: string;
7 | }
8 |
9 | const Card: FC = ({ imgSrc, title }) => {
10 | return (
11 |
16 |
21 |
22 |
26 | {title}
27 |
28 |
29 | );
30 | };
31 |
32 | export default Card;
33 |
--------------------------------------------------------------------------------
/src/components/LabelInput.tsx:
--------------------------------------------------------------------------------
1 | // react
2 | import { FC } from "react";
3 |
4 | interface LabelInputProps {
5 | labelText: string;
6 | placeholderText: string;
7 | textarea?: boolean;
8 | }
9 |
10 | const LabelInput: FC = ({
11 | labelText,
12 | placeholderText,
13 | textarea,
14 | }) => {
15 | return (
16 |
17 |
21 | {labelText}
22 |
23 |
24 | {textarea ? (
25 |
32 | ) : (
33 |
41 | )}
42 |
43 | );
44 | };
45 |
46 | export default LabelInput;
47 |
--------------------------------------------------------------------------------
/src/components/Menu.tsx:
--------------------------------------------------------------------------------
1 | // mui
2 | import { IconButton, Tooltip } from "@mui/material";
3 |
4 | // mui - icons
5 | import HomeIcon from "@mui/icons-material/Home";
6 | import PersonIcon from "@mui/icons-material/Person";
7 | import AppsIcon from "@mui/icons-material/Apps";
8 | import MailIcon from "@mui/icons-material/Mail";
9 |
10 | // react-scroll
11 | import { Link } from "react-scroll";
12 |
13 | const Menu = () => {
14 | return (
15 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 | );
52 | };
53 |
54 | export default Menu;
55 |
--------------------------------------------------------------------------------
/src/components/Reveal.tsx:
--------------------------------------------------------------------------------
1 | // framer-motion
2 | import { motion } from "framer-motion";
3 |
4 | // utils
5 | import { transition } from "../utils/transition";
6 |
7 | // react
8 | import { FC, ReactNode } from "react";
9 | import { reveal } from "../utils/variants";
10 |
11 | interface RevealProps {
12 | children: ReactNode;
13 | }
14 |
15 | const Reveal: FC = ({ children }) => {
16 | return (
17 |
18 |
32 | {children}
33 |
34 |
42 |
43 | );
44 | };
45 |
46 | export default Reveal;
47 |
--------------------------------------------------------------------------------
/src/components/SocialMediaIcon.tsx:
--------------------------------------------------------------------------------
1 | // mui
2 | import { Tooltip } from "@mui/material";
3 |
4 | // react
5 | import { FC } from "react";
6 |
7 | interface SocialMediaIconProps {
8 | imgSrc: string;
9 | title: string;
10 | }
11 |
12 | const SocialMediaIcon: FC = ({ imgSrc, title }) => {
13 | return (
14 |
15 |
19 |
20 |
21 |
22 | );
23 | };
24 |
25 | export default SocialMediaIcon;
26 |
--------------------------------------------------------------------------------
/src/components/index.ts:
--------------------------------------------------------------------------------
1 | import Button from "./Button";
2 | import Menu from "./Menu";
3 | import SocialMediaIcon from "./SocialMediaIcon";
4 | import Card from "./Card";
5 | import LabelInput from "./LabelInput";
6 | import Reveal from "./Reveal";
7 |
8 | export { Button, Menu, SocialMediaIcon, Card, LabelInput, Reveal };
9 |
--------------------------------------------------------------------------------
/src/data.ts:
--------------------------------------------------------------------------------
1 | import uiUxOne from "./assets/ui-ux-project-one.svg";
2 | import uiUxTwo from "./assets/ui-ux-project-two.svg";
3 | import uiUxThree from "./assets/ui-ux-project-three.svg";
4 | import webOne from "./assets/web-project-one.jpeg";
5 | import webTwo from "./assets/web-project-two.jpeg";
6 | import webThree from "./assets/web-project-three.jpeg";
7 |
8 | interface Project {
9 | id: number;
10 | category: string;
11 | img: string;
12 | title: string;
13 | }
14 |
15 | export const projects: Project[] = [
16 | {
17 | id: 0,
18 | category: "uiUx",
19 | img: uiUxOne,
20 | title: "UI/UX Web Template",
21 | },
22 | {
23 | id: 1,
24 | category: "uiUx",
25 | img: uiUxTwo,
26 | title: "UI/UX Tablet Template",
27 | },
28 | {
29 | id: 2,
30 | category: "uiUx",
31 | img: uiUxThree,
32 | title: "Solar System App Design",
33 | },
34 | {
35 | id: 3,
36 | category: "web",
37 | img: webOne,
38 | title: "Interior Design Website",
39 | },
40 | {
41 | id: 4,
42 | category: "web",
43 | img: webTwo,
44 | title: "Agency Landing Page",
45 | },
46 | {
47 | id: 5,
48 | category: "web",
49 | img: webThree,
50 | title: "Crypto Landing Page",
51 | },
52 | ];
53 |
--------------------------------------------------------------------------------
/src/index.css:
--------------------------------------------------------------------------------
1 | @import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;700&display=swap");
2 |
3 | @tailwind base;
4 | @tailwind components;
5 | @tailwind utilities;
6 |
7 | * {
8 | margin: 0;
9 | padding: 0;
10 | box-sizing: border-box;
11 | font-family: "Poppins", sans-serif;
12 | }
13 |
--------------------------------------------------------------------------------
/src/index.tsx:
--------------------------------------------------------------------------------
1 | import React from "react";
2 | import ReactDOM from "react-dom/client";
3 | import "./index.css";
4 | import App from "./App";
5 |
6 | const root = ReactDOM.createRoot(
7 | document.getElementById("root") as HTMLElement
8 | );
9 | root.render( );
10 |
--------------------------------------------------------------------------------
/src/react-app-env.d.ts:
--------------------------------------------------------------------------------
1 | ///
2 |
--------------------------------------------------------------------------------
/src/utils/transition.ts:
--------------------------------------------------------------------------------
1 | export const transition = () => {
2 | return {
3 | duration: 0.75,
4 | delay: 0.2,
5 | ease: "easeIn",
6 | };
7 | };
8 |
--------------------------------------------------------------------------------
/src/utils/variants.ts:
--------------------------------------------------------------------------------
1 | export const fadeIn = (direction: "up" | "down") => {
2 | return {
3 | hidden: {
4 | opacity: 0,
5 | y: direction === "down" ? -85 : 85,
6 | },
7 | visible: { opacity: 1, y: 0 },
8 | };
9 | };
10 |
11 | export const reveal = () => {
12 | return {
13 | hidden: {
14 | left: 0,
15 | },
16 | visible: { left: "100%" },
17 | };
18 | };
19 |
20 | export const scale = () => {
21 | return {
22 | hidden: {
23 | scale: 0,
24 | opacity: 0,
25 | },
26 | visible: { scale: 1, opacity: 1 },
27 | };
28 | };
29 |
--------------------------------------------------------------------------------
/src/views/About.tsx:
--------------------------------------------------------------------------------
1 | // assets
2 | import aboutPageImg from "../assets/about-me-page.svg";
3 | import aboutIllustration from "../assets/about-illustration.svg";
4 | import facebookIcon from "../assets/facebook-icon.svg";
5 | import instagramIcon from "../assets/instagram-icon.svg";
6 | import twitterIcon from "../assets/twitter-icon.svg";
7 | import youtubeIcon from "../assets/youtube-icon.svg";
8 |
9 | // components
10 | import { SocialMediaIcon, Reveal } from "../components";
11 |
12 | // framer-motion
13 | import { motion } from "framer-motion";
14 |
15 | // utils
16 | import { fadeIn, scale } from "../utils/variants";
17 | import { transition } from "../utils/transition";
18 |
19 | const About = () => {
20 | return (
21 |
31 |
35 |
36 |
37 |
41 | About me
42 |
43 |
44 |
45 |
46 |
47 | Lorem ipsum dolor sit amet consectetur adipisicing elit.
48 | Reiciendis incidunt quis praesentium voluptates et cupiditate
49 | minus rem. Voluptatibus ullam beatae expedita voluptatum error,
50 | voluptate deserunt impedit similique fuga recusandae sit.
51 |
52 |
53 |
54 |
62 |
63 |
64 |
65 |
66 |
67 |
68 |
69 |
70 |
80 |
81 |
82 |
83 |
84 |
85 | );
86 | };
87 |
88 | export default About;
89 |
--------------------------------------------------------------------------------
/src/views/Contact.tsx:
--------------------------------------------------------------------------------
1 | // assets
2 | import contactPageImg from "../assets/contact-page.svg";
3 | import contactIllustration from "../assets/contact-illustration.svg";
4 |
5 | // components
6 | import { Button, LabelInput, Reveal } from "../components";
7 |
8 | // framer-motion
9 | import { motion } from "framer-motion";
10 |
11 | // utils
12 | import { fadeIn, scale } from "../utils/variants";
13 | import { transition } from "../utils/transition";
14 |
15 | const Contact = () => {
16 | return (
17 |
80 | );
81 | };
82 |
83 | export default Contact;
84 |
--------------------------------------------------------------------------------
/src/views/Hero.tsx:
--------------------------------------------------------------------------------
1 | // assets
2 | import homePageImg from "../assets/home-page.svg";
3 | import homePageIllustation from "../assets/hero-illustration.svg";
4 | import downloadIcon from "../assets/download-btn-icon.svg";
5 |
6 | // components
7 | import { Button } from "../components";
8 |
9 | // react-simple-typewriter
10 | import { Typewriter } from "react-simple-typewriter";
11 |
12 | // framer-motion
13 | import { motion } from "framer-motion";
14 |
15 | // utils
16 | import { transition } from "../utils/transition";
17 | import { fadeIn, scale } from "../utils/variants";
18 |
19 | const Hero = () => {
20 | return (
21 |
31 |
35 |
36 |
45 | Creative
46 |
47 |
48 |
56 |
57 |
58 |
66 | Hire me
67 | Download CV
68 |
69 |
70 |
71 |
81 |
82 |
83 |
84 |
85 | );
86 | };
87 |
88 | export default Hero;
89 |
--------------------------------------------------------------------------------
/src/views/Projects.tsx:
--------------------------------------------------------------------------------
1 | // react
2 | import { useState } from "react";
3 |
4 | // assets
5 | import projectsPageImg from "../assets/projects-page.svg";
6 |
7 | // components
8 | import { Button, Card, Reveal } from "../components";
9 |
10 | // data
11 | import { projects } from "../data";
12 |
13 | // framer-motion
14 | import { motion } from "framer-motion";
15 |
16 | // utils
17 | import { fadeIn } from "../utils/variants";
18 | import { transition } from "../utils/transition";
19 |
20 | type Category = "uiUx" | "web";
21 |
22 | const Projects = () => {
23 | const [activeCategory, setActiveCategory] = useState("uiUx");
24 |
25 | const filteredProjects = () => {
26 | if (activeCategory === "uiUx") {
27 | return projects.filter((item) => item.category === "uiUx");
28 | } else {
29 | return projects.filter((item) => item.category === "web");
30 | }
31 | };
32 |
33 | return (
34 |
44 |
45 |
46 |
47 |
51 | My recent projects
52 |
53 |
54 |
55 |
63 | setActiveCategory("uiUx")}
66 | >
67 | UI/UX
68 |
69 | setActiveCategory("web")}
72 | >
73 | Web design
74 |
75 |
76 |
77 |
85 | {filteredProjects().map((item) => (
86 |
87 | ))}
88 |
89 |
90 |
91 |
92 | );
93 | };
94 |
95 | export default Projects;
96 |
--------------------------------------------------------------------------------
/src/views/index.ts:
--------------------------------------------------------------------------------
1 | import Hero from "./Hero";
2 | import About from "./About";
3 | import Projects from "./Projects";
4 | import Contact from "./Contact";
5 |
6 | export { Hero, About, Projects, Contact };
7 |
--------------------------------------------------------------------------------
/tailwind.config.js:
--------------------------------------------------------------------------------
1 | /** @type {import('tailwindcss').Config} */
2 | module.exports = {
3 | content: ["./src/**/*.{js,jsx,ts,tsx}"],
4 | theme: {
5 | extend: {
6 | colors: {
7 | primary: "#222831",
8 | secondary: "#00ADB5",
9 | textPrimary: "#EEE",
10 | textSecondary: "rgba(238, 238, 238, 0.75)",
11 | accent: "rgba(57, 62, 70, 0.75)",
12 | hoverSecondary: "#027378",
13 | hoverPrimary: "#292d33",
14 | divider: "rgba(238, 238, 238, 0.10)",
15 | icons: "#393E46",
16 | overlay: "rgba(0, 0, 0, 0.25)",
17 | },
18 | screens: {
19 | xs: "420px",
20 | xl: "1170px",
21 | },
22 | },
23 | },
24 | plugins: [],
25 | };
26 |
--------------------------------------------------------------------------------
/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | "target": "es5",
4 | "lib": ["dom", "dom.iterable", "esnext"],
5 | "allowJs": true,
6 | "skipLibCheck": true,
7 | "esModuleInterop": true,
8 | "allowSyntheticDefaultImports": true,
9 | "strict": true,
10 | "forceConsistentCasingInFileNames": true,
11 | "noFallthroughCasesInSwitch": true,
12 | "module": "esnext",
13 | "moduleResolution": "node",
14 | "resolveJsonModule": true,
15 | "isolatedModules": true,
16 | "noEmit": true,
17 | "jsx": "react-jsx"
18 | },
19 | "include": ["src"]
20 | }
21 |
--------------------------------------------------------------------------------