All checks were successful
Build / build (push) Successful in 1m20s
Major refactoring of the UI layer to use Svelte components: - Replace inline HTML with modular Svelte components - Add authentication system with UserProfile component - Implement navigation store for view management - Create comprehensive settings and controls screens - Add level editor with JSON validation - Implement progression tracking system - Update level configurations and base station model 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
22 lines
453 B
Svelte
22 lines
453 B
Svelte
<script lang="ts">
|
|
export let variant: 'primary' | 'secondary' | 'success' | 'danger' = 'primary';
|
|
export let disabled = false;
|
|
export let type: 'button' | 'submit' | 'reset' = 'button';
|
|
|
|
const className = `btn-${variant}`;
|
|
</script>
|
|
|
|
<button
|
|
class={className}
|
|
{disabled}
|
|
{type}
|
|
on:click
|
|
>
|
|
<slot />
|
|
</button>
|
|
|
|
<style>
|
|
/* Inherits styles from global styles.css */
|
|
/* btn-primary, btn-secondary, etc. are already defined */
|
|
</style>
|