OS: 41, 47, 48: Create Hero, Text, Two Column in Storybook#4
OS: 41, 47, 48: Create Hero, Text, Two Column in Storybook#4shayaanmiyy wants to merge 10 commits into
Conversation
niteshsyngenta11
left a comment
There was a problem hiding this comment.
Incorporate the Feedback.
In general:
- Line space missing
- Use shorthand
- Use color variables instead of using it directly.
| const twigAlias = { | ||
| "@atoms": path.resolve(__dirname, '../', 'components/atoms'), | ||
| "@molecules": path.resolve(__dirname, '../', 'components/molecules'), | ||
| "@molecules": path.resolve(__dirname, '../', 'components/molecule'), |
There was a problem hiding this comment.
This should be molecules.
| $portage: #8ea9e8; | ||
| $de-york: #87c5a4; | ||
| $ebony-clay: #242943; | ||
| $martinique: #2a2f4a; No newline at end of file |
There was a problem hiding this comment.
Add an extra line space.
| .card-container { | ||
| max-width: 600px; | ||
| } | ||
| } No newline at end of file |
There was a problem hiding this comment.
Add an extra line space.
There was a problem hiding this comment.
Yes I added one Line space
| } | ||
| } | ||
|
|
||
| export const Default = {} No newline at end of file |
There was a problem hiding this comment.
Add an extra line space.
| width: calc(100% - 6em); | ||
|
|
||
| @media screen and (max-width: 736px) { | ||
| padding: 3em 0 1em 0; |
There was a problem hiding this comment.
Yes for Margin and padding I am using shorthand
|
|
||
| header> :first-child:after { | ||
| content: ''; | ||
| background-color: #ffffff; |
There was a problem hiding this comment.
Got It, I corrected my code
| background-color: #ffffff; | ||
| display: block; | ||
| height: 2px; | ||
| margin: 0.325em 0 0.5em 0; |
| font-size: 0.7em; | ||
| font-weight: 600; | ||
| letter-spacing: 0.25em; | ||
| margin: 0 0 2em 0; |
| color: var.$white; | ||
| font-weight: 600; | ||
| line-height: 1.65; | ||
| margin: 0 0 1em 0; |
niteshsyngenta11
left a comment
There was a problem hiding this comment.
Incorporate the feedback.
| @@ -0,0 +1,6 @@ | |||
| $sm: "480px"; | |||
There was a problem hiding this comment.
The name of the folder should be scss not SCSS.
There was a problem hiding this comment.
Yes, I renamed the folder to lower case scss
| filter: blur($blur); | ||
| } | ||
|
|
||
|
|
There was a problem hiding this comment.
Remove the extra line space.
| &:hover { | ||
| background-color: var.$anakiwa; | ||
| } | ||
| } |
There was a problem hiding this comment.
Fix the indentation issues. It should be 2 spaces instead of a tab
There was a problem hiding this comment.
Corrected Indentation for all
|
|
||
| {{ text }} | ||
|
|
||
| {% if text == "Get Started" %} |
There was a problem hiding this comment.
Why have we added this condition?
There was a problem hiding this comment.
add a new variable to show svg only if the Boolean is set to true
| @@ -0,0 +1,9 @@ | |||
| <button class="get-started {{ fill ? 'fill' : '' }} {{ width | default('w-100') }}"> | |||
|
|
|||
| {{ text }} | |||
There was a problem hiding this comment.
Fix the indentation issue.
| >.split>* { | ||
| padding: 3em 0 1em 0; | ||
| } | ||
|
|
||
| >.split> :first-child:before { | ||
| display: block; | ||
| } | ||
| } | ||
| } |
There was a problem hiding this comment.
This can be clubbed.
| width: calc(100% - 3em); | ||
| } | ||
| } | ||
| } No newline at end of file |
There was a problem hiding this comment.
Line space missing.
| header { | ||
| .major { | ||
| width: max-content; | ||
| margin-bottom: 2em; | ||
| } | ||
| } | ||
|
|
||
| header.major> :first-child:after { | ||
| content: ''; | ||
| background-color: var.$white; | ||
| display: block; | ||
| height: 2px; | ||
| margin: 0.325em 0 0.5em; | ||
| width: calc(100% + 0.6em); | ||
| } | ||
|
|
There was a problem hiding this comment.
This can be clubbed.
| <h1 class="d-inline">{{ title }}</h1> | ||
| </header> | ||
| <span class="image main mt-4 mb-4"> | ||
| {% include '@atoms/image/image.twig' with { src: 'https://html5up.net/uploads/demos/forty/images/pic11.jpg', alt: 'Generic', classes: 'img-fluid', width: '100%', height: 'auto' } %} |
There was a problem hiding this comment.
Make sure this is divided into multiple lines.
| .hero { | ||
| padding: 5em 0 1em; | ||
| height: auto; | ||
| margin-bottom: -2.75em; | ||
| max-height: none; | ||
| min-height: 0; | ||
| top: -2.75em; | ||
| } | ||
|
|
||
| .hero h1 { | ||
| font-size: 2em; | ||
| } | ||
|
|
||
| .hero>.inner .content { | ||
| display: block; | ||
| } | ||
|
|
||
| .hero>.inner .content>* { | ||
| margin-right: 0; | ||
| margin-bottom: 2em; | ||
| } | ||
|
|
||
| .hero.major { | ||
| height: auto; | ||
| min-height: 0; | ||
| max-height: none; | ||
| } |
There was a problem hiding this comment.
We are using SCSS so we should not write any CSS.


Jira Ticket URL: https://digitalpolygon.atlassian.net/browse/OS-47
Decription
Create the Sections Component from https://html5up.net/uploads/demos/forty/