import type { Meta, StoryObj } from '@storybook/react';
import { View, Text, StyleSheet } from 'react-native';
const Welcome = () => (
🎉 Adaptive Desktop React Native
Storybook is working!
This is the component library for building adaptive desktop layouts.
Features:
🏗️ Viewport-Based Layout System
📱 Touch-First Design
📌 Pinned Panel System
🎯 Developer Freedom
⚡ Performance Optimized
🎨 Professional Interface
Browse the stories in the sidebar to explore the components!
);
const styles = StyleSheet.create({
container: {
flex: 1,
backgroundColor: '#1e1e1e',
padding: 20,
justifyContent: 'center',
alignItems: 'center',
},
title: {
fontSize: 28,
fontWeight: 'bold',
color: '#ffffff',
textAlign: 'center',
marginBottom: 10,
},
subtitle: {
fontSize: 20,
color: '#007ACC',
textAlign: 'center',
marginBottom: 20,
},
description: {
fontSize: 16,
color: '#cccccc',
textAlign: 'center',
marginBottom: 30,
lineHeight: 24,
maxWidth: 400,
},
features: {
marginBottom: 30,
},
featureTitle: {
fontSize: 18,
fontWeight: 'bold',
color: '#ffffff',
marginBottom: 10,
textAlign: 'center',
},
feature: {
fontSize: 14,
color: '#d4d4d4',
marginBottom: 5,
textAlign: 'center',
},
note: {
fontSize: 14,
color: '#888888',
textAlign: 'center',
fontStyle: 'italic',
},
});
const meta: Meta = {
title: 'Welcome',
component: Welcome,
parameters: {
layout: 'fullscreen',
},
};
export default meta;
type Story = StoryObj;
export const Default: Story = {};