feat(brand-component): Brand Header (logo + appname + tagline) [tsc:fail]
This commit is contained in:
parent
445f984ffe
commit
935df90393
@ -1,8 +1,9 @@
|
||||
{
|
||||
"completed_features": [],
|
||||
"current_feature": "list-item-component",
|
||||
"current_feature": "brand-component",
|
||||
"started_at": "2026-05-23T10:58:29.718105",
|
||||
"attempted_features": [
|
||||
"notice-component"
|
||||
"notice-component",
|
||||
"list-item-component"
|
||||
]
|
||||
}
|
||||
@ -4861,3 +4861,21 @@ src/index.ts(27,25): error TS2769: No overload matches this call.
|
||||
Overload 1 of 3, '(plugin: FastifyPluginCallback<{ limits: { fileSize: number; }; }, RawServerDefault, FastifyTypeProvider, FastifyBaseLogger>, opts?: FastifyRegisterOptions<...> | undefined): FastifyInstance<...> & PromiseLike<...>', gave the following error.
|
||||
Argument of type 'Promise<FastifyMultipartPlugin>' is not assignable to parameter of type 'FastifyPluginCallback<{ limits: { fileSize: number; }; }, RawServerDefault, FastifyTypeProvider, FastifyBaseLogger>'.
|
||||
Type 'Promise<FastifyMultipartPlugin>' provides no match for the signature '(instance: FastifyInstance<RawServerDefault, IncomingMessage, ServerResponse<IncomingMessage>,
|
||||
- `10:58:49` **INFO** Committed feature list-item-component
|
||||
- `10:58:49` **INFO** Pushed: rc=0
|
||||
|
||||
## Phase-3 Feature: brand-component (2026-05-23 10:58:49)
|
||||
|
||||
- `10:58:49` **INFO** Description: Brand Header (logo + appname + tagline)
|
||||
- `10:58:49` **INFO** Generating apps/web/src/components/Brand.tsx (Brand-Component. Props: variant?: 'horizontal'|'vertical' (default hor…)
|
||||
- `10:59:06` **INFO** wrote 1596 chars in 16.6s (attempt 1)
|
||||
- `10:59:06` **INFO** Running tsc --noEmit on api…
|
||||
- `10:59:07` **WARN** tsc errors:
|
||||
src/db/schema.ts(37,14): error TS7022: 'customers' implicitly has type 'any' because it does not have a type annotation and is referenced directly or indirectly in its own initializer.
|
||||
src/db/schema.ts(45,59): error TS7024: Function implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions.
|
||||
src/db/schema.ts(49,14): error TS7022: 'projects' implicitly has type 'any' because it does not have a type annotation and is referenced directly or indirectly in its own initializer.
|
||||
src/db/schema.ts(53,56): error TS7024: Function implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions.
|
||||
src/index.ts(27,25): error TS2769: No overload matches this call.
|
||||
Overload 1 of 3, '(plugin: FastifyPluginCallback<{ limits: { fileSize: number; }; }, RawServerDefault, FastifyTypeProvider, FastifyBaseLogger>, opts?: FastifyRegisterOptions<...> | undefined): FastifyInstance<...> & PromiseLike<...>', gave the following error.
|
||||
Argument of type 'Promise<FastifyMultipartPlugin>' is not assignable to parameter of type 'FastifyPluginCallback<{ limits: { fileSize: number; }; }, RawServerDefault, FastifyTypeProvider, FastifyBaseLogger>'.
|
||||
Type 'Promise<FastifyMultipartPlugin>' provides no match for the signature '(instance: FastifyInstance<RawServerDefault, IncomingMessage, ServerResponse<IncomingMessage>,
|
||||
|
||||
50
apps/web/src/components/Brand.tsx
Normal file
50
apps/web/src/components/Brand.tsx
Normal file
@ -0,0 +1,50 @@
|
||||
import React from 'react';
|
||||
|
||||
interface BrandProps {
|
||||
variant?: 'horizontal' | 'vertical';
|
||||
showTagline?: boolean;
|
||||
className?: string;
|
||||
}
|
||||
|
||||
const FlameIcon = ({ className }: { className?: string }) => (
|
||||
<svg
|
||||
viewBox="0 0 24 24"
|
||||
fill="none"
|
||||
stroke="currentColor"
|
||||
strokeWidth="2"
|
||||
strokeLinecap="round"
|
||||
strokeLinejoin="round"
|
||||
className={className}
|
||||
>
|
||||
<path d="M8.5 14.5A2.5 2.5 0 0 0 11 12c0-1.38-.5-2-1-3-1.07 2.5-4 2.63-4 5.5z" />
|
||||
<path d="M15.5 14.5A2.5 2.5 0 0 0 18 12c0-1.38-.5-2-1-3-1.07 2.5-4 2.63-4 5.5z" />
|
||||
<path d="M12 17c-2.5 0-5-1-5-4 0-2 2-3 5-3s5 1 5 3c0 3-2.5 4-5 4z" />
|
||||
<path d="M12 7c-1.5 0-3-1-3-3s1.5-3 3-3 3 1 3 3-1.5 3-3 3z" />
|
||||
</svg>
|
||||
);
|
||||
|
||||
export default function Brand({
|
||||
variant = 'horizontal',
|
||||
showTagline = false,
|
||||
className = ''
|
||||
}: BrandProps) {
|
||||
const isVertical = variant === 'vertical';
|
||||
|
||||
return (
|
||||
<div className={`flex ${isVertical ? 'flex-col items-center text-center' : 'flex-row items-center gap-3'} ${className}`}>
|
||||
<FlameIcon className={`text-orange-500 ${isVertical ? 'w-12 h-12' : 'w-8 h-8'}`} />
|
||||
|
||||
<div className={`flex ${isVertical ? 'flex-col items-center' : 'flex-row items-baseline gap-2'}`}>
|
||||
<span className={`font-bold tracking-tight text-slate-900 dark:text-white ${isVertical ? 'text-2xl' : 'text-xl'}`}>
|
||||
EmberClone
|
||||
</span>
|
||||
|
||||
{showTagline && (
|
||||
<span className="text-sm text-slate-500 dark:text-slate-400 font-medium">
|
||||
Zeiterfassung neu gedacht
|
||||
</span>
|
||||
)}
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user