Chap04 -> Styling components with Emotion -> Styling the App component -> style css prop use tagged template literal
This commit is contained in:
parent
05f529d84e
commit
b7f435a986
@ -1,5 +0,0 @@
|
|||||||
.container {
|
|
||||||
font-family: 'Segoe UI', 'Helvetica', sans-serif;
|
|
||||||
font-size: 16px;
|
|
||||||
color: #5c5a5a;
|
|
||||||
}
|
|
@ -1,11 +1,19 @@
|
|||||||
|
/** @jsxImportSource @emotion/react */
|
||||||
|
import { css } from '@emotion/react';
|
||||||
|
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { Header } from './Header';
|
import { Header } from './Header';
|
||||||
import style from './App.module.css';
|
|
||||||
import { HomePage } from './HomePage';
|
import { HomePage } from './HomePage';
|
||||||
|
|
||||||
function App() {
|
function App() {
|
||||||
return (
|
return (
|
||||||
<div className={style.container}>
|
<div
|
||||||
|
css={css`
|
||||||
|
font-family: 'Segoe UI', 'Helvetica Neue', sans-serif;
|
||||||
|
font-size: 16px;
|
||||||
|
color: #5c5a5a;
|
||||||
|
`}
|
||||||
|
>
|
||||||
<Header />
|
<Header />
|
||||||
<HomePage />
|
<HomePage />
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user