-
Notifications
You must be signed in to change notification settings - Fork 3
Base next js project with project structure setup #15
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
base: master
Are you sure you want to change the base?
Conversation
postcss.config.js
Outdated
| module.exports = { | ||
| // Add your installed PostCSS plugins here: | ||
| plugins: [ | ||
| // require('autoprefixer'), |
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.
Remove commented lines throughout the code
|
|
||
| This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app). | ||
|
|
||
| ## Available Scripts |
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.
Don’t remove these until you’ve replaced them all with working components
Header component & NextJS Project setup
tolicodes
left a comment
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.
a few minor changes, but looks good
components/home/Header/index.tsx
Outdated
| <Container> | ||
| <NavWrapper> | ||
| <Logo> | ||
| <h1> |
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.
the H1 should be part of the logo component. Actually I'm thinking the lgoo should be a png
components/home/Header/index.tsx
Outdated
| <SocialMediaLinks> | ||
| <a href={"https://linkedin.com"} target={"_blank"} rel={"noreferrer"}> | ||
| <Image | ||
| src={"/icons/linkedin.svg"} |
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.
strings don't need a {
components/home/Header/index.tsx
Outdated
| src={"/icons/github.svg"} | ||
| alt={"GitHub"} | ||
| width={"22px"} | ||
| height={"22px"} |
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.
make a common component SocialIcon with these shared/standard props
components/home/Header/index.tsx
Outdated
| </NavWrapper> | ||
| <WatchMyStory> | ||
| <h1>Watch My Story</h1> | ||
| <iframe |
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.
use a youtube react lib so that we can control the video
components/home/Header/styled.tsx
Outdated
| font-family: "PT Mono", monospace; | ||
| text-align: center; | ||
|
|
||
| h1 { |
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.
should be sub components
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.
Do you mean I should create separate component for this, instead of nested tag based styling?
| width: 820px; | ||
| height: 40px; | ||
|
|
||
| ul { |
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.
subcomponents
| text-align: center; | ||
| width: 100%; | ||
|
|
||
| h1 { |
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.
sub components
tolicodes
left a comment
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.
Good job!
components/home/Header/styled.tsx
Outdated
|
|
||
| interface ContainerProps {} | ||
| export const Container = styled.div<ContainerProps>` | ||
| display: flex; |
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.
We can use Chakra for common components like flex boxes. Goal is to write as little code as possible
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.
Sure, got it.
| height: 100%; | ||
| margin: 0; | ||
|
|
||
| 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.
Separate component.
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.
Please clarify, do you mean I write separate styled component instead of styling nested tags?
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.
each DOM element (div, li, etc) should be a styled component, so that we can use and see it in isolation
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.
Got it.
No description provided.