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

KB-85 Main and other static pages #335

Merged
merged 10 commits into from
Dec 24, 2024
Merged

KB-85 Main and other static pages #335

merged 10 commits into from
Dec 24, 2024

Conversation

niravzi
Copy link
Collaborator

@niravzi niravzi commented Dec 17, 2024

No description provided.

@niravzi niravzi requested a review from Markusplay December 17, 2024 13:00
</Paragraph>
</div>
<div className="hidden grow basis-0 xl:block">
<Image src="/images/Saly-10.png" width={482} height={422} alt="saly" className="he-full w-full" />
Copy link
Collaborator

Choose a reason for hiding this comment

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

The quality of image will be not that good by default. Set quality=100.
Checkout https://nextjs.org/docs/pages/api-reference/components/image#quality

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This is just a temporary dummy picture, but if you insist...

Copy link
Collaborator

Choose a reason for hiding this comment

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

unused variable defaultTheme


export const metadata: Metadata = {
title: "Sign-In",
title: 'Sign-In',
Copy link
Collaborator

Choose a reason for hiding this comment

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

Hardcoded English title

Copy link
Collaborator

Choose a reason for hiding this comment

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

Where you are using it?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Currently nowhere, but if you remember I used it in one of the client components that utilized localStorage. I'll leave it here for now.


export default function ComplaintsPage() {
const t = useTranslations(INTL_NAMESPACE);
const conttactsT = useTranslations('private.contacts');
Copy link
Collaborator

Choose a reason for hiding this comment

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

Misspelling in variables name :)

<div className="flex items-center justify-between bg-basic-white h-[80px] px-6">
<SidebarTrigger />
<header className="sticky top-0 flex h-[80px] items-center justify-between bg-basic-white px-6">
<div>{isMobile && <SidebarTrigger />}</div>
Copy link
Collaborator

Choose a reason for hiding this comment

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

You don't need to wrap button in empty div to make justify-between style work for desktop screens and actually you don't need to use hook to hide SidebarTrigger for mobiles. You can do it with simple tailwind styles.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

useIsMobile is a hook that came with shadcn sidebar component, and it's used there. If I'll use CSS breakpoints in this place, they may mismatch with a breakpoint value of the one in useIsMobile and therefore with a sidebar itself. Fort this reason I wrapped it in a div, so justify-between will work in both cases.

I won't get rid of useIsMobile here, but I'll do it in a bit different way if that bugs you.

"contacts": {
"title": "Контакти",
"header": "Контакти",
"content": "<h3>Контактнi данi</h3><p>Адреса констуркторського бюро: <addresslink>Україна, м. Київ, вул. Політехнічна 14-в</addresslink>, корпус 13, 4 поверх, 25 кабінет</p><h3>Соцiальнi мережi</h3><p><githublink>КПI у GitHub</githublink><br></br><facebooklink>Facebook</facebooklink><br></br><twitterlink>Twitter</twitterlink><br></br><instagramlink>Instagram</instagramlink><br></br></p><h3>Служба підтримки</h3><p>Якщо у вам є питання, ви можете звернутися до служби підтримки:</p><complaintslink>Форма скарг i пропозицiй</complaintslink><br></br><emaillink>Email</emaillink>"
Copy link
Collaborator

Choose a reason for hiding this comment

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

error in word "констуркторського"

Copy link
Collaborator

Choose a reason for hiding this comment

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

error in "Якщо у вам є питання"

@a-gubskiy a-gubskiy requested a review from Markusplay December 20, 2024 08:29
@Markusplay
Copy link
Collaborator

Markusplay commented Dec 20, 2024

@a-gubskiy changes were not resolved why you are requesting a review?

@a-gubskiy
Copy link
Member

I thought that it was already fixed. Maybe messed up some GitHub notification in my mailbox

@niravzi niravzi merged commit c3b656f into dev Dec 24, 2024
@niravzi niravzi deleted the KB-85-main-and-other-pages branch December 24, 2024 12:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants