├── public ├── _redirects ├── robots.txt ├── favicon.png ├── logo192.png ├── logo512.png ├── manifest.json └── index.html ├── src ├── library │ ├── .gitignore │ ├── waves │ │ ├── index.js │ │ ├── WavyContainer.tsx │ │ ├── index.d.ts │ │ ├── styles.css │ │ ├── options.ts │ │ ├── WavyLink.tsx │ │ └── WavyWaves.tsx │ ├── package.json │ └── README.md ├── react-app-env.d.ts ├── routes │ ├── About.tsx │ ├── Home.tsx │ └── Contact.tsx ├── layout │ ├── Main.tsx │ └── Nav.tsx ├── index.tsx ├── index.css └── App.tsx ├── .gitignore ├── tsconfig.json ├── package.json └── README.md /public/_redirects: -------------------------------------------------------------------------------- 1 | /* /index.html 200 -------------------------------------------------------------------------------- /src/library/.gitignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | dist -------------------------------------------------------------------------------- /src/react-app-env.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | -------------------------------------------------------------------------------- /src/routes/About.tsx: -------------------------------------------------------------------------------- 1 | const Wrapper = () => <>About; 2 | 3 | export default Wrapper; 4 | -------------------------------------------------------------------------------- /src/routes/Home.tsx: -------------------------------------------------------------------------------- 1 | const Wrapper = () => <>Home; 2 | 3 | export default Wrapper; 4 | -------------------------------------------------------------------------------- /public/robots.txt: -------------------------------------------------------------------------------- 1 | # https://www.robotstxt.org/robotstxt.html 2 | User-agent: * 3 | Disallow: 4 | -------------------------------------------------------------------------------- /src/routes/Contact.tsx: -------------------------------------------------------------------------------- 1 | const Wrapper = () => <>Contact; 2 | 3 | export default Wrapper; 4 | -------------------------------------------------------------------------------- /public/favicon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frontend-joe/react-wavy-transitions/HEAD/public/favicon.png -------------------------------------------------------------------------------- /public/logo192.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frontend-joe/react-wavy-transitions/HEAD/public/logo192.png -------------------------------------------------------------------------------- /public/logo512.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frontend-joe/react-wavy-transitions/HEAD/public/logo512.png -------------------------------------------------------------------------------- /src/library/waves/index.js: -------------------------------------------------------------------------------- 1 | export { WavyContainer } from "./WavyContainer"; 2 | export { WavyLink } from "./WavyLink"; 3 | -------------------------------------------------------------------------------- /src/library/waves/WavyContainer.tsx: -------------------------------------------------------------------------------- 1 | export const WavyContainer = () => ( 2 |
3 | ); 4 | -------------------------------------------------------------------------------- /src/layout/Main.tsx: -------------------------------------------------------------------------------- 1 | import { Outlet } from "react-router-dom"; 2 | 3 | export const Main = () => ( 4 |
5 | 6 |
7 | ); 8 | -------------------------------------------------------------------------------- /src/library/waves/index.d.ts: -------------------------------------------------------------------------------- 1 | export { WavyContainer } from "./WavyContainer"; 2 | export { WavyLink } from "./WavyLink"; 3 | export { WavyLinkProps } from "./WavyLink"; 4 | -------------------------------------------------------------------------------- /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 | 11 | 12 | 13 | ); 14 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # See https://help.github.com/articles/ignoring-files/ for more about ignoring files. 2 | 3 | # dependencies 4 | /node_modules 5 | /.pnp 6 | .pnp.js 7 | 8 | # testing 9 | /coverage 10 | 11 | # production 12 | /build 13 | 14 | # misc 15 | .DS_Store 16 | .env.local 17 | .env.development.local 18 | .env.test.local 19 | .env.production.local 20 | 21 | npm-debug.log* 22 | yarn-debug.log* 23 | yarn-error.log* 24 | -------------------------------------------------------------------------------- /src/layout/Nav.tsx: -------------------------------------------------------------------------------- 1 | import { WavyLink } from "../library/waves"; 2 | 3 | export const Nav = () => ( 4 | 17 | ); 18 | -------------------------------------------------------------------------------- /public/manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "short_name": "react-wavy-transitions", 3 | "name": "react-wavy-transitions", 4 | "icons": [ 5 | { 6 | "src": "favicon.png", 7 | "sizes": "64x64 32x32 24x24 16x16", 8 | "type": "image/x-icon" 9 | }, 10 | { 11 | "src": "favicon.png", 12 | "type": "image/png", 13 | "sizes": "192x192" 14 | }, 15 | { 16 | "src": "favicon.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 | -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "target": "es5", 4 | "lib": [ 5 | "dom", 6 | "dom.iterable", 7 | "esnext" 8 | ], 9 | "allowJs": true, 10 | "skipLibCheck": true, 11 | "esModuleInterop": true, 12 | "allowSyntheticDefaultImports": true, 13 | "strict": true, 14 | "forceConsistentCasingInFileNames": true, 15 | "noFallthroughCasesInSwitch": true, 16 | "module": "esnext", 17 | "moduleResolution": "node", 18 | "resolveJsonModule": true, 19 | "isolatedModules": true, 20 | "noEmit": true, 21 | "jsx": "react-jsx" 22 | }, 23 | "include": [ 24 | "src" 25 | ] 26 | } 27 | -------------------------------------------------------------------------------- /src/index.css: -------------------------------------------------------------------------------- 1 | body { 2 | margin: 0; 3 | font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", 4 | "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", 5 | sans-serif; 6 | -webkit-font-smoothing: antialiased; 7 | -moz-osx-font-smoothing: grayscale; 8 | } 9 | 10 | nav { 11 | position: fixed; 12 | z-index: 99999; 13 | top: 0; 14 | left: 0; 15 | width: 120px; 16 | height: 100%; 17 | background: #1d1e22; 18 | color: #f9f9f9; 19 | display: flex; 20 | flex-direction: column; 21 | align-items: flex-start; 22 | gap: 10px; 23 | padding: 20px; 24 | margin: 0; 25 | box-sizing: border-box; 26 | } 27 | 28 | main { 29 | margin-left: 120px; 30 | padding: 20px; 31 | } 32 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "react-wavy-transitions", 3 | "version": "0.1.0", 4 | "private": true, 5 | "dependencies": { 6 | "@types/node": "^16.11.64", 7 | "@types/react": "^18.0.21", 8 | "@types/react-dom": "^18.0.6", 9 | "apexcharts": "^3.35.5", 10 | "react": "^18.2.0", 11 | "react-apexcharts": "^1.4.0", 12 | "react-dom": "^18.2.0", 13 | "react-router-dom": "^6.4.2", 14 | "react-scripts": "5.0.1", 15 | "typescript": "^4.8.4" 16 | }, 17 | "scripts": { 18 | "start": "react-scripts start", 19 | "build": "react-scripts build" 20 | }, 21 | "eslintConfig": { 22 | "extends": [ 23 | "react-app" 24 | ] 25 | }, 26 | "browserslist": { 27 | "production": [ 28 | ">0.2%", 29 | "not dead", 30 | "not op_mini all" 31 | ], 32 | "development": [ 33 | "last 1 chrome version", 34 | "last 1 firefox version", 35 | "last 1 safari version" 36 | ] 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /src/App.tsx: -------------------------------------------------------------------------------- 1 | import { Suspense } from "react"; 2 | import { BrowserRouter, Routes, Route } from "react-router-dom"; 3 | 4 | import About from "./routes/About"; 5 | import Home from "./routes/Home"; 6 | import Contact from "./routes/Contact"; 7 | 8 | import { Nav } from "./layout/Nav"; 9 | import { Main } from "./layout/Main"; 10 | 11 | import { WavyContainer } from "./library/waves"; 12 | 13 | function App() { 14 | return ( 15 | 16 | 17 | 18 | 22 |