diff --git a/assets-metadata-css-starter/pages/index.js b/assets-metadata-css-starter/pages/index.js index 33a0627..5d0f77e 100644 --- a/assets-metadata-css-starter/pages/index.js +++ b/assets-metadata-css-starter/pages/index.js @@ -1,207 +1,209 @@ import Link from 'next/link' + import Head from 'next/head' -const Home = () => ( -
- - Create Next App - - +export default function Home() { + return ( +
+ + Create Next App + + -
-

- Read{' '} - - this page! - -

+
+

+ Read{' '} + + this page! + +

-

- Get started by editing pages/index.js -

+

+ Get started by editing pages/index.js +

-
- -

Documentation →

-

Find in-depth information about Next.js features and API.

-
+ +
+ + - -

Deploy →

-

- Instantly deploy your Next.js site to a public URL with ZEIT Now. -

-
-
- - - - - - -
-) + footer { + width: 100%; + height: 100px; + border-top: 1px solid #eaeaea; + display: flex; + justify-content: center; + align-items: center; + } -export default Home + footer img { + margin-left: 0.5rem; + } + + footer a { + display: flex; + justify-content: center; + align-items: center; + } + + a { + color: inherit; + text-decoration: none; + } + + .title a { + color: #0070f3; + text-decoration: none; + } + + .title a:hover, + .title a:focus, + .title a:active { + text-decoration: underline; + } + + .title { + margin: 0; + line-height: 1.15; + font-size: 4rem; + } + + .title, + .description { + text-align: center; + } + + .description { + 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: 800px; + margin-top: 3rem; + } + + .card { + margin: 1rem; + flex-basis: 45%; + 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; + } + + .card:hover, + .card:focus, + .card:active { + color: #0070f3; + border-color: #0070f3; + } + + .card h3 { + margin: 0 0 1rem 0; + font-size: 1.5rem; + } + + .card p { + margin: 0; + font-size: 1.25rem; + line-height: 1.5; + } + + @media (max-width: 600px) { + .grid { + width: 100%; + flex-direction: column; + } + } + `} + + + + ) +} diff --git a/navigate-between-pages-starter/pages/index.js b/navigate-between-pages-starter/pages/index.js index 25715fb..d1fb088 100644 --- a/navigate-between-pages-starter/pages/index.js +++ b/navigate-between-pages-starter/pages/index.js @@ -1,203 +1,204 @@ import Head from 'next/head' -const Home = () => ( -
- - Create Next App - - +export default function Home() { + return ( +
+ + Create Next App + + -
-

- Learn Next.js! -

+
+

+ Welcome to Next.js! +

-

- Get started by editing pages/index.js -

+

+ Get started by editing pages/index.js +

-
- -

Documentation →

-

Find in-depth information about Next.js features and API.

-
+ +
+ + - -

Deploy →

-

- Instantly deploy your Next.js site to a public URL with ZEIT Now. -

-
-
- - - - - - -
-) + footer { + width: 100%; + height: 100px; + border-top: 1px solid #eaeaea; + display: flex; + justify-content: center; + align-items: center; + } -export default Home + footer img { + margin-left: 0.5rem; + } + + footer a { + display: flex; + justify-content: center; + align-items: center; + } + + a { + color: inherit; + text-decoration: none; + } + + .title a { + color: #0070f3; + text-decoration: none; + } + + .title a:hover, + .title a:focus, + .title a:active { + text-decoration: underline; + } + + .title { + margin: 0; + line-height: 1.15; + font-size: 4rem; + } + + .title, + .description { + text-align: center; + } + + .description { + 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: 800px; + margin-top: 3rem; + } + + .card { + margin: 1rem; + flex-basis: 45%; + 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; + } + + .card:hover, + .card:focus, + .card:active { + color: #0070f3; + border-color: #0070f3; + } + + .card h3 { + margin: 0 0 1rem 0; + font-size: 1.5rem; + } + + .card p { + margin: 0; + font-size: 1.25rem; + line-height: 1.5; + } + + @media (max-width: 600px) { + .grid { + width: 100%; + flex-direction: column; + } + } + `} + + + + ) +}