Install all dependencies and then start a local development server.
# The double ampersand is a shortcut for running two commands in sequence
npm i && npm run dev
This is done to avoid unnecessary nesting and improve readability. Read more about cyclomatic complexity here.
✅ Do
if (!isAuthenticated) return;
❌ Don't
if (isAuthenticated) {
// do something
}
✅ Do
export default function MyComponent() {
return <>lorem</>;
}
❌ Don't
class MyComponent extends React.Component {
render() {
return <>lorem</>;
}
}
✅ Do
export default function MyComponent() {
return <>lorem</>;
}
❌ Don't
const MyComponent = () => {
return <>lorem ipsum</>;
};
✅ Do
./components/_groupName/ComponentName.tsx
The AppBar component can receive any of the props available to a Paper component, affording access to the Material Design spec's elevation and shadow system. To remove the shadow, set the elevation property to 0.
Some values can't be applied on a global level but are an important part of the style guide. These include:
- font family
- border radius:
.5rem
Paticipating in this challenge, it was necessary to call an API and represent this exact Figma mockup:
To compare this implementation to the mockup, open browser dev tools, switch to custom browser size, and set the following:
- width: 1100px
- height: 900px
This gives a better frame of refernce since it is the size of the mockup.
- The page is responsive
- Different borders and unique styles were applied to cards based on type
- Cards are componentized and constructed with CSS Grid
- A skeleton loading state prevents the user from becoming disoriented