mirror of
https://github.com/vercel/next.js.git
synced 2026-09-20 02:25:18 +08:00
8e8dd0c8c2
What? This PR updates the dependency "prettier" from version 3.2.5 to version 3.6.2. It also modifies other scripts by using the pnpm run prettier-fix after updating the dependency. Why? This is updated to benefit from the changes and fixes introduced in the newer versions of prettier, from versions 3.3 to 3.6. How? The package has been updated using pnpm install prettier@latest, and the files other than package.json and pnpm-lock.json have been modified using the script pnpm run prettier-fix. This PR does only have formatting changes introduced by the updated dependency This PR is the same as #82719 , with fixes implemented to prevent prettier to modifiy symlink files
62 lines
1.2 KiB
JavaScript
62 lines
1.2 KiB
JavaScript
import Nav from "./Nav";
|
|
import PropTypes from "prop-types";
|
|
|
|
const Layout = ({ children }) => (
|
|
<main>
|
|
<Nav />
|
|
{children}
|
|
<style jsx global>{`
|
|
* {
|
|
font-family:
|
|
Menlo, Monaco, "Lucida Console", "Liberation Mono",
|
|
"DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Courier New",
|
|
monospace, serif;
|
|
}
|
|
body {
|
|
margin: 0;
|
|
padding: 25px 50px;
|
|
}
|
|
a {
|
|
color: #22bad9;
|
|
}
|
|
p {
|
|
font-size: 14px;
|
|
line-height: 24px;
|
|
}
|
|
article {
|
|
margin: 0 auto;
|
|
max-width: 650px;
|
|
}
|
|
button {
|
|
align-items: center;
|
|
background-color: #22bad9;
|
|
border: 0;
|
|
color: white;
|
|
display: inline-flex;
|
|
padding: 5px 7px;
|
|
margin-right: 1px;
|
|
}
|
|
button:active {
|
|
background-color: #1b9db7;
|
|
transition: background-color 0.3s;
|
|
}
|
|
button:focus {
|
|
outline: none;
|
|
}
|
|
|
|
hr {
|
|
height: 1px;
|
|
border: none;
|
|
background: #ececec;
|
|
margin: 20px 0;
|
|
}
|
|
`}</style>
|
|
</main>
|
|
);
|
|
|
|
Layout.propTypes = {
|
|
children: PropTypes.node.isRequired,
|
|
};
|
|
|
|
export default Layout;
|