8e3586d2cc
- Ensure React / other deps are deduped against main-app bundle - Only require web-vitals when it's needed - Move warnOnce into separate file as it's not tree shaken - Add create-next-app with bundle analyzer <details> <summary>13.0.0 (react-dom deduping bug)</summary> <img width="1912" alt="13-0-0" src="https://user-images.githubusercontent.com/6324199/199067942-d2394ffa-fc1c-4606-94f4-b489ef959a9b.png"> </details> <details> <summary>Canary (react-dom deduping bug fixed)</summary> <img width="1912" alt="current-canary-branch" src="https://user-images.githubusercontent.com/6324199/199067999-786b523e-b4f0-4044-8d2e-acaa0386771a.png"> </details> <details> <summary>This PR</summary> <img width="1912" alt="pr-changes" src="https://user-images.githubusercontent.com/6324199/199068060-2fdb6e11-8b94-4683-9b8e-65bb6faab34a.png"> </details> ## Bug - [ ] Related issues linked using `fixes #number` - [ ] Integration tests added - [ ] Errors have a helpful link attached, see `contributing.md` ## Feature - [ ] Implements an existing feature request or RFC. Make sure the feature request has been accepted for implementation before opening a PR. - [ ] Related issues linked using `fixes #number` - [ ] Integration tests added - [ ] Documentation added - [ ] Telemetry added. In case of a feature if it's used or not. - [ ] Errors have a helpful link attached, see `contributing.md` ## Documentation / Examples - [ ] Make sure the linting passes by running `pnpm build && pnpm lint` - [ ] The "examples guidelines" are followed from [our contributing doc](https://github.com/vercel/next.js/blob/canary/contributing/examples/adding-examples.md)
146 lines
2.3 KiB
CSS
146 lines
2.3 KiB
CSS
.container {
|
|
padding: 0 2rem;
|
|
}
|
|
|
|
.main {
|
|
min-height: 100vh;
|
|
padding: 4rem 0;
|
|
flex: 1;
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: center;
|
|
align-items: center;
|
|
}
|
|
|
|
.footer {
|
|
display: flex;
|
|
flex: 1;
|
|
padding: 2rem 0;
|
|
border-top: 1px solid #eaeaea;
|
|
justify-content: center;
|
|
align-items: center;
|
|
}
|
|
|
|
.footer a {
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
flex-grow: 1;
|
|
}
|
|
|
|
.title {
|
|
margin: 0;
|
|
line-height: 1.15;
|
|
font-size: 4rem;
|
|
font-style: normal;
|
|
font-weight: 800;
|
|
letter-spacing: -0.025em;
|
|
}
|
|
|
|
.title a {
|
|
text-decoration: none;
|
|
color: #0070f3;
|
|
}
|
|
|
|
.title a:hover,
|
|
.title a:focus,
|
|
.title a:active {
|
|
text-decoration: underline;
|
|
}
|
|
|
|
.title,
|
|
.description {
|
|
text-align: center;
|
|
}
|
|
|
|
.description {
|
|
margin: 4rem 0;
|
|
line-height: 1.5;
|
|
font-size: 1.5rem;
|
|
}
|
|
|
|
.code {
|
|
background: #fafafa;
|
|
border-radius: 5px;
|
|
padding: 0.75rem;
|
|
font-size: 1.1rem;
|
|
font-family: Menlo, Monaco, Lucida Console, Liberation Mono, DejaVu Sans Mono,
|
|
Bitstream Vera Sans Mono, Courier New, monospace;
|
|
}
|
|
|
|
.grid {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
flex-wrap: wrap;
|
|
max-width: 1200px;
|
|
}
|
|
|
|
.card {
|
|
margin: 1rem;
|
|
padding: 1.5rem;
|
|
text-align: left;
|
|
color: inherit;
|
|
text-decoration: none;
|
|
border: 1px solid #eaeaea;
|
|
border-radius: 10px;
|
|
transition: color 0.15s ease, border-color 0.15s ease;
|
|
max-width: 300px;
|
|
}
|
|
|
|
.card:hover,
|
|
.card:focus,
|
|
.card:active {
|
|
color: #0070f3;
|
|
border-color: #0070f3;
|
|
}
|
|
|
|
.card h2 {
|
|
margin: 0 0 1rem 0;
|
|
font-size: 1.5rem;
|
|
}
|
|
|
|
.card p {
|
|
margin: 0;
|
|
font-size: 1.25rem;
|
|
line-height: 1.5;
|
|
}
|
|
|
|
.logo {
|
|
height: 1em;
|
|
margin-left: 0.5rem;
|
|
}
|
|
|
|
@media (max-width: 600px) {
|
|
.grid {
|
|
width: 100%;
|
|
flex-direction: column;
|
|
}
|
|
}
|
|
|
|
@media (prefers-color-scheme: dark) {
|
|
.title {
|
|
background: linear-gradient(180deg, #ffffff 0%, #aaaaaa 100%);
|
|
-webkit-background-clip: text;
|
|
-webkit-text-fill-color: transparent;
|
|
background-clip: text;
|
|
text-fill-color: transparent;
|
|
}
|
|
.title a {
|
|
background: linear-gradient(180deg, #0070f3 0%, #0153af 100%);
|
|
-webkit-background-clip: text;
|
|
-webkit-text-fill-color: transparent;
|
|
background-clip: text;
|
|
text-fill-color: transparent;
|
|
}
|
|
.card,
|
|
.footer {
|
|
border-color: #222;
|
|
}
|
|
.code {
|
|
background: #111;
|
|
}
|
|
.logo img {
|
|
filter: invert(1);
|
|
}
|
|
}
|