sanidhyy /3d-portfolio

Modern 3D Portfolio using React, Three.js and Typescript

★ 301⑂ 74👁 2⑃ 634● 1▤ 0
TypeScriptMITCreated 2023-03-08shubam.netlify.app
+0
Daily
+1
Weekly
301
stars
74
forks
2
watchers
634
prs
1
issues
0
releases

README

Modern 3D Portfolio using React, Three.js and Typescript

!Modern 3D Portfolio using React, Three.js and Typescript















 :notebook_with_decorative_cover: Table of Contents



- Folder Structure
- Getting Started
- Screenshots
- Tech Stack
- Stats
- Contribute
- Acknowledgements
- Buy Me a Coffee
- Follow Me
- Learn More
- Deploy on Netlify
- Give A Star
- Star History
- Give A Star



 :bangbang: Folder Structure

Here is the folder structure of this app.


bash
3d-portfolio/
  |- netlify/
    |-- functions/
  |- public/
  |- src/
    |-- assets/
    |-- components/
      |--- canvas/
      |--- about.tsx
      |--- banner.tsx
      |--- contact.tsx
      |--- experience.tsx
      |--- feedbacks.tsx
      |--- footer.tsx
      |--- hero.tsx
      |--- index.ts
      |--- loader.tsx
      |--- navbar.tsx
      |--- tech.tsx
      |--- works.tsx
    |-- constants/
      |--- index.ts
    |-- hoc/
      |--- index.ts
      |--- section-wrapper.tsx
    |-- hooks/
      |--- use-in-view.ts
      |--- use-limited-webgl.ts
    |-- lib/
      |--- contact.ts
    |-- utils/
      |--- lib.ts
      |--- motion.ts
    |-- app.tsx
    |-- env.d.ts
    |-- index.css
    |-- main.tsx
    |-- styles.ts
  |- .env.example
  |- .env/.env.local
  |- .gitignore
  |- index.html
  |- netlify.toml
  |- package.json
  |- pnpm-lock.yaml
  |- pnpm-workspace.yaml
  |- tsconfig.json
  |- vite.config.ts





 :toolbox: Getting Started

1. Make sure Git and NodeJS is installed.
2. Clone this repository to your local computer.
3. Create .env file in root directory.
4. Contents of .env:

env
 resend
RESEND_API_KEY="re_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
RESEND_FROM_EMAIL="Your Name "
CONTACT_TO_EMAIL="[email protected]"
CONTACT_SITE_URL="https://example.com"
RESEND_TEMPLATE_CONTACT_USER="contact-thank-you"
RESEND_TEMPLATE_CONTACT_ADMIN="contact-admin"

 google recaptcha v3
VITE_RECAPTCHA_SITE_KEY="XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
RECAPTCHA_SECRET_KEY="XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
RECAPTCHA_MIN_SCORE="0.5"


5. Create an account at Resend and add + verify a sending domain.

6. Create an API key at Resend API Keys with Sending access. Copy it to RESEND_API_KEY.

7. Set RESEND_FROM_EMAIL to an address on that verified domain. Set CONTACT_TO_EMAIL to the inbox that should receive new contact notifications. Set CONTACT_SITE_URL to your site's public URL (no trailing slash).

8. In Resend Templates, create two templates and Publish each.

   Template 1 — thank you to the user
   - Name: contact-thank-you
   - Variables: USER_NAME, USER_MESSAGE, SITE_URL

   Template 2 — new message to admin
   - Name: contact-admin
   - Variables: USER_NAME, USER_EMAIL, USER_MESSAGE, SITE_URL

   Copy each template's alias into RESEND_TEMPLATE_CONTACT_USER and RESEND_TEMPLATE_CONTACT_ADMIN.

9. Create a Google reCAPTCHA v3 project. Choose Score based (v3), add your production domain(s) and localhost, then copy the Site key to VITE_RECAPTCHA_SITE_KEY and the Secret key

Discussions

Snapshot: 2026-11-27T22:26:53Z · Data license Apache-2.0 · JSON