Skip to content

Commit 18ebbb0

Browse files
committed
style: Fix Prettier formatting issues
- Auto-fix formatting in cypress.config.ts, jest.config.js, next.config.js - Fix formatting in postcss.config.js, public/images/README.md, tailwind.config.js - All files now pass Prettier code style checks - Format check now passes: 'All matched files use Prettier code style!'
1 parent e2adc8a commit 18ebbb0

File tree

6 files changed

+56
-48
lines changed

6 files changed

+56
-48
lines changed

cypress.config.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { defineConfig } from 'cypress'
1+
import { defineConfig } from 'cypress';
22

33
export default defineConfig({
44
e2e: {
@@ -24,4 +24,4 @@ export default defineConfig({
2424
},
2525
specPattern: 'cypress/component/**/*.cy.{js,jsx,ts,tsx}',
2626
},
27-
})
27+
});

jest.config.js

Lines changed: 6 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
const nextJest = require('next/jest')
1+
const nextJest = require('next/jest');
22

33
const createJestConfig = nextJest({
44
dir: './',
5-
})
5+
});
66

77
const customJestConfig = {
88
setupFilesAfterEnv: ['<rootDir>/jest.setup.js'],
@@ -32,19 +32,11 @@ const customJestConfig = {
3232
'<rootDir>/hooks/**/__tests__/*.{js,jsx,ts,tsx}',
3333
'<rootDir>/utils/**/__tests__/*.{js,jsx,ts,tsx}',
3434
],
35-
testPathIgnorePatterns: [
36-
'<rootDir>/.next/',
37-
'<rootDir>/node_modules/',
38-
'<rootDir>/cypress/',
39-
],
35+
testPathIgnorePatterns: ['<rootDir>/.next/', '<rootDir>/node_modules/', '<rootDir>/cypress/'],
4036
transform: {
4137
'^.+\\.(js|jsx|ts|tsx)$': ['babel-jest', { presets: ['next/babel'] }],
4238
},
43-
transformIgnorePatterns: [
44-
'/node_modules/',
45-
'^.+\\.module\\.(css|sass|scss)$',
46-
],
47-
}
48-
49-
module.exports = createJestConfig(customJestConfig)
39+
transformIgnorePatterns: ['/node_modules/', '^.+\\.module\\.(css|sass|scss)$'],
40+
};
5041

42+
module.exports = createJestConfig(customJestConfig);

next.config.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ const nextConfig = {
44
poweredByHeader: false,
55
compress: true,
66
generateEtags: false,
7-
}
8-
9-
module.exports = nextConfig
7+
};
108

9+
module.exports = nextConfig;

postcss.config.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,4 @@ module.exports = {
33
tailwindcss: {},
44
autoprefixer: {},
55
},
6-
}
7-
6+
};

public/images/README.md

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,24 +15,28 @@ public/images/
1515
### Required Images for Demos:
1616

1717
#### 1. Baby Steps to Riches 🍼💰
18+
1819
- **File**: `demos/baby-steps.svg` or `demos/baby-steps.png`
1920
- **Style**: Baby footprint, money symbols, or simple growth icon
2021
- **Colors**: Blue to cyan gradient theme
2122
- **Size**: 64x64px (SVG preferred for scalability)
2223

2324
#### 2. Democracy in Action 🗳️🎪
25+
2426
- **File**: `demos/democracy.svg` or `demos/democracy.png`
2527
- **Style**: Voting ballot, multiple people, or consensus symbols
2628
- **Colors**: Green to emerald gradient theme
2729
- **Size**: 64x64px (SVG preferred for scalability)
2830

2931
#### 3. Drama Queen Escrow 👑🎭
32+
3033
- **File**: `demos/drama-queen.svg` or `demos/drama-queen.png`
3134
- **Style**: Crown, theater masks, or dramatic symbols
3235
- **Colors**: Orange to red gradient theme
3336
- **Size**: 64x64px (SVG preferred for scalability)
3437

3538
#### 4. Gig Economy Madness 🛒🎪
39+
3640
- **File**: `demos/gig-economy.svg` or `demos/gig-economy.png`
3741
- **Style**: Task list, marketplace, or gig work symbols
3842
- **Colors**: Purple to pink gradient theme
@@ -43,12 +47,14 @@ public/images/
4347
### Character Assets:
4448

