orientation-control Svelte Themes

Orientation Control

📱 A simple web application built with Svelte, TypeScript, and Vite that demonstrates controlling and displaying device screen orientation. The project provides an interactive UI to switch between landscape and portrait orientations.

Orientation Control

A simple web application built with Svelte, TypeScript, and Vite that demonstrates controlling and displaying device screen orientation. The project provides an interactive UI to switch between landscape and portrait orientations. Now with PWA (Progressive Web App) support: install the app on your device and use it offline with a native-like fullscreen experience.

Features

  • Switch between landscape and portrait screen orientations using browser APIs.
  • Display the current orientation in real time.
  • Built using Svelte, TypeScript, and Vite.
  • PWA support: Installable and works offline with a fullscreen experience.

Getting Started

Prerequisites

  • Node.js v20
  • Bun (for dependency management and running scripts)

Setup

  1. Clone the repository:

    git clone https://github.com/femincan/orientation-control.git
    cd orientation-control
    
  2. Install dependencies:

    bun install
    
  3. Start the development server:

    bun run dev
    
  4. Open your browser to the displayed local address to use the app.

License

This project is licensed under the MIT License. See LICENSE for details.

Top categories

Loading Svelte Themes