mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-18 09:49:40 +02:00
Move inactive projects out of active workspace: - bauntown (community website) - maerchenzauber (AI story generation) - memoro (voice memo app) - news (news aggregation) - nutriphi (nutrition tracking) - reader (reading app) - uload (URL shortener) - wisekeep (AI wisdom extraction) Update CLAUDE.md documentation: - Add presi to active projects - Document archived projects section - Update workspace configuration Archived apps can be re-activated by moving back to apps/ 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
73 lines
1.9 KiB
TypeScript
73 lines
1.9 KiB
TypeScript
import React from 'react';
|
|
import { View, StyleSheet } from 'react-native';
|
|
import { useTheme } from '~/features/theme/ThemeProvider';
|
|
import {
|
|
getSkeletonColor,
|
|
skeletonBase,
|
|
skeletonCircle,
|
|
skeletonBox,
|
|
skeletonRow,
|
|
skeletonSpacing,
|
|
} from '../utils/skeletonStyles';
|
|
import { SkeletonAnimation } from '../utils/SkeletonAnimation';
|
|
|
|
export const AudioPlayerSkeleton: React.FC = () => {
|
|
const { colors, isDark } = useTheme();
|
|
const skeletonColor = getSkeletonColor(isDark, colors);
|
|
|
|
return (
|
|
<SkeletonAnimation style={styles.container}>
|
|
<View
|
|
style={[styles.playerCard, { backgroundColor: colors.surface, borderColor: colors.border }]}
|
|
>
|
|
<View style={[skeletonRow, styles.controls]}>
|
|
<View style={[skeletonBase, skeletonCircle(48), { backgroundColor: skeletonColor }]} />
|
|
<View style={styles.progressContainer}>
|
|
<View
|
|
style={[skeletonBase, skeletonBox('100%', 4), { backgroundColor: skeletonColor }]}
|
|
/>
|
|
<View style={[skeletonRow, styles.timeRow]}>
|
|
<View
|
|
style={[skeletonBase, skeletonBox(40, 12), { backgroundColor: skeletonColor }]}
|
|
/>
|
|
<View style={styles.spacer} />
|
|
<View
|
|
style={[skeletonBase, skeletonBox(40, 12), { backgroundColor: skeletonColor }]}
|
|
/>
|
|
</View>
|
|
</View>
|
|
</View>
|
|
</View>
|
|
</SkeletonAnimation>
|
|
);
|
|
};
|
|
|
|
const styles = StyleSheet.create({
|
|
container: {
|
|
paddingHorizontal: 20, // Same as audioPlayerContainer
|
|
marginBottom: 20, // Same as audioPlayerContainer
|
|
},
|
|
playerCard: {
|
|
borderRadius: 12,
|
|
borderWidth: 1,
|
|
padding: 16,
|
|
shadowColor: '#000',
|
|
shadowOffset: { width: 0, height: 1 },
|
|
shadowOpacity: 0.05,
|
|
shadowRadius: 2,
|
|
elevation: 2,
|
|
},
|
|
controls: {
|
|
gap: skeletonSpacing.md,
|
|
},
|
|
progressContainer: {
|
|
flex: 1,
|
|
gap: skeletonSpacing.xs,
|
|
},
|
|
timeRow: {
|
|
justifyContent: 'space-between',
|
|
},
|
|
spacer: {
|
|
flex: 1,
|
|
},
|
|
});
|