4549
#### Main Character
50+
4651
- **File**: `character/nexus-prime.svg` or `character/nexus-prime.png`
4752
- **Style**: Futuristic holographic entity with Stellar network patterns
4853
- **Colors**: Deep space black, cyan, purple with glowing effects
4954
- **Size**: 128x128px for main avatar, 256x256px for detailed view
5055

5156
#### Character States
57+
5258
- **File**: `character/nexus-prime-connected.svg`
5359
- **Style**: Character with active Stellar network connections
5460
- **Use**: When wallet is connected
@@ -58,19 +64,22 @@ public/images/
5864
- **Use**: When wallet is disconnected
5965

6066
#### Character Elements
67+
6168
- **File**: `character/network-pattern.svg`
6269
- **Style**: Stellar network connection patterns
6370
- **Use**: Background patterns and effects
6471

6572
## 🏷️ Logo & Branding
6673

6774
### Main Logo
75+
6876
- **File**: `logo/stellar-nexus.svg` or `logo/stellar-nexus.png`
6977
- **Style**: STELLAR NEXUS text with Stellar blockchain elements
7078
- **Colors**: Cyan to purple gradient
7179
- **Size**: 200x80px (SVG preferred)
7280

7381
### Logo Variations
82+
7483
- **File**: `logo/stellar-nexus-white.svg`
7584
- **Style**: White version for dark backgrounds
7685
- **Use**: Header and main navigation
@@ -83,6 +92,7 @@ public/images/
8392
## 🔧 General Icons
8493

8594
### UI Icons
95+
8696
- **File**: `icons/wallet.svg`
8797
- **Style**: Wallet or key icon
8898
- **Use**: Wallet connection buttons
@@ -106,17 +116,20 @@ public/images/
106116
## 🎨 Design Guidelines
107117

108118
### Image Formats
119+
109120
- **SVG**: Preferred for icons and logos (scalable, small file size)
110121
- **PNG**: Use for complex images with transparency
111122
- **WebP**: Modern format for photos and complex graphics
112123

