Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,16 +46,16 @@ cd inextjs-layout

3. Install project dependencies

`npm install` or `npm i`
`yarn` or `npm install` or `npm i`

To run the project locally:

`npm run dev`
`yarn dev` or `npm run dev`

Starter project is live at: http://localhost:3000

### The starter is now ready - have fun!

## Contributing

All contributions and/or feature requests are most welcome!
Have an idea how to make this starter better/more useful? Please submit a PR.
86 changes: 44 additions & 42 deletions components/Header.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,32 +3,32 @@ import Link from "next/link";
export const Header = () => {
return (
<header>
<Link href="/">
<a>
<span className="logo">
<span className="i">i</span>
<span className="js">JS</span>
</span>
</a>
</Link>

<div>
<Link href="/">
<a className="ijs-link">
<span className="ijs">
i<span className="js-font">JS</span>
</span>
</a>
</Link>
</div>
<div>
<Link href="/">
<a>Home</a>
<a className="menu-item">Home</a>
</Link>
<Link href="/books">
<a>Books</a>
<a className="menu-item">Books</a>
</Link>
<Link href="/about">
<a>About</a>
<a className="menu-item">About</a>
</Link>
</div>

<style jsx>{`
header {
align-items: center;
background: #ff6666;
border-color: white;
background: white;
border-bottom: 2px solid #333644;
display: flex;
height: 64px;
justify-content: space-between;
Expand All @@ -38,50 +38,52 @@ export const Header = () => {
top: 0;
width: 100%;
}
header * {
text-decoration: none;
}
header div,
header a {
.menu-item {
text-transform: uppercase;
font-size: 0.9em;
letter-spacing: 1px;
padding: 2rem;
text-decoration: none;
}
header a:hover {
.menu-item:hover {
color: #1c2b6d;
text-shadow: 1px -1px 0 #fff, 1px -1px 0 #fff, -1px 1px 10px #fff,
1px 1px 0 #fff;
text-shadow: 1px -1px 0 #fff, 1px -1px 0 #fff, -1px 1px 10px rgba(119, 102, 119, 0.25),
1px 1px 0 orange;
font-weight: 800;
}

.ijs-link {
text-decoration: none;

.logo {
background-color: #B838F0;
font-size: 1.25rem;
letter-spacing: 0px;
padding: 0.76rem 0 0 0.75rem;
position: absolute;
top: 16px;
}

.js-font {
font-family: "Source Sans Pro", sans-serif;
color: #776677;
font-size: 2rem;
margin-right: 4px;
.logo:hover {
background: #333644;
}
.js-font:hover {
color: white;
.logo:hover .js{
color: #B838F0;
}

.ijs {
font-weight: 700;
font-size: 1.25rem;
color: white;
background-color: #ff8866;
margin: 0.75rem 0;
padding: 1.55rem 0 0 0.75rem;
.i {
color: #f7f7f7;
font-weight: bolder;
text-transform: lowercase;
}

.ijs:hover .js-font {
.js {
font-family: "Source Sans Pro", sans-serif;
color: white;
font-size: 2rem;
margin-right: 4px;
}
.ijs:hover {
background-color: #776677;
.js:hover {
color: #333644;
}

`}</style>
</header>
);
Expand Down
12 changes: 5 additions & 7 deletions components/Meta.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,12 @@ export const Meta = () => {
return (
<>
<Head>
<title>iJS.to - Modern Javascript Courses</title>
<title>
iNext.js Layout | iJS Boilerplate for Next.js with a dynamic layout
</title>

<link
href="https://fonts.googleapis.com/css?family=Comfortaa|Source+Sans+Pro:700&display=swap"
href="https://fonts.googleapis.com/css?family=Space+Mono|Source+Sans+Pro:700&display=swap"
rel="stylesheet"
/>
<link rel="shortcut icon" href="/favicon.png" />
Expand All @@ -33,7 +35,7 @@ export const Meta = () => {
}

* {
font-family: "Comfortaa", sans-serif;
font-family: "Space Mono", sans-serif;
box-sizing: border-box;
color: #776677;
margin: 0;
Expand All @@ -44,10 +46,6 @@ export const Meta = () => {
a:hover {
color: orange;
}

.content {
padding: 2em 3em;
}
`}</style>
</>
);
Expand Down
13 changes: 12 additions & 1 deletion components/Page.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
import Meta from './Meta';
import Header from './Header';
import Footer from './Footer';

const Page = ({ children }) => {
return <>{children}</>;
return (
<>
<Meta />
<Header />
{children}
<Footer />
</>
);
};

export default Page;
Loading