/
githubmirror
/
next.js
Обзор
Документация
Войти
/
githubmirror
/
next.js
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
canary
examples/with-edgedb/components/Layout.tsx
52 строки
1004 B
P41T
Update prettier project dependency from 3.2.5 to 3.6.2 (#82896)
22 авг 2025, 00:05
Не верифицирован
22 авг 2025, 00:05
8e8dd0c
Код
Авторство
О чём код?
import React, { ReactNode } from "react"; import Header from "./Header"; type Props = { children: ReactNode; }; const Layout: React.FC<Props> = (props) => ( <div style={{ paddingBottom: "30px" }}> <Header /> <div className="layout">{props.children}</div> <style jsx global>{` html { box-sizing: border-box; } *, *:before, *:after { box-sizing: inherit; } body { margin: 0; padding: 0; font-size: 16px; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; background: rgba(0, 0, 0, 0); } input, textarea, button { font-size: 16px; } button { cursor: pointer; } `}</style> <style jsx>{` .layout { padding: 0 2rem; } `}</style> </div> ); export default Layout;