Skip to content

AugurProject/augur-reboot-website

Repository files navigation

Augur Reboot Website

This repository contains the source code for the teaser website announcing the reboot of the Augur prediction market. The site serves as a retro-futuristic landing page showcasing the redevelopment of Augur and offering a glimpse into the future of decentralized forecasting.

The future home of the Augur platform will be: https://augur.net


Technical Architecture

This is a modern static website built with cutting-edge web technologies:

  • Astro 5.10+ - Static site generator with selective client-side hydration
  • React 19 - Interactive components with concurrent features
  • Tailwind CSS 4.1 - Utility-first styling with @theme directive approach
  • TypeScript - Full type safety across components and utilities
  • Nanostores - Lightweight state management for cross-component communication

Deployment Strategy

The project supports dual deployment architecture with clear separation of purposes:

Production Deployment:

  • GitHub Pages - Primary production deployment at https://augur.net
  • Automatically deploys from main branch via GitHub Actions
  • Uses static site generation (output: 'static')
  • Handles sitemap generation and SEO optimization

Development Environment:

  • Cloudflare Pages - Local development and preview environment
  • Uses server-side rendering capabilities (output: 'server')
  • Provides Wrangler integration for edge computing features
  • Optimized for development workflow and testing

Key Features

  • Retro-Futuristic Design: CRT monitor aesthetics with power-on/off animations
  • 3D Perspective Grid: WebGL-powered animated tunnel background
  • Interactive Intro Sequence: Terminal-style typewriter effects with smart skip functionality
  • View Transitions: Smooth page navigation with animation continuity
  • Responsive Layout: Optimized for desktop and mobile experiences
  • Performance Optimized: Static-first with selective hydration for interactivity

Project Structure

src/
├── components/           # React and Astro components
│   ├── *.astro          # Server-rendered static components
│   └── *.tsx            # Client-hydrated interactive components
├── pages/               # Route definitions
│   ├── index.astro      # Landing page with intro sequence
│   ├── mission.astro    # Technical roadmap
│   └── team.astro       # Team information
├── layouts/             # Base page layouts
├── stores/              # Nanostores state management
├── styles/              # Tailwind CSS with custom utilities
└── assets/              # Static SVGs and resources

Development

Prerequisites

  • Node.js (LTS version recommended)
  • npm (comes with Node.js)

Setup

  1. Clone the repository:

    git clone <repository-url>
    cd <repository-directory>
  2. Install dependencies:

    npm install

Development Commands

All commands are run from the root of the project:

Command Action
npm run dev Starts development server at localhost:4321
npm run build Builds production site to ./dist/
npm run preview Builds and previews with Wrangler (Cloudflare)
npm run deploy Deploys to Cloudflare Pages
npm run cf-typegen Generates Cloudflare Worker types

Development Workflow

The development server provides:

  • Hot module replacement for rapid iteration
  • TypeScript checking and error reporting
  • Tailwind CSS compilation with custom utilities
  • React component hydration in development mode

For development questions or issues, refer to the project documentation in the docs/ directory or check the component implementations for usage patterns.

Styling System

The project uses Tailwind CSS 4.1 with a CSS-first approach:

  • Global Styles: Located in src/styles/global.css
  • Theme Configuration: Uses @theme directive instead of config files
  • Custom Utilities: Defined with @utility directive
  • Component Styles: Scoped styles within Astro components

Deployment

Environment Detection

The project automatically detects the deployment environment:

// Check if building in GitHub Actions (for GitHub Pages)
const isGitHubActions = process.env.GITHUB_ACTIONS === 'true';

// Configuration selection
...(isGitHubActions ? gitHubPagesConfig : cloudflareConfig)

GitHub Actions Environment:

  • Triggers static site generation with sitemap
  • Optimized for production deployment
  • Uses https://augur.net as canonical site URL
  • Generates SEO-optimized meta tags and structured data

Local Development Environment:

  • Uses Cloudflare adapter for SSR capabilities
  • Provides development server at localhost:4321
  • Enables real-time preview of changes
  • No sitemap generation (not needed for development)

Manual Deployment

To deploy manually to Cloudflare Pages:

npm run deploy

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 5