Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat: add sewing project on main page #8 #9

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

valeriafurin
Copy link
Owner

  • Adding Container Component that centeres the page (like a main layout component)
  • Adding biome and replacing eslint
  • Adding ability to create "Sewing Projects" folder

@valeriafurin valeriafurin added this to the Increment #1 milestone Aug 26, 2024
@valeriafurin valeriafurin self-assigned this Aug 26, 2024
@@ -0,0 +1,21 @@
// biome-ignore lint/style/useImportType: <explanation>
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Warum der ignore hier? Den Lint sollte Biome dir eigtl. automatisch fixen können.

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Noch ein Überbleibsel bevor ich biome im Projekt installiert hatte. Ist jetzt. raus :)

@@ -0,0 +1,21 @@
// biome-ignore lint/style/useImportType: <explanation>
import React from 'react';
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IIRC brauchst du den Import gar nicht, wenn du React. nur für Typing verwendest.

align-items: center;
height: 100vh;
width: 100vw;
box-sizing: border-box;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Das ist besser in einem global Stylesheet hinterlegt:

* {    box-sizing: border-box; }

package.json Outdated
"@types/react": "^18.3.3",
"@types/react-dom": "^18.3.0",
"@vitejs/plugin-react": "^4.3.1",
"eslint": "^9.9.0",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Die eslint-* deps brauchst du nicht mehr, oder?

padding: 20px;
`;

export const CenteredLayout: React.FC<CenteredLayoutProps> = ({ children }) => {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Du brauchst die Komponente hier nicht explizit zu typen:

export function CenteredLayout({ children }: Props) {
    return <StyledContainer>{children}</StyledContainer>;
}

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Kannst du mir erklären was genau der Unterschied ist?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Das hier brauchst du nicht:React.FC<CenteredLayoutProps>, das inferred Typescript dir.

@valeriafurin valeriafurin linked an issue Aug 27, 2024 that may be closed by this pull request
@valeriafurin valeriafurin changed the title Draft: Feat: add sewing project on main page #8 Feat: add sewing project on main page #8 Sep 12, 2024
@valeriafurin valeriafurin marked this pull request as ready for review September 12, 2024 20:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add "Sewing Project" on Main Page
2 participants