Add linaria as a CSS library
3 open threads
3 open threads
This PR:
- Adds linaria as a css library
- Adds new NodeCardCommon jsx component that replaces node--card-common and node--card-common-alt twig templates
- Removes npm-watch library and replaces with esbuild's watch feature in watch-react.mjs
- Replaces React watch and build command with esbuild scripts.
Edited by Harumi Jang
Merge request reports
Activity
added 2 commits
- Resolved by Harumi Jang
- Resolved by Harumi Jang
- Resolved by Harumi Jang
- Resolved by Harumi Jang
- Resolved by Harumi Jang
- Resolved by Harumi Jang
- Resolved by Harumi Jang
- Resolved by Harumi Jang
- Resolved by Harumi Jang
14 font-size: 1.424rem; 15 font-weight: 400; 16 padding-top: 0.5rem; 17 ` 18 }); 19 const bundle = node.type[0].target_id; 20 const articleStyles = css` 21 display: flex; 22 flex-direction: column; 23 width: 100%; 24 padding: 1rem; 25 border: 1px solid #fcece7; 26 background: #fff; 27 color: red; 28 `; 29 const articleClasses = ['node', `node--type-${bundle}`, 'node--promoted', `node--view-mode-${toKebabCase(viewMode)}`, 'view-mode-card', articleStyles]; changed this line in version 4 of the diff
- Resolved by Harumi Jang
1 export default function({ page, isFront, node }) {return( 1 import { createElement, Fragment } from 'react'; 2 export default function Page({ page, isFront, node }) {return( - Comment on lines -1 to +2
@linaria/shaker
throws an error without the name in the function but it only errors out on components that use Linaria so NodeCardCommon is the only one that needs it.Should I create a separate MR to add the name for the components without Linaria so they're all consistent or can I keep those changes in this MR?
Edited by Harumi Jangchanged this line in version 4 of the diff
- Resolved by Harumi Jang
- Resolved by Harumi Jang
- Resolved by Harumi Jang
- Resolved by Harumi Jang
- Resolved by Harumi Jang
- Resolved by Harumi Jang
- Resolved by Harumi Jang
- Resolved by Harumi Jang
Please register or sign in to reply