feat: initial repository setup with Next.js, Tailwind CSS, ShadCN UI, and Gitea CI/CD
- Initialize Next.js 15.5.4 with TypeScript and App Router - Configure Tailwind CSS v4 with ShadCN UI component library - Set up OpenNext for Cloudflare Workers deployment - Add Gitea Actions workflows for CI/CD (lint, build, deploy) - Create issue templates (bug, feature, question) and PR template - Add comprehensive CONTRIBUTING.md and README.md documentation - Configure build scripts and deployment configuration
This commit is contained in:
parent
03aaf69b46
commit
54909d79e5
37
.gitea/issue_template/bug_report.md
Normal file
37
.gitea/issue_template/bug_report.md
Normal file
@ -0,0 +1,37 @@
|
|||||||
|
---
|
||||||
|
name: Bug Report
|
||||||
|
about: Report a bug or issue with the website
|
||||||
|
title: '[BUG] '
|
||||||
|
labels: 'bug'
|
||||||
|
---
|
||||||
|
|
||||||
|
## Bug Description
|
||||||
|
<!-- A clear and concise description of what the bug is -->
|
||||||
|
|
||||||
|
## Steps to Reproduce
|
||||||
|
1. Go to '...'
|
||||||
|
2. Click on '....'
|
||||||
|
3. Scroll down to '....'
|
||||||
|
4. See error
|
||||||
|
|
||||||
|
## Expected Behavior
|
||||||
|
<!-- A clear and concise description of what you expected to happen -->
|
||||||
|
|
||||||
|
## Actual Behavior
|
||||||
|
<!-- A clear and concise description of what actually happened -->
|
||||||
|
|
||||||
|
## Screenshots
|
||||||
|
<!-- If applicable, add screenshots to help explain your problem -->
|
||||||
|
|
||||||
|
## Environment
|
||||||
|
- Browser: [e.g., Chrome 120, Firefox 121]
|
||||||
|
- Device: [e.g., Desktop, iPhone 13]
|
||||||
|
- OS: [e.g., Windows 11, macOS 14, iOS 17]
|
||||||
|
- Screen Size: [e.g., 1920x1080]
|
||||||
|
|
||||||
|
## Additional Context
|
||||||
|
<!-- Add any other context about the problem here -->
|
||||||
|
|
||||||
|
## Possible Solution
|
||||||
|
<!-- Optional: Suggest a fix or reason for the bug -->
|
||||||
|
|
||||||
38
.gitea/issue_template/feature_request.md
Normal file
38
.gitea/issue_template/feature_request.md
Normal file
@ -0,0 +1,38 @@
|
|||||||
|
---
|
||||||
|
name: Feature Request
|
||||||
|
about: Suggest a new feature or enhancement
|
||||||
|
title: '[FEATURE] '
|
||||||
|
labels: 'enhancement'
|
||||||
|
---
|
||||||
|
|
||||||
|
## Feature Description
|
||||||
|
<!-- A clear and concise description of the feature you'd like to see -->
|
||||||
|
|
||||||
|
## Problem Statement
|
||||||
|
<!-- Describe the problem this feature would solve. Ex. I'm always frustrated when [...] -->
|
||||||
|
|
||||||
|
## Proposed Solution
|
||||||
|
<!-- Describe how you envision this feature working -->
|
||||||
|
|
||||||
|
## Alternative Solutions
|
||||||
|
<!-- Describe any alternative solutions or features you've considered -->
|
||||||
|
|
||||||
|
## Use Cases
|
||||||
|
<!-- Describe specific use cases for this feature -->
|
||||||
|
|
||||||
|
## Design Considerations
|
||||||
|
<!-- If applicable, describe any design or UX considerations -->
|
||||||
|
|
||||||
|
## Technical Considerations
|
||||||
|
<!-- If applicable, describe any technical implementation details -->
|
||||||
|
|
||||||
|
## Priority
|
||||||
|
<!-- How important is this feature to you? -->
|
||||||
|
- [ ] Critical
|
||||||
|
- [ ] High
|
||||||
|
- [ ] Medium
|
||||||
|
- [ ] Low
|
||||||
|
|
||||||
|
## Additional Context
|
||||||
|
<!-- Add any other context, mockups, or examples about the feature request here -->
|
||||||
|
|
||||||
19
.gitea/issue_template/question.md
Normal file
19
.gitea/issue_template/question.md
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
---
|
||||||
|
name: Question
|
||||||
|
about: Ask a question about the project
|
||||||
|
title: '[QUESTION] '
|
||||||
|
labels: 'question'
|
||||||
|
---
|
||||||
|
|
||||||
|
## Question
|
||||||
|
<!-- Ask your question clearly and concisely -->
|
||||||
|
|
||||||
|
## Context
|
||||||
|
<!-- Provide any relevant context that might help answer your question -->
|
||||||
|
|
||||||
|
## What I've Already Tried
|
||||||
|
<!-- Describe what you've already attempted or researched -->
|
||||||
|
|
||||||
|
## Additional Information
|
||||||
|
<!-- Add any other information that might be helpful -->
|
||||||
|
|
||||||
53
.gitea/pull_request_template.md
Normal file
53
.gitea/pull_request_template.md
Normal file
@ -0,0 +1,53 @@
|
|||||||
|
## Description
|
||||||
|
<!-- Provide a clear and concise description of your changes -->
|
||||||
|
|
||||||
|
## Type of Change
|
||||||
|
<!-- Mark the relevant option with an 'x' -->
|
||||||
|
- [ ] Bug fix (non-breaking change which fixes an issue)
|
||||||
|
- [ ] New feature (non-breaking change which adds functionality)
|
||||||
|
- [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
|
||||||
|
- [ ] Documentation update
|
||||||
|
- [ ] Code refactoring
|
||||||
|
- [ ] Performance improvement
|
||||||
|
- [ ] Style/UI update
|
||||||
|
|
||||||
|
## Related Issues
|
||||||
|
<!-- Link to any related issues. Use "Fixes #123" or "Closes #123" to auto-close issues -->
|
||||||
|
Fixes #
|
||||||
|
|
||||||
|
## Changes Made
|
||||||
|
<!-- List the specific changes you made -->
|
||||||
|
-
|
||||||
|
-
|
||||||
|
-
|
||||||
|
|
||||||
|
## Screenshots
|
||||||
|
<!-- If applicable, add screenshots to demonstrate your changes -->
|
||||||
|
|
||||||
|
## Testing
|
||||||
|
<!-- Describe the tests you ran and how to reproduce them -->
|
||||||
|
- [ ] I have tested this locally
|
||||||
|
- [ ] I have added tests that prove my fix is effective or that my feature works
|
||||||
|
- [ ] All existing tests pass
|
||||||
|
|
||||||
|
### How to Test
|
||||||
|
1.
|
||||||
|
2.
|
||||||
|
3.
|
||||||
|
|
||||||
|
## Checklist
|
||||||
|
<!-- Mark completed items with an 'x' -->
|
||||||
|
- [ ] My code follows the project's code style
|
||||||
|
- [ ] I have performed a self-review of my code
|
||||||
|
- [ ] I have commented my code, particularly in hard-to-understand areas
|
||||||
|
- [ ] I have made corresponding changes to the documentation
|
||||||
|
- [ ] My changes generate no new warnings or errors
|
||||||
|
- [ ] I have checked for any breaking changes
|
||||||
|
- [ ] I have updated the README if necessary
|
||||||
|
|
||||||
|
## Additional Notes
|
||||||
|
<!-- Add any additional notes, concerns, or context for reviewers -->
|
||||||
|
|
||||||
|
## Deployment Notes
|
||||||
|
<!-- Note any deployment considerations, environment variables, or configuration changes needed -->
|
||||||
|
|
||||||
66
.gitea/workflows/ci.yml
Normal file
66
.gitea/workflows/ci.yml
Normal file
@ -0,0 +1,66 @@
|
|||||||
|
name: CI
|
||||||
|
|
||||||
|
on:
|
||||||
|
pull_request:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
- develop
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
- develop
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
lint-and-typecheck:
|
||||||
|
name: Lint and Type Check
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout code
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Setup Node.js
|
||||||
|
uses: actions/setup-node@v4
|
||||||
|
with:
|
||||||
|
node-version: '20'
|
||||||
|
cache: 'npm'
|
||||||
|
|
||||||
|
- name: Install dependencies
|
||||||
|
run: npm ci
|
||||||
|
|
||||||
|
- name: Run ESLint
|
||||||
|
run: npm run lint
|
||||||
|
|
||||||
|
- name: Run TypeScript type check
|
||||||
|
run: npm run type-check
|
||||||
|
|
||||||
|
build:
|
||||||
|
name: Build Application
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
needs: lint-and-typecheck
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout code
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Setup Node.js
|
||||||
|
uses: actions/setup-node@v4
|
||||||
|
with:
|
||||||
|
node-version: '20'
|
||||||
|
cache: 'npm'
|
||||||
|
|
||||||
|
- name: Install dependencies
|
||||||
|
run: npm ci
|
||||||
|
|
||||||
|
- name: Build Next.js application
|
||||||
|
run: npm run build
|
||||||
|
env:
|
||||||
|
NODE_ENV: production
|
||||||
|
|
||||||
|
- name: Upload build artifacts
|
||||||
|
uses: actions/upload-artifact@v4
|
||||||
|
with:
|
||||||
|
name: build-output
|
||||||
|
path: .next
|
||||||
|
retention-days: 7
|
||||||
|
|
||||||
52
.gitea/workflows/deploy-preview.yml
Normal file
52
.gitea/workflows/deploy-preview.yml
Normal file
@ -0,0 +1,52 @@
|
|||||||
|
name: Deploy Preview
|
||||||
|
|
||||||
|
on:
|
||||||
|
pull_request:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
types:
|
||||||
|
- opened
|
||||||
|
- synchronize
|
||||||
|
- reopened
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
deploy-preview:
|
||||||
|
name: Deploy Preview to Cloudflare
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout code
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Setup Node.js
|
||||||
|
uses: actions/setup-node@v4
|
||||||
|
with:
|
||||||
|
node-version: '20'
|
||||||
|
cache: 'npm'
|
||||||
|
|
||||||
|
- name: Install dependencies
|
||||||
|
run: npm ci
|
||||||
|
|
||||||
|
- name: Build with OpenNext
|
||||||
|
run: npm run build:open-next
|
||||||
|
env:
|
||||||
|
NODE_ENV: production
|
||||||
|
|
||||||
|
- name: Deploy to Cloudflare Workers (Preview)
|
||||||
|
run: |
|
||||||
|
npx wrangler deploy --env preview
|
||||||
|
env:
|
||||||
|
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
|
||||||
|
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
|
||||||
|
|
||||||
|
- name: Comment PR with preview URL
|
||||||
|
uses: actions/github-script@v7
|
||||||
|
with:
|
||||||
|
script: |
|
||||||
|
github.rest.issues.createComment({
|
||||||
|
issue_number: context.issue.number,
|
||||||
|
owner: context.repo.owner,
|
||||||
|
repo: context.repo.repo,
|
||||||
|
body: '🚀 Preview deployment ready! View your changes at the preview URL.'
|
||||||
|
})
|
||||||
|
|
||||||
44
.gitea/workflows/deploy-production.yml
Normal file
44
.gitea/workflows/deploy-production.yml
Normal file
@ -0,0 +1,44 @@
|
|||||||
|
name: Deploy Production
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
deploy-production:
|
||||||
|
name: Deploy to Production
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
environment:
|
||||||
|
name: production
|
||||||
|
url: https://biohazardvfx.com
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout code
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Setup Node.js
|
||||||
|
uses: actions/setup-node@v4
|
||||||
|
with:
|
||||||
|
node-version: '20'
|
||||||
|
cache: 'npm'
|
||||||
|
|
||||||
|
- name: Install dependencies
|
||||||
|
run: npm ci
|
||||||
|
|
||||||
|
- name: Build with OpenNext
|
||||||
|
run: npm run build:open-next
|
||||||
|
env:
|
||||||
|
NODE_ENV: production
|
||||||
|
|
||||||
|
- name: Deploy to Cloudflare Workers (Production)
|
||||||
|
run: |
|
||||||
|
npx wrangler deploy --env production
|
||||||
|
env:
|
||||||
|
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
|
||||||
|
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
|
||||||
|
|
||||||
|
- name: Notify deployment success
|
||||||
|
run: |
|
||||||
|
echo "✅ Production deployment completed successfully!"
|
||||||
|
|
||||||
161
.gitignore
vendored
161
.gitignore
vendored
@ -1,132 +1,49 @@
|
|||||||
# ---> Node
|
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
|
||||||
# Logs
|
|
||||||
logs
|
# dependencies
|
||||||
*.log
|
/node_modules
|
||||||
|
/.pnp
|
||||||
|
.pnp.*
|
||||||
|
.yarn/*
|
||||||
|
!.yarn/patches
|
||||||
|
!.yarn/plugins
|
||||||
|
!.yarn/releases
|
||||||
|
!.yarn/versions
|
||||||
|
|
||||||
|
# testing
|
||||||
|
/coverage
|
||||||
|
|
||||||
|
# next.js
|
||||||
|
/.next/
|
||||||
|
/out/
|
||||||
|
|
||||||
|
# production
|
||||||
|
/build
|
||||||
|
|
||||||
|
# misc
|
||||||
|
.DS_Store
|
||||||
|
*.pem
|
||||||
|
|
||||||
|
# debug
|
||||||
npm-debug.log*
|
npm-debug.log*
|
||||||
yarn-debug.log*
|
yarn-debug.log*
|
||||||
yarn-error.log*
|
yarn-error.log*
|
||||||
lerna-debug.log*
|
|
||||||
.pnpm-debug.log*
|
.pnpm-debug.log*
|
||||||
|
|
||||||
# Diagnostic reports (https://nodejs.org/api/report.html)
|
# env files (can opt-in for committing if needed)
|
||||||
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
|
.env*
|
||||||
|
|
||||||
# Runtime data
|
# vercel
|
||||||
pids
|
.vercel
|
||||||
*.pid
|
|
||||||
*.seed
|
|
||||||
*.pid.lock
|
|
||||||
|
|
||||||
# Directory for instrumented libs generated by jscoverage/JSCover
|
# cloudflare
|
||||||
lib-cov
|
.wrangler
|
||||||
|
.dev.vars
|
||||||
|
wrangler.toml.backup
|
||||||
|
|
||||||
# Coverage directory used by tools like istanbul
|
# open-next
|
||||||
coverage
|
.open-next/
|
||||||
*.lcov
|
|
||||||
|
|
||||||
# nyc test coverage
|
# typescript
|
||||||
.nyc_output
|
|
||||||
|
|
||||||
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
|
|
||||||
.grunt
|
|
||||||
|
|
||||||
# Bower dependency directory (https://bower.io/)
|
|
||||||
bower_components
|
|
||||||
|
|
||||||
# node-waf configuration
|
|
||||||
.lock-wscript
|
|
||||||
|
|
||||||
# Compiled binary addons (https://nodejs.org/api/addons.html)
|
|
||||||
build/Release
|
|
||||||
|
|
||||||
# Dependency directories
|
|
||||||
node_modules/
|
|
||||||
jspm_packages/
|
|
||||||
|
|
||||||
# Snowpack dependency directory (https://snowpack.dev/)
|
|
||||||
web_modules/
|
|
||||||
|
|
||||||
# TypeScript cache
|
|
||||||
*.tsbuildinfo
|
*.tsbuildinfo
|
||||||
|
next-env.d.ts
|
||||||
# Optional npm cache directory
|
|
||||||
.npm
|
|
||||||
|
|
||||||
# Optional eslint cache
|
|
||||||
.eslintcache
|
|
||||||
|
|
||||||
# Optional stylelint cache
|
|
||||||
.stylelintcache
|
|
||||||
|
|
||||||
# Microbundle cache
|
|
||||||
.rpt2_cache/
|
|
||||||
.rts2_cache_cjs/
|
|
||||||
.rts2_cache_es/
|
|
||||||
.rts2_cache_umd/
|
|
||||||
|
|
||||||
# Optional REPL history
|
|
||||||
.node_repl_history
|
|
||||||
|
|
||||||
# Output of 'npm pack'
|
|
||||||
*.tgz
|
|
||||||
|
|
||||||
# Yarn Integrity file
|
|
||||||
.yarn-integrity
|
|
||||||
|
|
||||||
# dotenv environment variable files
|
|
||||||
.env
|
|
||||||
.env.development.local
|
|
||||||
.env.test.local
|
|
||||||
.env.production.local
|
|
||||||
.env.local
|
|
||||||
|
|
||||||
# parcel-bundler cache (https://parceljs.org/)
|
|
||||||
.cache
|
|
||||||
.parcel-cache
|
|
||||||
|
|
||||||
# Next.js build output
|
|
||||||
.next
|
|
||||||
out
|
|
||||||
|
|
||||||
# Nuxt.js build / generate output
|
|
||||||
.nuxt
|
|
||||||
dist
|
|
||||||
|
|
||||||
# Gatsby files
|
|
||||||
.cache/
|
|
||||||
# Comment in the public line in if your project uses Gatsby and not Next.js
|
|
||||||
# https://nextjs.org/blog/next-9-1#public-directory-support
|
|
||||||
# public
|
|
||||||
|
|
||||||
# vuepress build output
|
|
||||||
.vuepress/dist
|
|
||||||
|
|
||||||
# vuepress v2.x temp and cache directory
|
|
||||||
.temp
|
|
||||||
.cache
|
|
||||||
|
|
||||||
# Docusaurus cache and generated files
|
|
||||||
.docusaurus
|
|
||||||
|
|
||||||
# Serverless directories
|
|
||||||
.serverless/
|
|
||||||
|
|
||||||
# FuseBox cache
|
|
||||||
.fusebox/
|
|
||||||
|
|
||||||
# DynamoDB Local files
|
|
||||||
.dynamodb/
|
|
||||||
|
|
||||||
# TernJS port file
|
|
||||||
.tern-port
|
|
||||||
|
|
||||||
# Stores VSCode versions used for testing VSCode extensions
|
|
||||||
.vscode-test
|
|
||||||
|
|
||||||
# yarn v2
|
|
||||||
.yarn/cache
|
|
||||||
.yarn/unplugged
|
|
||||||
.yarn/build-state.yml
|
|
||||||
.yarn/install-state.gz
|
|
||||||
.pnp.*
|
|
||||||
|
|
||||||
|
|||||||
261
CONTRIBUTING.md
Normal file
261
CONTRIBUTING.md
Normal file
@ -0,0 +1,261 @@
|
|||||||
|
# Contributing to Biohazard VFX Website
|
||||||
|
|
||||||
|
Thank you for contributing to the official Biohazard VFX website! This document provides guidelines and instructions for internal developers working on this project.
|
||||||
|
|
||||||
|
## Table of Contents
|
||||||
|
- [Getting Started](#getting-started)
|
||||||
|
- [Development Workflow](#development-workflow)
|
||||||
|
- [Coding Standards](#coding-standards)
|
||||||
|
- [Git Workflow](#git-workflow)
|
||||||
|
- [Pull Request Process](#pull-request-process)
|
||||||
|
- [Testing](#testing)
|
||||||
|
- [Deployment](#deployment)
|
||||||
|
|
||||||
|
## Getting Started
|
||||||
|
|
||||||
|
### Prerequisites
|
||||||
|
- Node.js 20.x or higher
|
||||||
|
- npm (comes with Node.js)
|
||||||
|
- Git
|
||||||
|
- A code editor (VS Code recommended)
|
||||||
|
|
||||||
|
### Initial Setup
|
||||||
|
1. Clone the repository:
|
||||||
|
```bash
|
||||||
|
git clone <repository-url>
|
||||||
|
cd biohazard-vfx-website
|
||||||
|
```
|
||||||
|
|
||||||
|
2. Install dependencies:
|
||||||
|
```bash
|
||||||
|
npm install
|
||||||
|
```
|
||||||
|
|
||||||
|
3. Create your environment file:
|
||||||
|
```bash
|
||||||
|
cp .env.example .env.local
|
||||||
|
```
|
||||||
|
Fill in the required environment variables.
|
||||||
|
|
||||||
|
4. Start the development server:
|
||||||
|
```bash
|
||||||
|
npm run dev
|
||||||
|
```
|
||||||
|
|
||||||
|
5. Open [http://localhost:3000](http://localhost:3000) in your browser.
|
||||||
|
|
||||||
|
## Development Workflow
|
||||||
|
|
||||||
|
### Branch Strategy
|
||||||
|
- `main` - Production branch, always deployable
|
||||||
|
- `develop` - Development branch for integration
|
||||||
|
- Feature branches - `feature/description` or `feature/issue-number-description`
|
||||||
|
- Bug fix branches - `fix/description` or `fix/issue-number-description`
|
||||||
|
- Hotfix branches - `hotfix/description`
|
||||||
|
|
||||||
|
### Starting New Work
|
||||||
|
1. Always create a new branch from `develop`:
|
||||||
|
```bash
|
||||||
|
git checkout develop
|
||||||
|
git pull origin develop
|
||||||
|
git checkout -b feature/your-feature-name
|
||||||
|
```
|
||||||
|
|
||||||
|
2. Make your changes and commit regularly with clear messages.
|
||||||
|
|
||||||
|
3. Keep your branch up to date:
|
||||||
|
```bash
|
||||||
|
git fetch origin
|
||||||
|
git rebase origin/develop
|
||||||
|
```
|
||||||
|
|
||||||
|
## Coding Standards
|
||||||
|
|
||||||
|
### TypeScript
|
||||||
|
- Use TypeScript for all new code
|
||||||
|
- Avoid using `any` type; use proper types or `unknown`
|
||||||
|
- Define interfaces for component props and API responses
|
||||||
|
- Use meaningful variable and function names
|
||||||
|
|
||||||
|
### React/Next.js
|
||||||
|
- Use functional components with hooks
|
||||||
|
- Follow the App Router conventions
|
||||||
|
- Keep components small and focused (single responsibility)
|
||||||
|
- Use server components by default, client components only when needed
|
||||||
|
- Place server components in the `app` directory
|
||||||
|
- Place reusable client components in `src/components`
|
||||||
|
|
||||||
|
### Styling
|
||||||
|
- Use Tailwind CSS utility classes
|
||||||
|
- Follow the ShadCN UI component patterns
|
||||||
|
- Use CSS variables for theming (defined in `globals.css`)
|
||||||
|
- Keep custom CSS to a minimum
|
||||||
|
|
||||||
|
### File Structure
|
||||||
|
```
|
||||||
|
src/
|
||||||
|
├── app/ # Next.js App Router pages
|
||||||
|
├── components/ # Reusable components
|
||||||
|
│ └── ui/ # ShadCN UI components
|
||||||
|
├── lib/ # Utility functions
|
||||||
|
└── hooks/ # Custom React hooks
|
||||||
|
```
|
||||||
|
|
||||||
|
### Code Quality
|
||||||
|
- Run linting before committing:
|
||||||
|
```bash
|
||||||
|
npm run lint
|
||||||
|
```
|
||||||
|
|
||||||
|
- Run type checking:
|
||||||
|
```bash
|
||||||
|
npm run type-check
|
||||||
|
```
|
||||||
|
|
||||||
|
- Fix auto-fixable issues:
|
||||||
|
```bash
|
||||||
|
npm run lint -- --fix
|
||||||
|
```
|
||||||
|
|
||||||
|
## Git Workflow
|
||||||
|
|
||||||
|
### Commit Messages
|
||||||
|
Follow the conventional commits format:
|
||||||
|
```
|
||||||
|
type(scope): subject
|
||||||
|
|
||||||
|
body (optional)
|
||||||
|
|
||||||
|
footer (optional)
|
||||||
|
```
|
||||||
|
|
||||||
|
Types:
|
||||||
|
- `feat`: New feature
|
||||||
|
- `fix`: Bug fix
|
||||||
|
- `docs`: Documentation changes
|
||||||
|
- `style`: Code style changes (formatting, etc.)
|
||||||
|
- `refactor`: Code refactoring
|
||||||
|
- `perf`: Performance improvements
|
||||||
|
- `test`: Adding or updating tests
|
||||||
|
- `chore`: Maintenance tasks
|
||||||
|
|
||||||
|
Examples:
|
||||||
|
```
|
||||||
|
feat(portfolio): add project filtering functionality
|
||||||
|
fix(header): resolve mobile menu overflow issue
|
||||||
|
docs(readme): update installation instructions
|
||||||
|
```
|
||||||
|
|
||||||
|
### Commit Best Practices
|
||||||
|
- Make atomic commits (one logical change per commit)
|
||||||
|
- Write clear, descriptive commit messages
|
||||||
|
- Commit early and often
|
||||||
|
- Don't commit sensitive information or credentials
|
||||||
|
|
||||||
|
## Pull Request Process
|
||||||
|
|
||||||
|
### Before Creating a PR
|
||||||
|
1. Ensure your code builds successfully:
|
||||||
|
```bash
|
||||||
|
npm run build
|
||||||
|
```
|
||||||
|
|
||||||
|
2. Run linting and fix any issues:
|
||||||
|
```bash
|
||||||
|
npm run lint
|
||||||
|
npm run type-check
|
||||||
|
```
|
||||||
|
|
||||||
|
3. Test your changes thoroughly in multiple browsers if applicable
|
||||||
|
|
||||||
|
4. Rebase your branch on the latest `develop`:
|
||||||
|
```bash
|
||||||
|
git fetch origin
|
||||||
|
git rebase origin/develop
|
||||||
|
```
|
||||||
|
|
||||||
|
### Creating a PR
|
||||||
|
1. Push your branch to the remote repository:
|
||||||
|
```bash
|
||||||
|
git push origin feature/your-feature-name
|
||||||
|
```
|
||||||
|
|
||||||
|
2. Create a Pull Request on Gitea
|
||||||
|
- Use the PR template provided
|
||||||
|
- Fill in all relevant sections
|
||||||
|
- Link to related issues
|
||||||
|
- Add screenshots for UI changes
|
||||||
|
- Request review from appropriate team members
|
||||||
|
|
||||||
|
3. Ensure CI checks pass
|
||||||
|
- All tests must pass
|
||||||
|
- No linting errors
|
||||||
|
- Build must succeed
|
||||||
|
|
||||||
|
### PR Review Process
|
||||||
|
- Address all review comments
|
||||||
|
- Make requested changes in new commits (don't force push during review)
|
||||||
|
- Mark conversations as resolved once addressed
|
||||||
|
- Request re-review after making changes
|
||||||
|
|
||||||
|
### After PR Approval
|
||||||
|
- Squash commits if requested
|
||||||
|
- Merge using the "Squash and Merge" or "Rebase and Merge" option
|
||||||
|
- Delete your feature branch after merging
|
||||||
|
|
||||||
|
## Testing
|
||||||
|
|
||||||
|
### Manual Testing
|
||||||
|
- Test your changes in multiple browsers (Chrome, Firefox, Safari, Edge)
|
||||||
|
- Test responsive behavior on different screen sizes
|
||||||
|
- Verify accessibility (keyboard navigation, screen readers)
|
||||||
|
- Check performance (Lighthouse scores)
|
||||||
|
|
||||||
|
### Automated Testing
|
||||||
|
- Write tests for new features when applicable
|
||||||
|
- Ensure existing tests pass before submitting PR
|
||||||
|
|
||||||
|
## Deployment
|
||||||
|
|
||||||
|
### Environments
|
||||||
|
- **Development**: Automatic deployment from `develop` branch
|
||||||
|
- **Preview**: Automatic deployment for each PR
|
||||||
|
- **Production**: Automatic deployment from `main` branch
|
||||||
|
|
||||||
|
### Deployment Process
|
||||||
|
1. Changes merged to `develop` → Auto-deploy to development environment
|
||||||
|
2. PR opened against `main` → Auto-deploy preview environment
|
||||||
|
3. PR merged to `main` → Auto-deploy to production via Cloudflare
|
||||||
|
|
||||||
|
### Cloudflare Configuration
|
||||||
|
- Production deployments use OpenNext build
|
||||||
|
- Environment variables are managed through Gitea Secrets
|
||||||
|
- Wrangler configuration is in `wrangler.toml`
|
||||||
|
|
||||||
|
### Rollback
|
||||||
|
If a deployment causes issues:
|
||||||
|
1. Revert the problematic commit
|
||||||
|
2. Create a hotfix PR
|
||||||
|
3. Expedite review and merge
|
||||||
|
4. Monitor deployment
|
||||||
|
|
||||||
|
## Questions or Issues?
|
||||||
|
|
||||||
|
If you have questions or run into issues:
|
||||||
|
1. Check existing documentation
|
||||||
|
2. Search for similar issues in the issue tracker
|
||||||
|
3. Ask in the team chat
|
||||||
|
4. Create a new issue using the question template
|
||||||
|
|
||||||
|
## Additional Resources
|
||||||
|
|
||||||
|
- [Next.js Documentation](https://nextjs.org/docs)
|
||||||
|
- [Tailwind CSS Documentation](https://tailwindcss.com/docs)
|
||||||
|
- [ShadCN UI Documentation](https://ui.shadcn.com/)
|
||||||
|
- [OpenNext Documentation](https://open-next.js.org/)
|
||||||
|
- [Cloudflare Workers Documentation](https://developers.cloudflare.com/workers/)
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
Thank you for contributing to Biohazard VFX! Your work helps us showcase amazing visual effects to the world.
|
||||||
|
|
||||||
214
README.md
214
README.md
@ -1,3 +1,213 @@
|
|||||||
# biohazard-vfx-website
|
# Biohazard VFX Website
|
||||||
|
|
||||||
The full implementation of all ideas into the Biohazard VFX Website
|
Official website for Biohazard VFX - showcasing our portfolio of visual effects work and studio capabilities.
|
||||||
|
|
||||||
|
## Tech Stack
|
||||||
|
|
||||||
|
- **Framework**: [Next.js 15](https://nextjs.org/) with App Router
|
||||||
|
- **Language**: [TypeScript](https://www.typescriptlang.org/)
|
||||||
|
- **Styling**: [Tailwind CSS v4](https://tailwindcss.com/)
|
||||||
|
- **UI Components**: [ShadCN UI](https://ui.shadcn.com/)
|
||||||
|
- **Deployment**: [Cloudflare Workers](https://workers.cloudflare.com/) via [OpenNext](https://open-next.js.org/)
|
||||||
|
- **Version Control**: Gitea with Gitea Actions CI/CD
|
||||||
|
|
||||||
|
## Features
|
||||||
|
|
||||||
|
- Modern, responsive design
|
||||||
|
- Optimized for performance
|
||||||
|
- SEO-friendly
|
||||||
|
- Dark mode support
|
||||||
|
- Portfolio showcase
|
||||||
|
- Accessible (WCAG compliant)
|
||||||
|
|
||||||
|
## Getting Started
|
||||||
|
|
||||||
|
### Prerequisites
|
||||||
|
|
||||||
|
- Node.js 20.x or higher
|
||||||
|
- npm (comes with Node.js)
|
||||||
|
- Git
|
||||||
|
|
||||||
|
### Installation
|
||||||
|
|
||||||
|
1. Clone the repository:
|
||||||
|
```bash
|
||||||
|
git clone <repository-url>
|
||||||
|
cd biohazard-vfx-website
|
||||||
|
```
|
||||||
|
|
||||||
|
2. Install dependencies:
|
||||||
|
```bash
|
||||||
|
npm install
|
||||||
|
```
|
||||||
|
|
||||||
|
3. Create environment variables file:
|
||||||
|
```bash
|
||||||
|
cp .env.example .env.local
|
||||||
|
```
|
||||||
|
|
||||||
|
Edit `.env.local` and add your environment variables.
|
||||||
|
|
||||||
|
4. Run the development server:
|
||||||
|
```bash
|
||||||
|
npm run dev
|
||||||
|
```
|
||||||
|
|
||||||
|
5. Open [http://localhost:3000](http://localhost:3000) in your browser.
|
||||||
|
|
||||||
|
## Development
|
||||||
|
|
||||||
|
### Available Scripts
|
||||||
|
|
||||||
|
- `npm run dev` - Start development server with Turbopack
|
||||||
|
- `npm run build` - Build the application for production
|
||||||
|
- `npm run build:open-next` - Build with OpenNext for Cloudflare deployment
|
||||||
|
- `npm run start` - Start production server locally
|
||||||
|
- `npm run lint` - Run ESLint
|
||||||
|
- `npm run type-check` - Run TypeScript type checking
|
||||||
|
|
||||||
|
### Project Structure
|
||||||
|
|
||||||
|
```
|
||||||
|
biohazard-vfx-website/
|
||||||
|
├── .gitea/ # Gitea configuration
|
||||||
|
│ ├── workflows/ # CI/CD workflows
|
||||||
|
│ ├── issue_template/ # Issue templates
|
||||||
|
│ └── pull_request_template.md
|
||||||
|
├── src/
|
||||||
|
│ ├── app/ # Next.js App Router pages
|
||||||
|
│ ├── components/ # React components
|
||||||
|
│ │ └── ui/ # ShadCN UI components
|
||||||
|
│ ├── lib/ # Utility functions
|
||||||
|
│ └── hooks/ # Custom React hooks
|
||||||
|
├── public/ # Static assets
|
||||||
|
├── .env.example # Environment variables template
|
||||||
|
├── components.json # ShadCN UI configuration
|
||||||
|
├── next.config.ts # Next.js configuration
|
||||||
|
├── open-next.config.ts # OpenNext configuration
|
||||||
|
├── wrangler.toml # Cloudflare Workers configuration
|
||||||
|
├── tailwind.config.ts # Tailwind CSS configuration
|
||||||
|
└── tsconfig.json # TypeScript configuration
|
||||||
|
```
|
||||||
|
|
||||||
|
### Adding UI Components
|
||||||
|
|
||||||
|
This project uses ShadCN UI. To add a new component:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
npx shadcn@latest add button
|
||||||
|
npx shadcn@latest add card
|
||||||
|
# etc.
|
||||||
|
```
|
||||||
|
|
||||||
|
Components will be added to `src/components/ui/`.
|
||||||
|
|
||||||
|
### Environment Variables
|
||||||
|
|
||||||
|
Create a `.env.local` file based on `.env.example`:
|
||||||
|
|
||||||
|
```env
|
||||||
|
NEXT_PUBLIC_APP_NAME="Biohazard VFX"
|
||||||
|
NEXT_PUBLIC_APP_URL="http://localhost:3000"
|
||||||
|
```
|
||||||
|
|
||||||
|
## Deployment
|
||||||
|
|
||||||
|
### Cloudflare Workers
|
||||||
|
|
||||||
|
This project uses OpenNext to deploy Next.js to Cloudflare Workers.
|
||||||
|
|
||||||
|
#### Prerequisites
|
||||||
|
|
||||||
|
1. Cloudflare account
|
||||||
|
2. Wrangler CLI installed (`npm install -g wrangler`)
|
||||||
|
3. Cloudflare API token with Workers permissions
|
||||||
|
|
||||||
|
#### Deployment Steps
|
||||||
|
|
||||||
|
1. Configure `wrangler.toml` with your account details
|
||||||
|
|
||||||
|
2. Set up secrets in Gitea:
|
||||||
|
- `CLOUDFLARE_API_TOKEN`
|
||||||
|
- `CLOUDFLARE_ACCOUNT_ID`
|
||||||
|
|
||||||
|
3. Deploy:
|
||||||
|
```bash
|
||||||
|
npm run build:open-next
|
||||||
|
npx wrangler deploy
|
||||||
|
```
|
||||||
|
|
||||||
|
### Automatic Deployment
|
||||||
|
|
||||||
|
The project uses Gitea Actions for CI/CD:
|
||||||
|
|
||||||
|
- **Pull Requests**: Automatic preview deployment
|
||||||
|
- **Main Branch**: Automatic production deployment
|
||||||
|
- **Develop Branch**: Automatic development deployment
|
||||||
|
|
||||||
|
See `.gitea/workflows/` for workflow configurations.
|
||||||
|
|
||||||
|
## Contributing
|
||||||
|
|
||||||
|
We welcome contributions from internal developers! Please read [CONTRIBUTING.md](CONTRIBUTING.md) for:
|
||||||
|
|
||||||
|
- Development workflow
|
||||||
|
- Coding standards
|
||||||
|
- Git workflow
|
||||||
|
- Pull request process
|
||||||
|
- Testing guidelines
|
||||||
|
|
||||||
|
### Quick Contribution Guide
|
||||||
|
|
||||||
|
1. Create a feature branch from `develop`
|
||||||
|
2. Make your changes
|
||||||
|
3. Run linting and type checking
|
||||||
|
4. Create a Pull Request
|
||||||
|
5. Wait for review and CI checks
|
||||||
|
6. Address feedback
|
||||||
|
7. Merge after approval
|
||||||
|
|
||||||
|
## CI/CD
|
||||||
|
|
||||||
|
### Workflows
|
||||||
|
|
||||||
|
- **CI**: Runs linting, type checking, and builds on every PR
|
||||||
|
- **Deploy Preview**: Deploys preview environments for PRs
|
||||||
|
- **Deploy Production**: Deploys to production on main branch merges
|
||||||
|
|
||||||
|
### Status Badges
|
||||||
|
|
||||||
|
Add status badges here once workflows are running.
|
||||||
|
|
||||||
|
## Browser Support
|
||||||
|
|
||||||
|
- Chrome (latest)
|
||||||
|
- Firefox (latest)
|
||||||
|
- Safari (latest)
|
||||||
|
- Edge (latest)
|
||||||
|
|
||||||
|
## Performance
|
||||||
|
|
||||||
|
- Lighthouse Score Target: 90+
|
||||||
|
- First Contentful Paint: < 1.5s
|
||||||
|
- Time to Interactive: < 3.5s
|
||||||
|
- Largest Contentful Paint: < 2.5s
|
||||||
|
|
||||||
|
## License
|
||||||
|
|
||||||
|
Proprietary - Biohazard VFX. All rights reserved.
|
||||||
|
|
||||||
|
## Team
|
||||||
|
|
||||||
|
This project is maintained by the Biohazard VFX development team.
|
||||||
|
|
||||||
|
## Support
|
||||||
|
|
||||||
|
For questions or issues:
|
||||||
|
- Create an issue using the appropriate template
|
||||||
|
- Contact the development team
|
||||||
|
- Check the [CONTRIBUTING.md](CONTRIBUTING.md) guide
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
Built with ❤️ by Biohazard VFX
|
||||||
|
|||||||
22
components.json
Normal file
22
components.json
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
{
|
||||||
|
"$schema": "https://ui.shadcn.com/schema.json",
|
||||||
|
"style": "new-york",
|
||||||
|
"rsc": true,
|
||||||
|
"tsx": true,
|
||||||
|
"tailwind": {
|
||||||
|
"config": "tailwind.config.ts",
|
||||||
|
"css": "src/app/globals.css",
|
||||||
|
"baseColor": "neutral",
|
||||||
|
"cssVariables": true,
|
||||||
|
"prefix": ""
|
||||||
|
},
|
||||||
|
"aliases": {
|
||||||
|
"components": "@/components",
|
||||||
|
"utils": "@/lib/utils",
|
||||||
|
"ui": "@/components/ui",
|
||||||
|
"lib": "@/lib",
|
||||||
|
"hooks": "@/hooks"
|
||||||
|
},
|
||||||
|
"iconLibrary": "lucide"
|
||||||
|
}
|
||||||
|
|
||||||
25
eslint.config.mjs
Normal file
25
eslint.config.mjs
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
import { dirname } from "path";
|
||||||
|
import { fileURLToPath } from "url";
|
||||||
|
import { FlatCompat } from "@eslint/eslintrc";
|
||||||
|
|
||||||
|
const __filename = fileURLToPath(import.meta.url);
|
||||||
|
const __dirname = dirname(__filename);
|
||||||
|
|
||||||
|
const compat = new FlatCompat({
|
||||||
|
baseDirectory: __dirname,
|
||||||
|
});
|
||||||
|
|
||||||
|
const eslintConfig = [
|
||||||
|
...compat.extends("next/core-web-vitals", "next/typescript"),
|
||||||
|
{
|
||||||
|
ignores: [
|
||||||
|
"node_modules/**",
|
||||||
|
".next/**",
|
||||||
|
"out/**",
|
||||||
|
"build/**",
|
||||||
|
"next-env.d.ts",
|
||||||
|
],
|
||||||
|
},
|
||||||
|
];
|
||||||
|
|
||||||
|
export default eslintConfig;
|
||||||
15
next.config.ts
Normal file
15
next.config.ts
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
import type { NextConfig } from "next";
|
||||||
|
|
||||||
|
const nextConfig: NextConfig = {
|
||||||
|
output: "standalone",
|
||||||
|
// OpenNext configuration for Cloudflare deployment
|
||||||
|
experimental: {
|
||||||
|
// Enable any experimental features if needed
|
||||||
|
},
|
||||||
|
// Image optimization for Cloudflare
|
||||||
|
images: {
|
||||||
|
unoptimized: false,
|
||||||
|
},
|
||||||
|
};
|
||||||
|
|
||||||
|
export default nextConfig;
|
||||||
10
open-next.config.ts
Normal file
10
open-next.config.ts
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
const config = {
|
||||||
|
default: {
|
||||||
|
override: {
|
||||||
|
wrapper: "cloudflare",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
};
|
||||||
|
|
||||||
|
export default config;
|
||||||
|
|
||||||
8679
package-lock.json
generated
Normal file
8679
package-lock.json
generated
Normal file
File diff suppressed because it is too large
Load Diff
34
package.json
Normal file
34
package.json
Normal file
@ -0,0 +1,34 @@
|
|||||||
|
{
|
||||||
|
"name": "biohazard-vfx-website",
|
||||||
|
"version": "0.1.0",
|
||||||
|
"private": true,
|
||||||
|
"scripts": {
|
||||||
|
"dev": "next dev --turbopack",
|
||||||
|
"build": "next build",
|
||||||
|
"build:open-next": "npm run build && open-next build",
|
||||||
|
"start": "next start",
|
||||||
|
"lint": "eslint",
|
||||||
|
"type-check": "tsc --noEmit"
|
||||||
|
},
|
||||||
|
"dependencies": {
|
||||||
|
"class-variance-authority": "^0.7.1",
|
||||||
|
"clsx": "^2.1.1",
|
||||||
|
"lucide-react": "^0.545.0",
|
||||||
|
"next": "15.5.4",
|
||||||
|
"open-next": "^3.1.3",
|
||||||
|
"react": "19.1.0",
|
||||||
|
"react-dom": "19.1.0",
|
||||||
|
"tailwind-merge": "^3.3.1"
|
||||||
|
},
|
||||||
|
"devDependencies": {
|
||||||
|
"@eslint/eslintrc": "^3",
|
||||||
|
"@tailwindcss/postcss": "^4",
|
||||||
|
"@types/node": "^20",
|
||||||
|
"@types/react": "^19",
|
||||||
|
"@types/react-dom": "^19",
|
||||||
|
"eslint": "^9",
|
||||||
|
"eslint-config-next": "15.5.4",
|
||||||
|
"tailwindcss": "^4",
|
||||||
|
"typescript": "^5"
|
||||||
|
}
|
||||||
|
}
|
||||||
5
postcss.config.mjs
Normal file
5
postcss.config.mjs
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
const config = {
|
||||||
|
plugins: ["@tailwindcss/postcss"],
|
||||||
|
};
|
||||||
|
|
||||||
|
export default config;
|
||||||
1
public/file.svg
Normal file
1
public/file.svg
Normal file
@ -0,0 +1 @@
|
|||||||
|
<svg fill="none" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M14.5 13.5V5.41a1 1 0 0 0-.3-.7L9.8.29A1 1 0 0 0 9.08 0H1.5v13.5A2.5 2.5 0 0 0 4 16h8a2.5 2.5 0 0 0 2.5-2.5m-1.5 0v-7H8v-5H3v12a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1M9.5 5V2.12L12.38 5zM5.13 5h-.62v1.25h2.12V5zm-.62 3h7.12v1.25H4.5zm.62 3h-.62v1.25h7.12V11z" clip-rule="evenodd" fill="#666" fill-rule="evenodd"/></svg>
|
||||||
|
After Width: | Height: | Size: 391 B |
1
public/globe.svg
Normal file
1
public/globe.svg
Normal file
@ -0,0 +1 @@
|
|||||||
|
<svg fill="none" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><g clip-path="url(#a)"><path fill-rule="evenodd" clip-rule="evenodd" d="M10.27 14.1a6.5 6.5 0 0 0 3.67-3.45q-1.24.21-2.7.34-.31 1.83-.97 3.1M8 16A8 8 0 1 0 8 0a8 8 0 0 0 0 16m.48-1.52a7 7 0 0 1-.96 0H7.5a4 4 0 0 1-.84-1.32q-.38-.89-.63-2.08a40 40 0 0 0 3.92 0q-.25 1.2-.63 2.08a4 4 0 0 1-.84 1.31zm2.94-4.76q1.66-.15 2.95-.43a7 7 0 0 0 0-2.58q-1.3-.27-2.95-.43a18 18 0 0 1 0 3.44m-1.27-3.54a17 17 0 0 1 0 3.64 39 39 0 0 1-4.3 0 17 17 0 0 1 0-3.64 39 39 0 0 1 4.3 0m1.1-1.17q1.45.13 2.69.34a6.5 6.5 0 0 0-3.67-3.44q.65 1.26.98 3.1M8.48 1.5l.01.02q.41.37.84 1.31.38.89.63 2.08a40 40 0 0 0-3.92 0q.25-1.2.63-2.08a4 4 0 0 1 .85-1.32 7 7 0 0 1 .96 0m-2.75.4a6.5 6.5 0 0 0-3.67 3.44 29 29 0 0 1 2.7-.34q.31-1.83.97-3.1M4.58 6.28q-1.66.16-2.95.43a7 7 0 0 0 0 2.58q1.3.27 2.95.43a18 18 0 0 1 0-3.44m.17 4.71q-1.45-.12-2.69-.34a6.5 6.5 0 0 0 3.67 3.44q-.65-1.27-.98-3.1" fill="#666"/></g><defs><clipPath id="a"><path fill="#fff" d="M0 0h16v16H0z"/></clipPath></defs></svg>
|
||||||
|
After Width: | Height: | Size: 1.0 KiB |
1
public/next.svg
Normal file
1
public/next.svg
Normal file
@ -0,0 +1 @@
|
|||||||
|
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 394 80"><path fill="#000" d="M262 0h68.5v12.7h-27.2v66.6h-13.6V12.7H262V0ZM149 0v12.7H94v20.4h44.3v12.6H94v21h55v12.6H80.5V0h68.7zm34.3 0h-17.8l63.8 79.4h17.9l-32-39.7 32-39.6h-17.9l-23 28.6-23-28.6zm18.3 56.7-9-11-27.1 33.7h17.8l18.3-22.7z"/><path fill="#000" d="M81 79.3 17 0H0v79.3h13.6V17l50.2 62.3H81Zm252.6-.4c-1 0-1.8-.4-2.5-1s-1.1-1.6-1.1-2.6.3-1.8 1-2.5 1.6-1 2.6-1 1.8.3 2.5 1a3.4 3.4 0 0 1 .6 4.3 3.7 3.7 0 0 1-3 1.8zm23.2-33.5h6v23.3c0 2.1-.4 4-1.3 5.5a9.1 9.1 0 0 1-3.8 3.5c-1.6.8-3.5 1.3-5.7 1.3-2 0-3.7-.4-5.3-1s-2.8-1.8-3.7-3.2c-.9-1.3-1.4-3-1.4-5h6c.1.8.3 1.6.7 2.2s1 1.2 1.6 1.5c.7.4 1.5.5 2.4.5 1 0 1.8-.2 2.4-.6a4 4 0 0 0 1.6-1.8c.3-.8.5-1.8.5-3V45.5zm30.9 9.1a4.4 4.4 0 0 0-2-3.3 7.5 7.5 0 0 0-4.3-1.1c-1.3 0-2.4.2-3.3.5-.9.4-1.6 1-2 1.6a3.5 3.5 0 0 0-.3 4c.3.5.7.9 1.3 1.2l1.8 1 2 .5 3.2.8c1.3.3 2.5.7 3.7 1.2a13 13 0 0 1 3.2 1.8 8.1 8.1 0 0 1 3 6.5c0 2-.5 3.7-1.5 5.1a10 10 0 0 1-4.4 3.5c-1.8.8-4.1 1.2-6.8 1.2-2.6 0-4.9-.4-6.8-1.2-2-.8-3.4-2-4.5-3.5a10 10 0 0 1-1.7-5.6h6a5 5 0 0 0 3.5 4.6c1 .4 2.2.6 3.4.6 1.3 0 2.5-.2 3.5-.6 1-.4 1.8-1 2.4-1.7a4 4 0 0 0 .8-2.4c0-.9-.2-1.6-.7-2.2a11 11 0 0 0-2.1-1.4l-3.2-1-3.8-1c-2.8-.7-5-1.7-6.6-3.2a7.2 7.2 0 0 1-2.4-5.7 8 8 0 0 1 1.7-5 10 10 0 0 1 4.3-3.5c2-.8 4-1.2 6.4-1.2 2.3 0 4.4.4 6.2 1.2 1.8.8 3.2 2 4.3 3.4 1 1.4 1.5 3 1.5 5h-5.8z"/></svg>
|
||||||
|
After Width: | Height: | Size: 1.3 KiB |
1
public/vercel.svg
Normal file
1
public/vercel.svg
Normal file
@ -0,0 +1 @@
|
|||||||
|
<svg fill="none" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1155 1000"><path d="m577.3 0 577.4 1000H0z" fill="#fff"/></svg>
|
||||||
|
After Width: | Height: | Size: 128 B |
1
public/window.svg
Normal file
1
public/window.svg
Normal file
@ -0,0 +1 @@
|
|||||||
|
<svg fill="none" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path fill-rule="evenodd" clip-rule="evenodd" d="M1.5 2.5h13v10a1 1 0 0 1-1 1h-11a1 1 0 0 1-1-1zM0 1h16v11.5a2.5 2.5 0 0 1-2.5 2.5h-11A2.5 2.5 0 0 1 0 12.5zm3.75 4.5a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5M7 4.75a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0m1.75.75a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5" fill="#666"/></svg>
|
||||||
|
After Width: | Height: | Size: 385 B |
BIN
src/app/favicon.ico
Normal file
BIN
src/app/favicon.ico
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 25 KiB |
70
src/app/globals.css
Normal file
70
src/app/globals.css
Normal file
@ -0,0 +1,70 @@
|
|||||||
|
@import "tailwindcss";
|
||||||
|
|
||||||
|
:root {
|
||||||
|
--background: 0 0% 100%;
|
||||||
|
--foreground: 0 0% 3.9%;
|
||||||
|
--card: 0 0% 100%;
|
||||||
|
--card-foreground: 0 0% 3.9%;
|
||||||
|
--popover: 0 0% 100%;
|
||||||
|
--popover-foreground: 0 0% 3.9%;
|
||||||
|
--primary: 0 0% 9%;
|
||||||
|
--primary-foreground: 0 0% 98%;
|
||||||
|
--secondary: 0 0% 96.1%;
|
||||||
|
--secondary-foreground: 0 0% 9%;
|
||||||
|
--muted: 0 0% 96.1%;
|
||||||
|
--muted-foreground: 0 0% 45.1%;
|
||||||
|
--accent: 0 0% 96.1%;
|
||||||
|
--accent-foreground: 0 0% 9%;
|
||||||
|
--destructive: 0 84.2% 60.2%;
|
||||||
|
--destructive-foreground: 0 0% 98%;
|
||||||
|
--border: 0 0% 89.8%;
|
||||||
|
--input: 0 0% 89.8%;
|
||||||
|
--ring: 0 0% 3.9%;
|
||||||
|
--chart-1: 12 76% 61%;
|
||||||
|
--chart-2: 173 58% 39%;
|
||||||
|
--chart-3: 197 37% 24%;
|
||||||
|
--chart-4: 43 74% 66%;
|
||||||
|
--chart-5: 27 87% 67%;
|
||||||
|
--radius: 0.5rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.dark {
|
||||||
|
--background: 0 0% 3.9%;
|
||||||
|
--foreground: 0 0% 98%;
|
||||||
|
--card: 0 0% 3.9%;
|
||||||
|
--card-foreground: 0 0% 98%;
|
||||||
|
--popover: 0 0% 3.9%;
|
||||||
|
--popover-foreground: 0 0% 98%;
|
||||||
|
--primary: 0 0% 98%;
|
||||||
|
--primary-foreground: 0 0% 9%;
|
||||||
|
--secondary: 0 0% 14.9%;
|
||||||
|
--secondary-foreground: 0 0% 98%;
|
||||||
|
--muted: 0 0% 14.9%;
|
||||||
|
--muted-foreground: 0 0% 63.9%;
|
||||||
|
--accent: 0 0% 14.9%;
|
||||||
|
--accent-foreground: 0 0% 98%;
|
||||||
|
--destructive: 0 62.8% 30.6%;
|
||||||
|
--destructive-foreground: 0 0% 98%;
|
||||||
|
--border: 0 0% 14.9%;
|
||||||
|
--input: 0 0% 14.9%;
|
||||||
|
--ring: 0 0% 83.1%;
|
||||||
|
--chart-1: 220 70% 50%;
|
||||||
|
--chart-2: 160 60% 45%;
|
||||||
|
--chart-3: 30 80% 55%;
|
||||||
|
--chart-4: 280 65% 60%;
|
||||||
|
--chart-5: 340 75% 55%;
|
||||||
|
}
|
||||||
|
|
||||||
|
@theme inline {
|
||||||
|
--font-sans: var(--font-geist-sans);
|
||||||
|
--font-mono: var(--font-geist-mono);
|
||||||
|
--color-background: hsl(var(--background));
|
||||||
|
--color-foreground: hsl(var(--foreground));
|
||||||
|
--color-border: hsl(var(--border));
|
||||||
|
}
|
||||||
|
|
||||||
|
body {
|
||||||
|
background: hsl(var(--background));
|
||||||
|
color: hsl(var(--foreground));
|
||||||
|
font-family: var(--font-sans), Arial, Helvetica, sans-serif;
|
||||||
|
}
|
||||||
34
src/app/layout.tsx
Normal file
34
src/app/layout.tsx
Normal file
@ -0,0 +1,34 @@
|
|||||||
|
import type { Metadata } from "next";
|
||||||
|
import { Geist, Geist_Mono } from "next/font/google";
|
||||||
|
import "./globals.css";
|
||||||
|
|
||||||
|
const geistSans = Geist({
|
||||||
|
variable: "--font-geist-sans",
|
||||||
|
subsets: ["latin"],
|
||||||
|
});
|
||||||
|
|
||||||
|
const geistMono = Geist_Mono({
|
||||||
|
variable: "--font-geist-mono",
|
||||||
|
subsets: ["latin"],
|
||||||
|
});
|
||||||
|
|
||||||
|
export const metadata: Metadata = {
|
||||||
|
title: "Create Next App",
|
||||||
|
description: "Generated by create next app",
|
||||||
|
};
|
||||||
|
|
||||||
|
export default function RootLayout({
|
||||||
|
children,
|
||||||
|
}: Readonly<{
|
||||||
|
children: React.ReactNode;
|
||||||
|
}>) {
|
||||||
|
return (
|
||||||
|
<html lang="en">
|
||||||
|
<body
|
||||||
|
className={`${geistSans.variable} ${geistMono.variable} antialiased`}
|
||||||
|
>
|
||||||
|
{children}
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
|
);
|
||||||
|
}
|
||||||
103
src/app/page.tsx
Normal file
103
src/app/page.tsx
Normal file
@ -0,0 +1,103 @@
|
|||||||
|
import Image from "next/image";
|
||||||
|
|
||||||
|
export default function Home() {
|
||||||
|
return (
|
||||||
|
<div className="font-sans grid grid-rows-[20px_1fr_20px] items-center justify-items-center min-h-screen p-8 pb-20 gap-16 sm:p-20">
|
||||||
|
<main className="flex flex-col gap-[32px] row-start-2 items-center sm:items-start">
|
||||||
|
<Image
|
||||||
|
className="dark:invert"
|
||||||
|
src="/next.svg"
|
||||||
|
alt="Next.js logo"
|
||||||
|
width={180}
|
||||||
|
height={38}
|
||||||
|
priority
|
||||||
|
/>
|
||||||
|
<ol className="font-mono list-inside list-decimal text-sm/6 text-center sm:text-left">
|
||||||
|
<li className="mb-2 tracking-[-.01em]">
|
||||||
|
Get started by editing{" "}
|
||||||
|
<code className="bg-black/[.05] dark:bg-white/[.06] font-mono font-semibold px-1 py-0.5 rounded">
|
||||||
|
src/app/page.tsx
|
||||||
|
</code>
|
||||||
|
.
|
||||||
|
</li>
|
||||||
|
<li className="tracking-[-.01em]">
|
||||||
|
Save and see your changes instantly.
|
||||||
|
</li>
|
||||||
|
</ol>
|
||||||
|
|
||||||
|
<div className="flex gap-4 items-center flex-col sm:flex-row">
|
||||||
|
<a
|
||||||
|
className="rounded-full border border-solid border-transparent transition-colors flex items-center justify-center bg-foreground text-background gap-2 hover:bg-[#383838] dark:hover:bg-[#ccc] font-medium text-sm sm:text-base h-10 sm:h-12 px-4 sm:px-5 sm:w-auto"
|
||||||
|
href="https://vercel.com/new?utm_source=create-next-app&utm_medium=appdir-template-tw&utm_campaign=create-next-app"
|
||||||
|
target="_blank"
|
||||||
|
rel="noopener noreferrer"
|
||||||
|
>
|
||||||
|
<Image
|
||||||
|
className="dark:invert"
|
||||||
|
src="/vercel.svg"
|
||||||
|
alt="Vercel logomark"
|
||||||
|
width={20}
|
||||||
|
height={20}
|
||||||
|
/>
|
||||||
|
Deploy now
|
||||||
|
</a>
|
||||||
|
<a
|
||||||
|
className="rounded-full border border-solid border-black/[.08] dark:border-white/[.145] transition-colors flex items-center justify-center hover:bg-[#f2f2f2] dark:hover:bg-[#1a1a1a] hover:border-transparent font-medium text-sm sm:text-base h-10 sm:h-12 px-4 sm:px-5 w-full sm:w-auto md:w-[158px]"
|
||||||
|
href="https://nextjs.org/docs?utm_source=create-next-app&utm_medium=appdir-template-tw&utm_campaign=create-next-app"
|
||||||
|
target="_blank"
|
||||||
|
rel="noopener noreferrer"
|
||||||
|
>
|
||||||
|
Read our docs
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
</main>
|
||||||
|
<footer className="row-start-3 flex gap-[24px] flex-wrap items-center justify-center">
|
||||||
|
<a
|
||||||
|
className="flex items-center gap-2 hover:underline hover:underline-offset-4"
|
||||||
|
href="https://nextjs.org/learn?utm_source=create-next-app&utm_medium=appdir-template-tw&utm_campaign=create-next-app"
|
||||||
|
target="_blank"
|
||||||
|
rel="noopener noreferrer"
|
||||||
|
>
|
||||||
|
<Image
|
||||||
|
aria-hidden
|
||||||
|
src="/file.svg"
|
||||||
|
alt="File icon"
|
||||||
|
width={16}
|
||||||
|
height={16}
|
||||||
|
/>
|
||||||
|
Learn
|
||||||
|
</a>
|
||||||
|
<a
|
||||||
|
className="flex items-center gap-2 hover:underline hover:underline-offset-4"
|
||||||
|
href="https://vercel.com/templates?framework=next.js&utm_source=create-next-app&utm_medium=appdir-template-tw&utm_campaign=create-next-app"
|
||||||
|
target="_blank"
|
||||||
|
rel="noopener noreferrer"
|
||||||
|
>
|
||||||
|
<Image
|
||||||
|
aria-hidden
|
||||||
|
src="/window.svg"
|
||||||
|
alt="Window icon"
|
||||||
|
width={16}
|
||||||
|
height={16}
|
||||||
|
/>
|
||||||
|
Examples
|
||||||
|
</a>
|
||||||
|
<a
|
||||||
|
className="flex items-center gap-2 hover:underline hover:underline-offset-4"
|
||||||
|
href="https://nextjs.org?utm_source=create-next-app&utm_medium=appdir-template-tw&utm_campaign=create-next-app"
|
||||||
|
target="_blank"
|
||||||
|
rel="noopener noreferrer"
|
||||||
|
>
|
||||||
|
<Image
|
||||||
|
aria-hidden
|
||||||
|
src="/globe.svg"
|
||||||
|
alt="Globe icon"
|
||||||
|
width={16}
|
||||||
|
height={16}
|
||||||
|
/>
|
||||||
|
Go to nextjs.org →
|
||||||
|
</a>
|
||||||
|
</footer>
|
||||||
|
</div>
|
||||||
|
);
|
||||||
|
}
|
||||||
7
src/lib/utils.ts
Normal file
7
src/lib/utils.ts
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
import { type ClassValue, clsx } from "clsx"
|
||||||
|
import { twMerge } from "tailwind-merge"
|
||||||
|
|
||||||
|
export function cn(...inputs: ClassValue[]) {
|
||||||
|
return twMerge(clsx(inputs))
|
||||||
|
}
|
||||||
|
|
||||||
27
tsconfig.json
Normal file
27
tsconfig.json
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
{
|
||||||
|
"compilerOptions": {
|
||||||
|
"target": "ES2017",
|
||||||
|
"lib": ["dom", "dom.iterable", "esnext"],
|
||||||
|
"allowJs": true,
|
||||||
|
"skipLibCheck": true,
|
||||||
|
"strict": true,
|
||||||
|
"noEmit": true,
|
||||||
|
"esModuleInterop": true,
|
||||||
|
"module": "esnext",
|
||||||
|
"moduleResolution": "bundler",
|
||||||
|
"resolveJsonModule": true,
|
||||||
|
"isolatedModules": true,
|
||||||
|
"jsx": "preserve",
|
||||||
|
"incremental": true,
|
||||||
|
"plugins": [
|
||||||
|
{
|
||||||
|
"name": "next"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"paths": {
|
||||||
|
"@/*": ["./src/*"]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"],
|
||||||
|
"exclude": ["node_modules"]
|
||||||
|
}
|
||||||
27
wrangler.toml
Normal file
27
wrangler.toml
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
# Cloudflare Workers configuration
|
||||||
|
# Update this file with your Cloudflare account details and deployment settings
|
||||||
|
|
||||||
|
name = "biohazard-vfx-website"
|
||||||
|
compatibility_date = "2024-01-01"
|
||||||
|
main = ".open-next/worker.mjs"
|
||||||
|
|
||||||
|
# Account ID and other deployment details should be configured through environment variables
|
||||||
|
# or added here after initial setup
|
||||||
|
|
||||||
|
[site]
|
||||||
|
bucket = ".open-next/assets"
|
||||||
|
|
||||||
|
# Environment variables
|
||||||
|
[vars]
|
||||||
|
# Add your environment variables here
|
||||||
|
# EXAMPLE_VAR = "value"
|
||||||
|
|
||||||
|
# Uncomment and configure for production
|
||||||
|
# [env.production]
|
||||||
|
# name = "biohazard-vfx-website-production"
|
||||||
|
# route = "yourdomain.com/*"
|
||||||
|
|
||||||
|
# Uncomment and configure for preview/staging
|
||||||
|
# [env.preview]
|
||||||
|
# name = "biohazard-vfx-website-preview"
|
||||||
|
|
||||||
Loading…
x
Reference in New Issue
Block a user