Repository navigation
Expand file tree
/
Copy pathtypes.ts
More file actions
82 lines (74 loc) · 2.7 KB
/
Copy pathtypes.ts
File metadata and controls
82 lines (74 loc) · 2.7 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
export interface BannerConfig {
title: string;
subtitle: string;
repoUrl: string;
author: string;
theme: string;
primaryColor: string;
secondaryColor: string;
textColor: string;
backgroundImage: string | null;
logoImage: string | null;
logoSize: number;
logoPosition: { x: number; y: number };
layout: BannerLayout;
badges: BadgeItem[];
badgeStyle: 'for-the-badge' | 'flat' | 'flat-square' | 'plastic' | 'social';
badgeAlignment: 'left' | 'center' | 'right';
// PRO fields
fontFamily: string;
pattern: 'none' | 'dots' | 'grid' | 'waves';
patternOpacity: number;
gradientEnabled: boolean;
textPosition: { x: number; y: number };
techIcons: string[];
// Text Effects
textOutlineColor: string;
textOutlineWidth: number;
textShadowBlur: number;
textShadowColor: string;
textGlowEnabled: boolean;
textGlowColor: string;
textGlowBlur: number;
// Background Filters
bgBlur: number;
bgBrightness: number;
bgContrast: number;
}
export interface BannerPreset {
id: string;
name: string;
icon: string;
config: Partial<BannerConfig>;
}
export type BannerLayout = 'centered' | 'split' | 'minimal' | 'modern';
export type BadgeType = 'stars' | 'forks' | 'license' | 'version' | 'issues' | 'pull-requests' | 'last-commit' | 'contributors' | 'watchers' | 'repo-size' | 'top-lang' | 'workflow-status' | 'commit-activity' | 'release-date' | 'hits' | 'custom' | 'twitter' | 'linkedin' | 'discord' | 'youtube' | 'twitch' | 'instagram' | 'sponsors' | 'facebook' | 'reddit' | 'medium' | 'stackoverflow' | 'tiktok' | 'pinterest' | 'telegram' | 'whatsapp' | 'slack' | 'email' | 'website' | 'behance' | 'dribbble' | 'codepen' | 'patreon' | 'kofi' | 'buymeacoffee' | 'gitlab' | 'bitbucket' | 'npm' | 'docker' | 'devto' | 'hashnode' | 'hackerrank' | 'leetcode' | 'react' | 'nextjs' | 'typescript' | 'tailwindcss' | 'nodejs' | 'python' | 'supabase' | 'vercel' | 'stars-month' | 'forks-month' | 'closed-issues' | 'open-prs' | 'closed-prs' | 'build-status' | 'branches' | 'releases' | 'dependabot' | 'codeql' | 'security-alerts' | 'discussions' | 'downloads' | 'bundle-size' | 'tests-passing' | 'uptime' | 'dependencies' | 'custom-shields';
export interface BadgeItem {
id: string;
label: string;
value: string;
color: string;
type: BadgeType;
socialHandle?: string;
}
export interface RepoAnalysis {
name: string;
description: string;
techStack: string[];
slogan: string;
suggestedColors: {
primary: string;
secondary: string;
};
}
export interface SocialCopy {
hype: string;
professional: string;
minimal: string;
}
export enum BannerSize {
OPEN_GRAPH = '1200x630',
SOCIAL_PREVIEW = '1280x640',
PROFILE_README = '1500x500',
REPOSITORY_BANNER = '2000x600'
}