113124
### Color Schemes
125+
114126
- **Primary**: Cyan (#06b6d4) to Purple (#8b5cf6)
115127
- **Secondary**: Green (#10b981) to Emerald (#059669)
116128
- **Accent**: Orange (#f97316) to Red (#ef4444)
117129
- **Neutral**: Slate (#0f172a) to Gray (#6b7280)
118130

119131
### Style Guidelines
132+
120133
- **Futuristic**: Use sharp edges, glowing effects, and modern shapes
121134
- **Stellar Theme**: Incorporate network patterns, nodes, and connection lines
122135
- **Professional**: Clean, readable, and consistent with the project theme
@@ -125,12 +138,14 @@ public/images/
125138
## 📱 Responsive Considerations
126139

127140
### Icon Sizes
141+
128142
- **Mobile**: 32x32px minimum
129143
- **Tablet**: 48x48px
130144
- **Desktop**: 64x64px
131145
- **High DPI**: Provide 2x versions for retina displays
132146

133147
### File Naming Convention
148+
134149
```
135150
{category}/{name}-{variant}.{format}
136151
Examples:
@@ -143,11 +158,13 @@ Examples:
143158
## 🚀 Implementation Notes
144159

145160
### Next.js Image Optimization
161+
146162
- Use `next/image` component for automatic optimization
147163
- Place images in `public/images/` for static serving
148164
- Consider using `next/image` with `loader: 'default'` for dynamic images
149165

150166
### Performance Tips
167+
151168
- Optimize SVG files (remove unnecessary metadata)
152169
- Compress PNG files using tools like TinyPNG
153170
- Use WebP format for modern browsers
@@ -163,5 +180,5 @@ Examples:
163180

164181
---
165182

166-
**Note**: This guide should be updated as new image assets are added to the project.
167-
183+
**Note**: This guide should be updated as new image assets are added to the
184+
project.

tailwind.config.js

Lines changed: 26 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -89,15 +89,15 @@ module.exports = {
8989
},
9090
animation: {
9191
// Only keeping animations that are actually used
92-
'fadeIn': 'fadeIn 0.3s ease-out',
93-
'slideInUp': 'slideInUp 0.6s ease-out',
94-
'fadeInUp': 'fadeInUp 0.6s ease-out forwards',
95-
'float': 'float 3s ease-in-out infinite',
96-
'shimmer': 'shimmer 2s infinite',
97-
'epicGlow': 'epicGlow 3s ease-in-out infinite',
98-
'epicTextReveal': 'epicTextReveal 2s ease-out',
99-
'epicFloatingParticles': 'epicFloatingParticles 3s ease-in-out infinite',
100-
'rotatingNexus': 'rotatingNexus 2s linear infinite',
92+
fadeIn: 'fadeIn 0.3s ease-out',
93+
slideInUp: 'slideInUp 0.6s ease-out',
94+
fadeInUp: 'fadeInUp 0.6s ease-out forwards',
95+
float: 'float 3s ease-in-out infinite',
96+
shimmer: 'shimmer 2s infinite',
97+
epicGlow: 'epicGlow 3s ease-in-out infinite',
98+
epicTextReveal: 'epicTextReveal 2s ease-out',
99+
epicFloatingParticles: 'epicFloatingParticles 3s ease-in-out infinite',
100+
rotatingNexus: 'rotatingNexus 2s linear infinite',
101101
},
102102
keyframes: {
103103
fadeIn: {
@@ -122,10 +122,12 @@ module.exports = {
122122
},
123123
epicGlow: {
124124
'0%, 100%': {
125-
textShadow: '0 0 5px #0ea5e9, 0 0 10px #0ea5e9, 0 0 15px #0ea5e9, 0 0 20px #0ea5e9, 0 0 25px #0ea5e9, 0 0 30px #0ea5e9',
125+
textShadow:
126+
'0 0 5px #0ea5e9, 0 0 10px #0ea5e9, 0 0 15px #0ea5e9, 0 0 20px #0ea5e9, 0 0 25px #0ea5e9, 0 0 30px #0ea5e9',
126127
},
127128
'50%': {
128-
textShadow: '0 0 10px #0ea5e9, 0 0 20px #0ea5e9, 0 0 30px #0ea5e9, 0 0 40px #0ea5e9, 0 0 50px #0ea5e9, 0 0 60px #0ea5e9',
129+
textShadow:
130+
'0 0 10px #0ea5e9, 0 0 20px #0ea5e9, 0 0 30px #0ea5e9, 0 0 40px #0ea5e9, 0 0 50px #0ea5e9, 0 0 60px #0ea5e9',
129131
},
130132
},
131133
epicTextReveal: {
@@ -145,32 +147,31 @@ module.exports = {
145147
},
146148
},
147149
spacing: {
148-
'xs': '0.25rem',
149-
'sm': '0.5rem',
150-
'md': '1rem',
151-
'lg': '1.5rem',
152-
'xl': '2rem',
150+
xs: '0.25rem',
151+
sm: '0.5rem',
152+
md: '1rem',
153+
lg: '1.5rem',
154+
xl: '2rem',
153155
'2xl': '3rem',
154156
'3xl': '4rem',
155157
'4xl': '6rem',
156158
},
157159
borderRadius: {
158-
'sm': '0.125rem',
159-
'md': '0.375rem',
160-
'lg': '0.5rem',
161-
'xl': '0.75rem',
160+
sm: '0.125rem',
161+
md: '0.375rem',
162+
lg: '0.5rem',
163+
xl: '0.75rem',
162164
'2xl': '1rem',
163165
'3xl': '1.5rem',
164166
},
165167
boxShadow: {
166-
'glow': '0 0 20px rgba(14, 165, 233, 0.5)',
167-
'epic': '0 0 30px rgba(14, 165, 233, 0.8)',
168+
glow: '0 0 20px rgba(14, 165, 233, 0.5)',
169+
epic: '0 0 30px rgba(14, 165, 233, 0.8)',
168170
},
169171
zIndex: {
170-
'epic': '9999',
172+
epic: '9999',
171173
},
172174
},
173175
},
174176
plugins: [],
175-
}
176-
177+
};

0 commit comments

Comments
 (0)