{"id":50968861,"url":"https://github.com/chanware/subway-effect","last_synced_at":"2026-06-18T23:32:34.938Z","repository":{"id":292454422,"uuid":"980962586","full_name":"chanware/subway-effect","owner":"chanware","description":"A subway-like experience while navigating between pages on a website.","archived":false,"fork":false,"pushed_at":"2025-05-10T03:42:53.000Z","size":0,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-10T04:27:28.693Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://subway-effect.vercel.app","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/chanware.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-05-10T03:30:44.000Z","updated_at":"2025-05-10T03:45:32.000Z","dependencies_parsed_at":"2025-05-10T04:27:34.763Z","dependency_job_id":"0cb3cbd4-9dab-46dc-8ce8-b0006d90501e","html_url":"https://github.com/chanware/subway-effect","commit_stats":null,"previous_names":["chanware/subway-effect"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/chanware/subway-effect","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chanware%2Fsubway-effect","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chanware%2Fsubway-effect/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chanware%2Fsubway-effect/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chanware%2Fsubway-effect/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chanware","download_url":"https://codeload.github.com/chanware/subway-effect/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chanware%2Fsubway-effect/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34511617,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-18T02:00:06.871Z","response_time":128,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-06-18T23:32:34.758Z","updated_at":"2026-06-18T23:32:34.925Z","avatar_url":"https://github.com/chanware.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🚇 Subway-Themed Website\n\nA creative Next.js website with an immersive subway theme, featuring a unique navigation experience that mimics a subway journey with stations, moving trains, and dynamic station signs.\n\n![Subway Website Demo](https://raw.githubusercontent.com/username/subway-website/main/public/demo-screenshot.png)\n\n## ✨ Features\n\n- **Subway Line Navigation**: Interactive navigation bar styled as a subway line with stations\n- **Moving Train Effect**: Animation simulating train movement between pages\n- **Station View Effect**: Looking through a subway car window at station signs\n- **Responsive Design**: Works on desktop and mobile devices\n\n## 🚀 Getting Started\n\n### Prerequisites\n\n- Node.js 14.6.0 or newer\n- npm or yarn\n\n### Installation\n\n1. **Clone the repository**\n\n```bash\ngit clone https://github.com/yourusername/subway-website.git\ncd subway-website\n```\n\n2. **Install dependencies**\n\n```bash\nnpm install\n# or\nyarn install\n```\n\n3. **Add your assets**\n\nPlace your images in the `public/assets` directory:\n- `subway-car-interior.png` - Subway car interior with transparent window\n- `station-background.png` - Subway station wall background\n\n4. **Start the development server**\n\n```bash\nnpm run dev\n# or\nyarn dev\n```\n\n5. **Open your browser**\n\nNavigate to [http://localhost:3000](http://localhost:3000) to see the website in action.\n\n## 🔧 Customization Guide\n\n### Adjusting the Subway Navigation\n\nThe subway line navigation is defined in `src/components/SubwayNav.js`. \n\nKey customization points:\n- **Navigation Items**: Modify the `navItems` array to change station names and positions\n- **Line Color**: Change the `bg-yellow-500` class to adjust the subway line color\n- **Dot Animation**: Modify the transition timing in the `train-moving` CSS class\n\n### Customizing the Station View\n\nThe subway station view is defined in `src/components/SubwayHero.js`.\n\nImportant customization points:\n\n```jsx\n{/* \n  SIGN POSITIONING - ADJUST THESE VALUES TO MOVE THE SIGN:\n  - Vertical position: Change -translate-y-37 to move up (more negative) or down (less negative)\n  - Horizontal offset: Change -200px value to move left (more negative) or right (less negative)\n*/}\n\u003cdiv \n  className={`absolute left-1/2 top-1/2 transform -translate-x-1/2 -translate-y-37\n    ${isMoving ? 'blur-md transition-all duration-700' : 'transition-all duration-300'}`}\n  style={{ \n    /* Your finely-tuned horizontal offset value */\n    marginLeft: '-200px'  \n  }}\n\u003e\n```\n\nFor sign appearance:\n```jsx\n{/* \n  SIGN SIZE \u0026 APPEARANCE - ADJUST THESE VALUES TO CHANGE THE SIGN:\n  1. Change p-6 for padding (larger number = bigger padding)\n  2. Add w-64 (or any width class) after shadow-lg to set a fixed width\n  3. Change text-3xl and text-lg to adjust title and subtitle sizes\n*/}\n\u003cdiv className=\"station-sign bg-blue-600 text-white p-6 rounded-md shadow-lg\"\u003e\n```\n\n### Animation Effects\n\nThe animation effects are defined in `src/app/globals.css`:\n\n```css\n/* Animation for train movement */\n@keyframes trainMovement {\n  0% {\n    transform: translateX(0);\n  }\n  25% {\n    transform: translateX(-5px);\n  }\n  50% {\n    transform: translateX(5px);\n  }\n  75% {\n    transform: translateX(-3px);\n  }\n  100% {\n    transform: translateX(0);\n  }\n}\n\n.train-moving {\n  animation: trainMovement 0.7s ease-in-out;\n}\n```\n\n### Modifying Page Content\n\nEach page content is located in:\n- `src/app/page.js` (Home)\n- `src/app/about/page.js`\n- `src/app/services/page.js`\n- `src/app/portfolio/page.js`\n- `src/app/contact/page.js`\n\n## 📄 Project Structure\n\n```\nsubway-website/\n├── public/\n│   └── assets/         # Store your subway images here\n├── src/\n│   ├── app/\n│   │   ├── page.js     # Home page (/)\n│   │   ├── about/\n│   │   │   └── page.js # About page (/about)\n│   │   ├── services/\n│   │   │   └── page.js # Services page (/services)\n│   │   ├── portfolio/\n│   │   │   └── page.js # Portfolio page (/portfolio)\n│   │   ├── contact/\n│   │   │   └── page.js # Contact page (/contact)\n│   │   ├── globals.css # Global styles including animations\n│   │   └── layout.js   # Main layout with navigation\n│   ├── components/\n│   │   ├── SubwayNav.js  # Navigation bar component\n│   │   └── SubwayHero.js # Hero section with window effect\n│   └── contexts/\n│       └── NavContext.js # For sharing navigation state\n```\n\n## 🧰 Built With\n\n- [Next.js](https://nextjs.org/) - The React framework\n- [Tailwind CSS](https://tailwindcss.com/) - For styling\n\n## 📝 License\n\nThis project is licensed under the MIT License - see the LICENSE file for details.\n\n## 🙏 Acknowledgments\n\n- Inspiration from subway/metro systems worldwide\n- Thanks to all contributors\n\n---\n\nMade by Channing","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchanware%2Fsubway-effect","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchanware%2Fsubway-effect","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchanware%2Fsubway-effect/lists"}