Compare commits
4 Commits
developmen
...
developmen
| Author | SHA1 | Date | |
|---|---|---|---|
| 07f76639d2 | |||
| a59e09e8ed | |||
| 9f81561a86 | |||
| c0cbe7e6bf |
252
README.md
252
README.md
@@ -1,93 +1,195 @@
|
||||
# Project Mycelium Website
|
||||
|
||||
A multi-page website for Project Mycelium built with React, Vite, TypeScript, and Tailwind CSS.
|
||||
All in one project mycelium website
|
||||
|
||||
## Tech Stack
|
||||
|
||||
- **Framework**: React 19
|
||||
- **Build Tool**: Vite 7
|
||||
- **Repository:** [https://git.ourworld.tf/ourworld_web/www_projectmycelium_com/](https://git.ourworld.tf/ourworld_web/www_projectmycelium_com/)
|
||||
|
||||
|
||||
- **Main Branch (Production):** [https://www.projectmycelium.com/](https://www.projectmycelium.com)
|
||||
- **Dev Branch (Staging):** [https://www2.projectmycelium.com/](https://www2.projectmycelium.com/)
|
||||
|
||||
|
||||
|
||||
---
|
||||
|
||||
|
||||
## About
|
||||
|
||||
|
||||
This is the official website for Mycelium , built using Vite.js and Tailwind CSS.
|
||||
|
||||
|
||||
---
|
||||
|
||||
|
||||
## Technologies
|
||||
|
||||
|
||||
- **Framework**: Vite.js (React)
|
||||
- **Language**: TypeScript
|
||||
- **Styling**: Tailwind CSS 4
|
||||
- **Routing**: React Router DOM 7
|
||||
- **Animations**: Framer Motion 11
|
||||
- **Styling**: Tailwind CSS
|
||||
|
||||
## Project Structure
|
||||
|
||||
```
|
||||
src/
|
||||
├── components/ # Shared components
|
||||
│ ├── AnimatedSection.tsx
|
||||
│ ├── Button.tsx
|
||||
│ ├── CircleBackground.tsx
|
||||
│ ├── Container.tsx
|
||||
│ ├── Header.tsx
|
||||
│ ├── Layout.tsx
|
||||
│ └── Logo.tsx
|
||||
├── pages/ # Page-specific components
|
||||
│ ├── home/ # Home page blocks
|
||||
│ ├── cloud/ # Cloud page blocks
|
||||
│ ├── network/ # Network page blocks
|
||||
│ │ ├── animations/ # SVG animations
|
||||
│ │ ├── Hero.tsx
|
||||
│ │ ├── About.tsx
|
||||
│ │ ├── Features.tsx
|
||||
│ │ ├── PrimaryFeatures.tsx
|
||||
│ │ ├── SecondaryFeatures.tsx
|
||||
│ │ ├── CallToAction.tsx
|
||||
│ │ └── NetworkPage.tsx
|
||||
│ └── agents/ # Agents page blocks
|
||||
├── styles/
|
||||
│ └── tailwind.css # Tailwind configuration
|
||||
└── App.tsx # Main app with routing
|
||||
```
|
||||
---
|
||||
|
||||
## Pages
|
||||
|
||||
- **Home** (`/`) - Main landing page with placeholder content
|
||||
- **Cloud** (`/cloud`) - Mycelium Cloud information (placeholder)
|
||||
- **Network** (`/network`) - Full Network page with:
|
||||
- Hero section
|
||||
- Our Mission (About)
|
||||
- Core Components (Features with animations)
|
||||
- How It Works
|
||||
- Roadmap
|
||||
- Call to Action
|
||||
- **Agents** (`/agents`) - Mycelium Agents information (placeholder)
|
||||
## Dependencies
|
||||
|
||||
## Development
|
||||
- **@emailjs/browser**: ^4.4.1
|
||||
- **@headlessui/react**: ^2.2.9
|
||||
- **@heroicons/react**: ^2.2.0
|
||||
- **@lobehub/icons**: ^1.97.2
|
||||
- **@radix-ui/react-icons**: ^1.3.2
|
||||
- **@react-three/drei**: ^9.89.2
|
||||
- **@react-three/fiber**: ^8.15.12
|
||||
- **@tabler/icons-react**: ^3.35.0
|
||||
- **@tailwindcss/forms**: ^0.5.10
|
||||
- **@types/node**: ^20.19.23
|
||||
- **@types/react**: ^18.3.26
|
||||
- **@types/react-dom**: ^18.3.7
|
||||
- **@types/react-router-dom**: ^5.3.3
|
||||
- **class-variance-authority**: ^0.7.1
|
||||
- **clsx**: ^2.1.1
|
||||
- **cobe**: ^0.6.5
|
||||
- **dotted-map**: ^2.2.3
|
||||
- **framer-motion**: ^10.18.0
|
||||
- **lucide-react**: ^0.544.0
|
||||
- **motion**: ^12.23.24
|
||||
- **popmotion**: ^11.0.5
|
||||
- **react**: ^18.3.1
|
||||
- **react-countup**: ^6.5.3
|
||||
- **react-dom**: ^18.3.1
|
||||
- **react-icons**: ^5.5.0
|
||||
- **react-router-dom**: ^7.9.4
|
||||
- **react-type-animation**: ^3.2.0
|
||||
- **tailwind-merge**: ^3.3.1
|
||||
- **tailwindcss**: ^4.1.15
|
||||
- **three**: ^0.151.0
|
||||
- **typescript**: ^5.9.3
|
||||
- **use-debounce**: ^10.0.6
|
||||
|
||||
Install dependencies:
|
||||
```bash
|
||||
npm install
|
||||
```
|
||||
### Dev Dependencies
|
||||
|
||||
Run development server:
|
||||
```bash
|
||||
npm run dev
|
||||
```
|
||||
- **@tailwindcss/postcss**: ^4.1.15
|
||||
- **@types/three**: ^0.151.0
|
||||
- **@vitejs/plugin-react**: ^5.0.4
|
||||
- **autoprefixer**: ^10.4.20
|
||||
- **eslint**: ^8.57.1
|
||||
- **prettier**: ^3.6.2
|
||||
- **prettier-plugin-tailwindcss**: ^0.6.14
|
||||
- **sharp**: ^0.33.1
|
||||
- **tw-animate-css**: ^1.4.0
|
||||
- **vite**: ^7.1.7
|
||||
|
||||
Build for production:
|
||||
```bash
|
||||
npm run build
|
||||
```
|
||||
---
|
||||
|
||||
Preview production build:
|
||||
```bash
|
||||
npm run preview
|
||||
```
|
||||
|
||||
## Styling
|
||||
## File Structure
|
||||
|
||||
The project follows the same styling conventions as the source Mycelium website:
|
||||
- **Font**: Inter (Google Fonts)
|
||||
- **Colors**: Custom gray scale and cyan accent
|
||||
- **Animations**: Framer Motion with reduced motion support
|
||||
- **Design**: Tailwind CSS with custom theme extensions
|
||||
|
||||
## Migration Notes
|
||||
- **Pages**: `src/pages`
|
||||
- **Components**: `src/components`
|
||||
- **Images**: `public/images`, `src/images`
|
||||
- **CSS**: `src/index.css`, `src/App.css`
|
||||
|
||||
This website consolidates multiple one-pager sites into a single multi-page application. The Network page contains fully migrated content from the original www_mycelium_net repository, including:
|
||||
- All animated SVG components
|
||||
- Responsive layouts
|
||||
- Hover effects and transitions
|
||||
- Accessibility features
|
||||
|
||||
---
|
||||
|
||||
|
||||
## Branding
|
||||
|
||||
|
||||
- **Font**: 'Mulish', 'Neuton'
|
||||
- **Logos**: `public/images/logo.svg`, `public/images/logomark.svg`
|
||||
|
||||
---
|
||||
|
||||
|
||||
## Get Started
|
||||
|
||||
|
||||
Follow these steps to get the project running locally:
|
||||
|
||||
|
||||
1. **Install Dependencies**:
|
||||
|
||||
`npm install`
|
||||
|
||||
2. **Build the Project**:
|
||||
|
||||
`npm run build`
|
||||
|
||||
3. **Start the Development Server**:
|
||||
|
||||
`npm run dev`
|
||||
|
||||
---
|
||||
|
||||
|
||||
## Development Guide
|
||||
|
||||
|
||||
This project follows a modular, component-based architecture. Pages are assembled by combining reusable components into a single layout.
|
||||
|
||||
|
||||
### Homepage Structure
|
||||
|
||||
|
||||
The homepage is composed of components from `src/components` and pages are defined in `src/pages`.
|
||||
|
||||
To edit a specific section of the homepage, navigate to `src/components/` and modify the corresponding component file.
|
||||
|
||||
|
||||
### Base Layout
|
||||
|
||||
The base layout for all pages is defined in `src/components/Layout.tsx`.
|
||||
|
||||
|
||||
### Creating a New Page
|
||||
|
||||
To create a new page, add a new route in `src/App.tsx` and create a corresponding component in `src/pages`.
|
||||
|
||||
|
||||
---
|
||||
|
||||
|
||||
## Contributing
|
||||
|
||||
|
||||
- **Never update the `main` branch directly.** All changes must be reviewed and merged by the team through a pull request.
|
||||
- **Always work on the `development` branch.** Create a feature branch from `development` and submit your pull request to `development`.
|
||||
- **Request a review.** After submitting your pull request, ask the team to review and accept it into the `main` branch.
|
||||
|
||||
|
||||
---
|
||||
|
||||
|
||||
## Report an Error
|
||||
|
||||
|
||||
To report an issue, please use the following link and provide the requested information:
|
||||
|
||||
|
||||
- **Issue Tracker**: [git.ourworld.tf/ourworld_web/HOME/issues/new](https://git.ourworld.tf/ourworld_web/HOME/issues/new) and tag **OW Website & Wiki Project 2025**
|
||||
|
||||
|
||||
- See the current web rpoject on [OW Website & Wiki Project 2025](https://git.ourworld.tf/ourworld_web/-/projects/153)
|
||||
|
||||
|
||||
When reporting an issue, please include:
|
||||
|
||||
|
||||
- **URL**: The page where the error occurred.
|
||||
- **Repo**: The repository you are working with.
|
||||
- **Branch**: The specific branch you are on.
|
||||
- **Problem**: A detailed description of the problem.
|
||||
|
||||
|
||||
---
|
||||
|
||||
|
||||
## Questions
|
||||
|
||||
|
||||
If you have any questions, you can reach out to [sashaastiadi](https://git.ourworld.tf/sashaastiadi).
|
||||
|
||||
48
src/App.tsx
48
src/App.tsx
@@ -1,29 +1,33 @@
|
||||
import { BrowserRouter, Routes, Route } from 'react-router-dom'
|
||||
import { Layout } from './components/Layout'
|
||||
import HomePage from './pages/home/HomePage'
|
||||
import CloudPage from './pages/cloud/CloudPage'
|
||||
import NetworkPage from './pages/network/NetworkPage'
|
||||
import AgentsPage from './pages/agents/AgentsPage'
|
||||
import DownloadPage from './pages/download/DownloadPage'
|
||||
import ComputePage from './pages/compute/ComputePage'
|
||||
import StoragePage from './pages/storage/StoragePage'
|
||||
import GpuPage from './pages/gpu/GpuPage'
|
||||
import { BrowserRouter, Routes, Route } from 'react-router-dom';
|
||||
import { Layout } from './components/Layout';
|
||||
import { lazy, Suspense } from 'react';
|
||||
|
||||
const HomePage = lazy(() => import('./pages/home/HomePage'));
|
||||
const CloudPage = lazy(() => import('./pages/cloud/CloudPage'));
|
||||
const NetworkPage = lazy(() => import('./pages/network/NetworkPage'));
|
||||
const AgentsPage = lazy(() => import('./pages/agents/AgentsPage'));
|
||||
const DownloadPage = lazy(() => import('./pages/download/DownloadPage'));
|
||||
const ComputePage = lazy(() => import('./pages/compute/ComputePage'));
|
||||
const StoragePage = lazy(() => import('./pages/storage/StoragePage'));
|
||||
const GpuPage = lazy(() => import('./pages/gpu/GpuPage'));
|
||||
|
||||
function App() {
|
||||
return (
|
||||
<BrowserRouter>
|
||||
<Routes>
|
||||
<Route path="/" element={<Layout />}>
|
||||
<Route index element={<HomePage />} />
|
||||
<Route path="cloud" element={<CloudPage />} />
|
||||
<Route path="network" element={<NetworkPage />} />
|
||||
<Route path="agents" element={<AgentsPage />} />
|
||||
<Route path="download" element={<DownloadPage />} />
|
||||
<Route path="compute" element={<ComputePage />} />
|
||||
<Route path="storage" element={<StoragePage />} />
|
||||
<Route path="gpu" element={<GpuPage />} />
|
||||
</Route>
|
||||
</Routes>
|
||||
<Suspense fallback={<div>Loading...</div>}>
|
||||
<Routes>
|
||||
<Route path="/" element={<Layout />}>
|
||||
<Route index element={<HomePage />} />
|
||||
<Route path="cloud" element={<CloudPage />} />
|
||||
<Route path="network" element={<NetworkPage />} />
|
||||
<Route path="agents" element={<AgentsPage />} />
|
||||
<Route path="download" element={<DownloadPage />} />
|
||||
<Route path="compute" element={<ComputePage />} />
|
||||
<Route path="storage" element={<StoragePage />} />
|
||||
<Route path="gpu" element={<GpuPage />} />
|
||||
</Route>
|
||||
</Routes>
|
||||
</Suspense>
|
||||
</BrowserRouter>
|
||||
)
|
||||
}
|
||||
|
||||
@@ -3,13 +3,10 @@
|
||||
import { Canvas, useFrame } from "@react-three/fiber";
|
||||
import { Line, OrbitControls, useTexture } from "@react-three/drei";
|
||||
import { useMemo, useRef } from "react";
|
||||
|
||||
type RotatableGroup = {
|
||||
rotation: { y: number };
|
||||
};
|
||||
import type { Group } from "three";
|
||||
|
||||
function Globe() {
|
||||
const groupRef = useRef<RotatableGroup | null>(null);
|
||||
const groupRef = useRef<Group>(null);
|
||||
const cloudTexture = useTexture("/images/cloud1.png");
|
||||
|
||||
// Rotate the globe slowly
|
||||
@@ -78,7 +75,7 @@ function Globe() {
|
||||
|
||||
export function HalfGlobe() {
|
||||
return (
|
||||
<div className="w-full h-[500px] bg-white flex items-center justify-center">
|
||||
<div key="half-globe" className="w-full h-[500px] bg-white flex items-center justify-center">
|
||||
<Canvas camera={{ position: [0, 1.5, 4], fov: 45 }}>
|
||||
<ambientLight intensity={0.8} />
|
||||
<Globe />
|
||||
|
||||
Reference in New Issue
Block a user