diff --git a/.github/copilot-instructions.md b/.github/copilot-instructions.md index 6519c4d..05149cb 100644 --- a/.github/copilot-instructions.md +++ b/.github/copilot-instructions.md @@ -7,8 +7,10 @@ - Pass fucntions as props instead od dispatching events - Mixing old (on:click) and new syntaxes for event handling is not allowed. Use only the onclick syntax - when setting state entity, simply od variable = newValue, do not use setState or similar methods like $state. + - USe $props instead of export let! - Use styling from ".github/styling.md" for any UI components. - Refer to the ".github/core-instructions.md" for the overall structure of the application. - Generate ".github/done.md" file to see what is done and what is not. Check it when you start and finish a task. - Remain consistent in styling and code structure. -- Avoid unncessary iterations. If problems is mostly solved, stop. \ No newline at end of file +- Avoid unncessary iterations. If problems is mostly solved, stop. +- Split big components into subcomponents. Always create smaller subcomponents for better context management later. \ No newline at end of file diff --git a/src/lib/components/PhotoCard.svelte b/src/lib/components/PhotoCard.svelte index d3ad581..d84201c 100644 --- a/src/lib/components/PhotoCard.svelte +++ b/src/lib/components/PhotoCard.svelte @@ -1,90 +1,185 @@ -
{personName}
- {#if isProcessing} -Processing...
- {/if} -
- Drag the crop area to move it, or drag the corner handles to resize.
- The selected area will be used for the member card.
-
- Aspect Ratio: {cropRatio.toFixed(1)}:1 {cropRatio === 1.0 ? '(Square)' : cropRatio === 1.5 ? '(3:2)' : ''}
-