Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
N
next.js
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Alex
next.js
Commits
4f7f5f30
Unverified
Commit
4f7f5f30
authored
Apr 12, 2021
by
Gary Meehan
Committed by
GitHub
Apr 12, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Increase base Lighthouse score of default Create Next App template (#23887)
parent
428a7de5
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
6 deletions
+13
-6
index.js
packages/create-next-app/templates/default/pages/index.js
+12
-5
Home.module.css
.../create-next-app/templates/default/styles/Home.module.css
+1
-1
No files found.
packages/create-next-app/templates/default/pages/index.js
View file @
4f7f5f30
...
@@ -6,6 +6,7 @@ export default function Home() {
...
@@ -6,6 +6,7 @@ export default function Home() {
<
div
className
=
{
styles
.
container
}
>
<
div
className
=
{
styles
.
container
}
>
<
Head
>
<
Head
>
<
title
>
Create
Next
App
<
/title
>
<
title
>
Create
Next
App
<
/title
>
<
meta
name
=
"description"
content
=
"Generated by create next app"
/>
<
link
rel
=
"icon"
href
=
"/favicon.ico"
/>
<
link
rel
=
"icon"
href
=
"/favicon.ico"
/>
<
/Head
>
<
/Head
>
...
@@ -21,12 +22,12 @@ export default function Home() {
...
@@ -21,12 +22,12 @@ export default function Home() {
<
div
className
=
{
styles
.
grid
}
>
<
div
className
=
{
styles
.
grid
}
>
<
a
href
=
"https://nextjs.org/docs"
className
=
{
styles
.
card
}
>
<
a
href
=
"https://nextjs.org/docs"
className
=
{
styles
.
card
}
>
<
h
3
>
Documentation
&
rarr
;
<
/h3
>
<
h
2
>
Documentation
&
rarr
;
<
/h2
>
<
p
>
Find
in
-
depth
information
about
Next
.
js
features
and
API
.
<
/p
>
<
p
>
Find
in
-
depth
information
about
Next
.
js
features
and
API
.
<
/p
>
<
/a
>
<
/a
>
<
a
href
=
"https://nextjs.org/learn"
className
=
{
styles
.
card
}
>
<
a
href
=
"https://nextjs.org/learn"
className
=
{
styles
.
card
}
>
<
h
3
>
Learn
&
rarr
;
<
/h3
>
<
h
2
>
Learn
&
rarr
;
<
/h2
>
<
p
>
Learn
about
Next
.
js
in
an
interactive
course
with
quizzes
!<
/p
>
<
p
>
Learn
about
Next
.
js
in
an
interactive
course
with
quizzes
!<
/p
>
<
/a
>
<
/a
>
...
@@ -34,7 +35,7 @@ export default function Home() {
...
@@ -34,7 +35,7 @@ export default function Home() {
href
=
"https://github.com/vercel/next.js/tree/master/examples"
href
=
"https://github.com/vercel/next.js/tree/master/examples"
className
=
{
styles
.
card
}
className
=
{
styles
.
card
}
>
>
<
h
3
>
Examples
&
rarr
;
<
/h3
>
<
h
2
>
Examples
&
rarr
;
<
/h2
>
<
p
>
Discover
and
deploy
boilerplate
example
Next
.
js
projects
.
<
/p
>
<
p
>
Discover
and
deploy
boilerplate
example
Next
.
js
projects
.
<
/p
>
<
/a
>
<
/a
>
...
@@ -42,7 +43,7 @@ export default function Home() {
...
@@ -42,7 +43,7 @@ export default function Home() {
href
=
"https://vercel.com/new?utm_source=create-next-app&utm_medium=default-template&utm_campaign=create-next-app"
href
=
"https://vercel.com/new?utm_source=create-next-app&utm_medium=default-template&utm_campaign=create-next-app"
className
=
{
styles
.
card
}
className
=
{
styles
.
card
}
>
>
<
h
3
>
Deploy
&
rarr
;
<
/h3
>
<
h
2
>
Deploy
&
rarr
;
<
/h2
>
<
p
>
<
p
>
Instantly
deploy
your
Next
.
js
site
to
a
public
URL
with
Vercel
.
Instantly
deploy
your
Next
.
js
site
to
a
public
URL
with
Vercel
.
<
/p
>
<
/p
>
...
@@ -57,7 +58,13 @@ export default function Home() {
...
@@ -57,7 +58,13 @@ export default function Home() {
rel
=
"noopener noreferrer"
rel
=
"noopener noreferrer"
>
>
Powered
by
{
' '
}
Powered
by
{
' '
}
<
img
src
=
"/vercel.svg"
alt
=
"Vercel Logo"
className
=
{
styles
.
logo
}
/
>
<
img
src
=
"/vercel.svg"
alt
=
"Vercel Logo"
className
=
{
styles
.
logo
}
width
=
"72"
height
=
"16"
/>
<
/a
>
<
/a
>
<
/footer
>
<
/footer
>
<
/div
>
<
/div
>
...
...
packages/create-next-app/templates/default/styles/Home.module.css
View file @
4f7f5f30
...
@@ -99,7 +99,7 @@
...
@@ -99,7 +99,7 @@
border-color
:
#0070f3
;
border-color
:
#0070f3
;
}
}
.card
h
3
{
.card
h
2
{
margin
:
0
0
1rem
0
;
margin
:
0
0
1rem
0
;
font-size
:
1.5rem
;
font-size
:
1.5rem
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment