namjul / gumption-ui

0 stars 0 forks source link

Build email template #1

Open addania opened 4 years ago

addania commented 4 years ago

PR: https://github.com/namjul/gumption-ui/pull/2


Description: Build the first email template according to: https://dribbble.com/shots/3032303-Desktop-Email-Client-Concept

Other link for inspiration: https://dribbble.com/search/email%20client http://react.pixelstrap.com/endless/email-app/emailDefault

Tasklist:

Questions:

Questions - Part 2 :)

namjul commented 4 years ago

How to start a project like this? Some tips? Start with static page, or with component logic, strucure?

The important step is to identify the UI hierarchy, so you ask yourself "what kind of component is this little section here" and they generally will fall into certain groups. You can layout components and primitives/general components and then you can the more specific ones. These can be further categorized into "data entry" and "data display" components. And even further navigation, feedback components.

But just start somewhere and don't overanalyse. Just go with the flow and you will discover the proper boundaries.

Can we use flex box to position items instead of bootstrap grid?

Yes you can create a Flex component with

const Flex = quark('div', { baseStyle: { display: 'flex'})`

// it like
<Flex css={{ justifyContent: 'center' }}>
      <quark.a>a link</quark.a>
      <quark.div>my div</quark.div>
      <quark.p>my p</quark.p>
</Flex>

Can we use https://fontawesome.com/ or https://materializecss.com/icons.html ?

Sure and https://react-icons.netlify.com/ is also an option