-
Notifications
You must be signed in to change notification settings - Fork 1
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
New landing page #15
base: main
Are you sure you want to change the base?
New landing page #15
Conversation
Co-authored-by: Mopsior <https://github.com/Mopsior>
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
few minor changes, but besides, a great job 🔥
you should focus on writting good content though, it's far more important than pretty designs; i.e. lorem ipsum and other fillers suck on fat dick
features/landing-page/Footer.tsx
Outdated
max-[768px]:flex-col | ||
max-[768px]:items-center | ||
max-[768px]:justify-even | ||
max-[768px]:h-[300px]"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why not media queries? md:
= 768px
https://tailwindcss.com/docs/responsive-design
features/landing-page/Footer.tsx
Outdated
max-[768px]:justify-even | ||
max-[768px]:h-[300px]"> | ||
<p | ||
className="text-[24px] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i think you're overrusing arbitrary values in few places
why not use text-2xl
?
'blackpule': "#000212", | ||
'graypule': "#090B1D", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
shouldn't that be purple
? XD
pages/index.tsx
Outdated
import Navbar from "features/landing-page/Navbar"; | ||
import Main from "features/landing-page/Main"; | ||
import Footer from "features/landing-page/Footer"; | ||
import { ClassNames } from "@emotion/react"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
unnecessary import
pages/index.tsx
Outdated
|
||
export default function HomePage() { | ||
export default function HomePage(): JSX.Element { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no need to add this return type
package.json
Outdated
"@emotion/react": "^11.10.5", | ||
"@emotion/styled": "^11.10.5", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
won't this work without emotion? :( i'd generally encourage to use material icon variable font, because we're adding 3 unnecessary packages just for icons
<button onClick={() => setOpenLogin(false)}>X</button> | ||
</> | ||
: <div> | ||
<button |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe it makes sense to use Button component? if the styles don't match, create a new variant
this applies to few places in code
features/landing-page/Navbar.tsx
Outdated
<li className="cursor-pointer">{t("contact")}</li> | ||
<li className="cursor-pointer">{t("team")}</li> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
doesn't make sense to add cursor-pointer
as class
just make it a link with <Link href="#"
probably applies to few places in code
features/landing-page/Navbar.tsx
Outdated
import { useState } from "react" | ||
import { useTranslation } from "next-i18next"; | ||
|
||
export default function Navbar() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- default exports are a bad practice and shouldn't be used (nextjs pages are a a exception)
- please use
const = () =>
instead offunction
, it's generally a convention to do so in react codebases
Co-authored-by: Jan Szymański <hello.konhi@gmail.com>
Page title from translations
Check please, buziaki <3