An open API service indexing awesome lists of open source software.

https://github.com/mahmud886/spore-frontend-v2

A Next.js-based frontend application for SPORE FALL, a sci-fi narrative series. The city of Lionara is quarantined. A spore is rewriting human fate.
https://github.com/mahmud886/spore-frontend-v2

framer-motion nextjs vote-application

Last synced: 29 days ago
JSON representation

A Next.js-based frontend application for SPORE FALL, a sci-fi narrative series. The city of Lionara is quarantined. A spore is rewriting human fate.

Awesome Lists containing this project

README

          

# SPORE FALL - Frontend

A Next.js-based frontend application for SPORE FALL, a sci-fi narrative series. The city of Lionara is quarantined. A spore is rewriting human fate.

## Tech Stack

- **Next.js 16.1.3** - React framework with App Router
- **React 19.2.3** - UI library
- **Tailwind CSS 4** - Utility-first CSS framework
- **Prettier** - Code formatter
- **ESLint** - Code linter

## Getting Started

### Prerequisites

- Node.js (v18 or higher)
- npm, yarn, pnpm, or bun

### Installation

1. Clone the repository:

```bash
git clone
cd spore-frontend-v1
```

2. Install dependencies:

```bash
npm install
```

3. Create a `.env.local` file in the root directory and add your environment variables:

```env
# Google Analytics
NEXT_PUBLIC_GA_MEASUREMENT_ID=G-XXXXXXXXXX

# Facebook Pixel
NEXT_PUBLIC_FACEBOOK_PIXEL_ID=XXXXXXXXXXXXXXX

# Twitter Pixel
NEXT_PUBLIC_TWITTER_PIXEL_ID=XXXXXXXXXXXXXXX

# LinkedIn Pixel
NEXT_PUBLIC_LINKEDIN_PIXEL_ID=XXXXXXXXXXXXXXX

# TikTok Pixel
NEXT_PUBLIC_TIKTOK_PIXEL_ID=XXXXXXXXXXXXXXX

# Pinterest Tag
NEXT_PUBLIC_PINTEREST_TAG_ID=XXXXXXXXXXXXXXX

# Microsoft UET
NEXT_PUBLIC_MICROSOFT_UET_ID=XXXXXXXXXXXXXXX

# Printful API
PRINTFUL_API_KEY=your_printful_api_key
PRINTFUL_STORE_ID=your_printful_store_id
```

4. Run the development server:

```bash
npm run dev
```

5. Open [http://localhost:3000](http://localhost:3000) in your browser to see the application.

## Available Scripts

- `npm run dev` - Starts the development server (automatically formats code with Prettier)
- `npm run build` - Creates an optimized production build (automatically formats code with Prettier)
- `npm run start` - Starts the production server
- `npm run lint` - Runs ESLint to check for code issues
- `npm run format` - Formats all files with Prettier
- `npm run format:check` - Checks if files are formatted correctly without making changes

## Code Formatting

This project uses Prettier for code formatting with the following configuration:

- **Print Width**: 120 characters
- **Tab Width**: 2 spaces
- **Single Quotes**: Enabled

Prettier automatically runs before `dev` and `build` commands to ensure consistent code style.

## Project Structure

```
src/
├── app/
│ ├── components/
│ │ ├── home/ # Home page components
│ │ ├── result/ # Result page components
│ │ ├── about/ # About page components
│ │ ├── popups/ # Modal/popup components
│ │ └── shared/ # Shared components
│ ├── layout.js # Root layout
│ ├── page.js # Home page
│ ├── result/
│ │ └── page.js # Result page
│ ├── about/
│ │ └── page.js # About page
│ ├── globals.css # Global styles and Tailwind config
│ └── ExternalStyles.js # External stylesheet loader
```

## Styling

The project uses Tailwind CSS with a custom dark sci-fi theme. Custom colors, fonts, and utility classes are defined in `globals.css`.

### Fonts

- **JetBrains Mono** - Monospace font for body text
- **Orbitron** - Display font for headings

### Custom CSS Classes

The project includes various custom utility classes for the sci-fi aesthetic:

- `grid-overlay` - Grid pattern overlay
- `text-glow` - Text glow effect
- `border-glow` - Border glow effect
- `scanline` - Scanline effect
- `dot-grid` - Dot grid pattern
- And more...

## Analytics Integration

The application includes built-in support for multiple analytics platforms:

- **Google Analytics 4** - Standard web analytics
- **Facebook Pixel** - Conversion tracking and audience building
- **Twitter Pixel** - Campaign measurement and conversion tracking
- **LinkedIn Insight Tag** - Page views and conversion tracking
- **TikTok Pixel** - Conversion tracking and audience building
- **Pinterest Tag** - Conversion tracking and audience insights
- **Microsoft UET** - Bing Ads conversion tracking

Configure the desired analytics platforms by setting the corresponding environment variables in your `.env.local` file.

## Features

- **Multi-step Modal**: Interactive poll modal that auto-opens on the home page
- **Responsive Design**: Mobile-first responsive layout
- **Dark Theme**: Sci-fi inspired dark color scheme
- **Component-based Architecture**: Modular, reusable React components
- **Analytics Integration**: Multi-platform analytics tracking

## Learn More

- [Next.js Documentation](https://nextjs.org/docs)
- [Tailwind CSS Documentation](https://tailwindcss.com/docs)
- [React Documentation](https://react.dev)

## Deploy

The easiest way to deploy this Next.js app is using [Vercel](https://vercel.com/new?utm_medium=default-template&filter=next.js&utm_source=create-next-app&utm_campaign=create-next-app-readme).

Check out the [Next.js deployment documentation](https://nextjs.org/docs/app/building-your-application/deploying) for more details.