refactor: style login page #80
No reviewers
Labels
No labels
Compat/Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Won't Fix
Review needed
Status
Abandoned
Status
Blocked
Status
Need More Info
No milestone
No project
No assignees
3 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: DHBW-WE/MeetUp#80
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "refactor/70-style_login_page"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
refactor/70-style_login_pageto refactor: style login pageden
WIP
commit vielleicht noch umbenennen oder mit einem anderen commit squashen. Finde das sonst irgendwie unschön@ -0,0 +4,4 @@
This download contains Comfortaa as both a variable font and static fonts.
Comfortaa is a variable font with this axis:
wght
hatte einen grund, das die datei
wght
und nichtweight
im namen hatte xD@ -0,0 +15,4 @@
'bg-secondary text-text-alt shadow-xs hover:bg-hover-secondary active:bg-active-secondary',
outline:
'border-2 border-primary bg-transparent text-text shadow-xs hover:bg-primary hover:border-neutral-000 hover:border-1.5 hover:text-neutral-000 active:bg-active-primary',
/*destructive:
was ist mit dem destructive style? Soll der raus? Dann würde ich den ganz raus löschen.
@ -0,0 +62,4 @@
return null;
}
console.log(colorType, logoType, theme);
wieso loggen wir immer, welches logo geladen wird?
@ -0,0 +108,4 @@
};
// Match the varName with the Logo-Asset name and store it in "logoVar"
const logoVar = logoAssets[varName as keyof typeof logoAssets];
das hier geht auch etwas schöner, indem man varName oben
as const
definiert und der theme variable sagt, dass sie vom typTheme
ist.weiß grad spontan nicht, was du meinst; dafür bin ich zu wenig in TS drin
wenn du statt
varName
alsdefinierst, erkennt typescript alle möglichen kombinationen der variable automatisch und du brauchst dann bei der logoVar keinen typecast mehr (
const logoVar = logoAssets[varName]
). Musst das das ganze aber funktioniert ihm noch mitteilen, das theme auch vom typenTheme
ist.mit
würde er dann sogar fehler werfen, wenn eine kombination kein logo asset hat.
@ -0,0 +129,4 @@
className={className}
width={width}
height={height}
// onError={handleImageError}
was ist mit dem error handling hier?
@ -44,0 +39,4 @@
Login
</Button>
<Button type='submit' variant='outline'>
Sign Up
Was genau soll der sign up button hier eigentlich als aktion machen? Soll der dann auf eine andere Seite führen?
df9066df6c
to49b3869d7b