@ronantakizawa/airpln-ui
v1.1.2
Published
A collection of airline-themed UI web components
Maintainers
Readme
Airpln UI Kit
https://ronantakizawa.github.io/airpln-ui/
A sleek, modern UI component library designed specifically for airline and travel-related websites. This kit provides interactive, aviation-themed UI elements with smooth animations and a professional aesthetic.
Installation
Via NPM
npm install @ronantakizawa/airpln-uiVia CDN
<script type="module">
import { BurstButton, ProgressButton, OrbitLoading, CloudLoading }
from 'https://cdn.jsdelivr.net/gh/ronantakizawa/airpln-ui/airline-components.js';
</script>Usage
In HTML
<!-- Burst Button -->
<burst-button>Click Me!</burst-button>
<!-- Progress Button -->
<progress-button>Book Flight</progress-button>
<!-- Orbit Loading Animation -->
<orbit-loading></orbit-loading>
<!-- Cloud Loading Animation -->
<cloud-loading></cloud-loading>In React/JSX
import '@ronantakizawa/airpln-ui'
function App() {
return (
<div>
{/* Burst Button */}
<burst-button>Click Me!</burst-button>
{/* Progress Button */}
<progress-button>Book Flight</progress-button>
{/* Orbit Loading */}
<orbit-loading></orbit-loading>
{/* Cloud Loading */}
<cloud-loading></cloud-loading>
</div>
)
}In TypeScript React
If you're using TypeScript, add these type declarations to your project:
declare namespace JSX {
interface IntrinsicElements {
'burst-button': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>;
'progress-button': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>;
'orbit-loading': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>;
'cloud-loading': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>;
}
}Available Components
BurstButton
An interactive button that creates a burst of airplane animations when clicked.
ProgressButton
A button with a smooth airplane animation that transitions into a checkmark on completion.
OrbitLoading
A loading indicator featuring an orbiting airplane animation.
CloudLoading
A scenic loading animation with floating clouds and a flying airplane.
OrbitLoadingCircle
A circular progress indicator with a rotating airplane along its path.
FlightMapGlobe
An interactive 3D globe visualization for displaying flight paths and routes.
PlaneBackground
A decorative background component featuring animated flying planes.
Browser Support
- Chrome (latest)
- Firefox (latest)
- Safari (latest)
- Edge (latest)
Customization
You can customize the components using CSS custom properties:
/* Example customization */
burst-button {
--button-background: linear-gradient(135deg, #38b2ac, #319795);
--button-hover-transform: scale(1.05);
}
progress-button {
--button-background: #2b6cb0;
--success-background: #2f855a;
}