Landing site for OSI Model Simulator — the marketing website for the OSI Model Simulator app.
Features • Installation • API • Support
- About
- Features
- Technology Stack
- Prerequisites
- Installation
- Environment variables
- Running the Application
- Building for Production
- API
- Email templates
- Project Structure
- Contributing
- Support
- License
- About Roboticela
This repository is the web frontend for OSI Model Simulator:
- Landing page — Marketing site with hero, features, how it works, demo, downloads, comparison, FAQ, and about.
- Support page —
/supportwith a contact form (full name, email, message); submissions are sent to you via SMTP using a configurable HTML email template. - Contact API —
POST /api/contactfor the support form; sends email via SMTP using the template inEmailStructures/support-contact.html.
The full OSI Model Simulator product is an educational app (Tauri + React) that visualizes how messages travel through the seven OSI layers. This Next.js app serves the public website and support form with CORS enabled for the app domain.
- Proprietary — © Roboticela. All rights reserved.
- Next.js — Fast, modern React framework with API routes
- CORS-ready — Configured for
app.osi-model-simulator.roboticela.comand localhost - Modern UI — Tailwind CSS, Framer Motion, light/dark theme
- Hero & value proposition — Clear messaging and call-to-action for the OSI Model Simulator
- Features & comparison — Simulator capabilities, protocols, and transmission media
- Downloads & platforms — Links to desktop app and protocol/platform info
- Support page —
/supportcontact form (full name, email, message) with success/error feedback - FAQ, stats, use cases — Trust and common questions
- Responsive & themed — Works on all devices with light/dark mode
POST /api/contact— Accepts support form data; sends email via SMTP using the HTML template inEmailStructures/support-contact.html- CORS — Allows
https://app.osi-model-simulator.roboticela.com,http://app.osi-model-simulator.roboticela.com, and localhost - Validation — Required fields and SMTP config (contact)
| Layer | Tech |
|---|---|
| Framework | Next.js 16 (App Router) |
| UI | React 19, Tailwind CSS 4 |
| Animation | Framer Motion 12 |
| Icons | Lucide React, React Icons |
| Language | TypeScript 5 |
| Contact / SMTP | nodemailer |
- Linting — ESLint + eslint-config-next
- Package manager — npm
- Node.js (v20 or higher) — Download
- npm — Comes with Node.js
No Rust or Tauri required; this repo is the Next.js web app only.
git clone https://github.com/Roboticela/OSI-Model-Simulator-Frontend.git
cd OSI-Model-Simulator-Frontendnpm installFor the Support contact form to send email, copy .env.example to .env.local and set:
| Variable | Description |
|---|---|
SMTP_HOST |
SMTP server host (e.g. smtp.gmail.com) |
SMTP_PORT |
Port (e.g. 587) |
SMTP_SECURE |
true for 465, false for 587 |
SMTP_USER |
SMTP username |
SMTP_PASS or SMTP_PASSWORD |
SMTP password |
SMTP_FROM |
Sender address (e.g. OSI Model Simulator Support <noreply@example.com>) |
CONTACT_EMAIL |
Where support messages are delivered |
Without these, the Support page form will still render but POST /api/contact will return a configuration error.
npm run devThen open http://localhost:3000.
npm run build
npm run startnpm run buildOutput is in .next/. Deploy to Vercel, Node, or any Next.js-compatible host.
npm run lintSends a support/contact message via SMTP. Used by the Support page.
Request
- Method:
POST - Content-Type:
application/json - Body:
{
"fullName": "Jane Doe",
"email": "jane@example.com",
"message": "Your message here."
}Response
- Success (200):
{ "success": true } - Error (4xx/5xx): JSON
{ "error": "...", "message": "..." }
CORS: Allowed origins: https://app.osi-model-simulator.roboticela.com, http://app.osi-model-simulator.roboticela.com, http://localhost:3000, http://127.0.0.1:3000. Email is sent using the HTML template in EmailStructures/support-contact.html (placeholders {{fullName}}, {{email}}, {{message}}).
Support form emails use HTML from the EmailStructures folder:
| File | Purpose |
|---|---|
EmailStructures/support-contact.html |
Template for messages submitted via the Support page. Placeholders: {{fullName}}, {{email}}, {{message}}. |
Edit the HTML to change layout, branding, or copy. The API replaces the placeholders with escaped user input when sending.
OSI-Model-Simulator-Frontend/
├── app/
│ ├── api/
│ │ └── contact/
│ │ └── route.ts # Support form → SMTP (uses EmailStructures)
│ ├── globals.css
│ ├── layout.tsx
│ ├── page.tsx # Imports from @/components
│ └── support/
│ ├── layout.tsx
│ └── page.tsx # Support / contact form (imports @/components)
├── assets/ # Static assets (e.g. CompanyLogo.png)
├── components/ # Page sections & UI (outside app; use @/components)
│ ├── About.tsx
│ ├── Comparison.tsx
│ ├── Demo.tsx
│ ├── Downloads.tsx
│ ├── FAQ.tsx
│ ├── Features.tsx
│ ├── Footer.tsx
│ ├── Hero.tsx
│ ├── HowItWorks.tsx
│ ├── Navbar.tsx
│ ├── Platforms.tsx
│ ├── Stats.tsx
│ ├── SystemRequirements.tsx
│ ├── TechnologyStack.tsx
│ ├── ThemeToggle.tsx
│ ├── UseCases.tsx
│ └── WhyChoose.tsx
├── EmailStructures/
│ └── support-contact.html # HTML email template for support messages
├── public/
│ ├── Favicon.svg
│ ├── icon.ico
│ ├── robots.txt
│ └── sitemap.xml
├── next.config.ts
├── package.json
├── tsconfig.json
└── README.md
Contributions are welcome.
- Fork the repository
- Create a branch:
git checkout -b feature/your-featureorfix/your-fix - Commit with clear messages (e.g.
Add: ...,Fix: ...,Docs: ...) - Push and open a Pull Request
Please follow existing code style (TypeScript, Tailwind, React/Next.js conventions).
- Support form: /support — submit questions or feedback (requires SMTP env vars).
- Issues: GitHub Issues
- OSI Model Simulator app: app.osi-model-simulator.roboticela.com
- Roboticela: github.com/Roboticela
This project is proprietary to Roboticela. All rights reserved.
- Unauthorized copying, modification, distribution, or use is prohibited.
- For licensing inquiries, contact Roboticela.
See LICENSE for full terms.
- GitHub: github.com/Roboticela
- OSI Model Simulator: Roboticela OSI Model Simulator (desktop app)
- This repo: Web frontend for OSI Model Simulator (proprietary)
Built with ❤️ by Roboticela
© Roboticela. All rights reserved.
