Cosmic Nexus is a showcase website that blends futuristic technology with nature's wonders to create extraordinary digital experiences. It serves as a portfolio platform featuring interactive 3D visualizations, a blog with technical content, and modern web development practices, all themed around cosmic and organic elements. Explore the intersection of AI, quantum computing, and sustainable tech through immersive interfaces that push the boundaries of web innovation.
- Home Page: Hero section with animated title and call-to-action buttons, expertise showcase (AI-Powered Innovation, Quantum Computing, Space Exploration, Sustainable Tech), rotating testimonials carousel with client reviews and ratings, floating cosmic-themed elements, and an optional weather widget displaying current conditions and 3-day forecast.
- Portfolio Page: Filterable project gallery with categories (All, Web Development, Data Visualization, AI/ML, Education). Features 6 sample projects including a cosmic e-commerce platform, neural network visualizer, quantum computing simulator, bio-luminescent dashboard, AI art generator, and space mission planner. Each project card shows description, technologies, and links to live demo/GitHub.
- Blog: MDX-powered blog with posts on topics like AI in space exploration, quantum computing breakthroughs, and web development trends. Includes reading time estimates, categories, and excerpt previews. Posts are generated from MDX files in
src/content/blog/via a build script. - About Page: Placeholder page for creator information.
- Contact Page: Placeholder page for contact details.
- Navigation: Fixed header with smooth hover animations, active page indicators, and responsive design.
- Interactive Elements: 3D cosmic sphere visualization, particle backgrounds, page transitions, scroll-triggered animations, and accessibility support (respects
prefers-reduced-motion). - Weather Widget: Client-side weather display using geolocation (fallback to Copenhagen), fetching data from OpenWeather API with current temperature, conditions, and 3-day forecast.
- Testimonials: Auto-rotating carousel with navigation controls, star ratings, and company logos.
To get started with Cosmic Nexus, follow these step-by-step instructions:
-
Prerequisites:
- Ensure you have Node.js (version compatible with Next.js 15+) installed on your system.
- Install pnpm package manager globally:
npm install -g pnpm. - Set up a Cloudflare account for deployment.
- Obtain an OpenWeather API key from OpenWeatherMap for weather widget functionality.
-
Clone the Repository:
git clone https://github.com/your-username/cosmic-nexus.git cd cosmic-nexus -
Install Dependencies:
pnpm install -
Environment Setup:
- Create a
.env.localfile in the root directory. - Add your OpenWeather API key:
OPENWEATHER_API_KEY=your_api_key_here.
- Create a
-
Run the Development Server:
pnpm devThe application will be available at
http://localhost:3000.
- Development: Run
pnpm devto start the development server with Turbopack for fast reloading. - Building: Execute
pnpm buildto compile the application (includes runningscripts/generate-posts.jsto convert MDX blog files to JSON). - Linting: Use
pnpm lintto check code quality with ESLint. - Deployment: Run
pnpm deployto build and deploy to Cloudflare Workers using OpenNext. - Preview: Use
pnpm previewto build and preview the production build locally. - Type Generation: Run
pnpm cf-typegento generate TypeScript types for Cloudflare environment bindings.
- Next.js 15.4.6: React framework for server-side rendering, static generation, and API routes.
- React 19.1.0: UI library for building interactive components.
- TypeScript: Type-safe JavaScript for better development experience and error prevention.
- Tailwind CSS v4: Utility-first CSS framework for responsive, cosmic-themed styling.
- Framer Motion: Animation library for smooth transitions, hover effects, and scroll animations.
- Three.js & React Three Fiber: 3D graphics libraries for cosmic sphere and interactive visualizations.
- @tsparticles/react: Particle effects for dynamic backgrounds.
- MDX (@next/mdx, @mdx-js/react): Markdown with JSX for rich blog content rendering.
- SWR: Data fetching library for weather API with caching and revalidation.
- OpenNext (@opennextjs/cloudflare): Tool for deploying Next.js apps to Cloudflare Workers.
- Wrangler: Cloudflare's CLI for managing Workers and deployments.
- Vercel Analytics: Web analytics tracking.
- Web Vitals: Performance monitoring and Core Web Vitals measurement.
- Gray-matter & reading-time: Frontmatter parsing and reading time calculation for blog posts.
- ESLint & Next.js ESLint config: Code linting and quality enforcement.
We welcome contributions to Cosmic Nexus! To contribute:
- Fork the Repository: Create a fork of the project on GitHub.
- Create a Feature Branch:
git checkout -b feature/your-feature-name. - Make Changes: Implement your changes, ensuring code quality and following TypeScript best practices.
- Run Tests and Linting: Execute
pnpm lintand ensure all checks pass. - Commit Changes: Use descriptive commit messages.
- Submit a Pull Request: Push your branch and create a PR with a clear description of changes.
- Report Issues: Use GitHub Issues to report bugs or suggest features, providing detailed information.
Please follow our coding standards: use TypeScript, maintain accessibility, and ensure responsive design.
This project is licensed under the MIT License. See the LICENSE file for details.
- Email: contact@cosmicnexus.dev
- GitHub: https://github.com/your-username/cosmic-nexus
- LinkedIn: https://linkedin.com/in/your-profile
- Website: https://cosmicnexus.dev