Skip to content

Commit

Permalink
📝 Add Breadcrumbs trail
Browse files Browse the repository at this point in the history
  • Loading branch information
github committed Mar 18, 2023
1 parent b6925f2 commit 0e7736b
Show file tree
Hide file tree
Showing 8 changed files with 49 additions and 19 deletions.
11 changes: 11 additions & 0 deletions components/breadcrumbs/breadcrumbs.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import styles from '/components/breadcrumbs/breadcrumbs.module.css'



export function Breadcrumbs() {
return (
<div className={styles.breadcrumbs}>
パンくずリスト
</div>
)
}
19 changes: 19 additions & 0 deletions components/breadcrumbs/breadcrumbs.module.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
.breadcrumbs {
position: absolute;
top:65px;
/* background-color: aqua; */
color: #000 ;
width: 100vw;
font-size: 12px;
padding-left: 20px;
z-index: 0;
}


@media screen and (max-width: 767px) {
.breadcrumbs {
top:70px;
padding-left: 15px;
}

}
2 changes: 1 addition & 1 deletion components/contents/contents.jsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import styles from '/components/contents/contents.module.css'

export default function Content() {
export default function Content() {
return (
<main>
<div className={styles.content}>
Expand Down
4 changes: 2 additions & 2 deletions components/contents/contents.module.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
.content {
padding: 70px 30px 0 30px;
padding: 85px 20px 0 20px;
height: 100vh;
width: 100vw;
background-color: #e4b1ac81;
Expand All @@ -9,7 +9,7 @@
@media screen and (max-width: 767px) {

.content {
padding: 90px 20px 0 30px;
padding: 95px 15px 0 15px;
font-size: 14px;
}

Expand Down
13 changes: 5 additions & 8 deletions components/footer/footer.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import styles from '/components/footer/footer.module.css'
import Link from 'next/link'


export default function Footer() {
export function Footer() {
return (
<footer className={styles.footer}>
<div className={styles.social}>
Expand All @@ -14,19 +14,16 @@ export default function Footer() {

<ul className={styles.list}>
<li>
<Link href="/" > Section1</Link>
<Link href="/" >Home</Link>
</li>
<li>
<Link href="/" > Section2</Link>
<Link href="/" >About</Link>
</li>
<li>
<Link href="/" > Section3</Link>
<Link href="/" >Service</Link>
</li>
<li>
<Link href="/" > Section4</Link>
</li>
<li>
<Link href="/" > Section5</Link>
<Link href="/" >News</Link>
</li>

<p className={styles.copyright}>
Expand Down
10 changes: 5 additions & 5 deletions components/header/header.jsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import styles from '/components/header/header.module.css'
import Link from 'next/link'

export default function Header() {
export function Header() {
return (
<header className={styles.header}>
<div className={styles.container}>
Expand All @@ -16,16 +16,16 @@ export default function Header() {
<nav className={styles.area_nav_header}>
<ul className={styles.list_nav_header}>
<li className={styles.lists}>
<Link href="/" >Section1</Link>
<Link href="/" >Home</Link>
</li>
<li className={styles.lists}>
<Link href="/" >Section2</Link>
<Link href="/" >About</Link>
</li>
<li className={styles.lists}>
<Link href="/" >Section3</Link>
<Link href="/" >Service</Link>
</li>
<li className={styles.lists}>
<Link href="/" >Section4</Link>
<Link href="/" >News</Link>
</li>

</ul>
Expand Down
1 change: 1 addition & 0 deletions components/header/header.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
background: #c0d7dbf3;
width: 100vw;
position: fixed;
z-index: 1;
}

.header>.container {
Expand Down
8 changes: 5 additions & 3 deletions src/pages/index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import Head from 'next/head'
import Header from '/components/header/header'
import { Header } from '/components/header/header'
import Contents from '/components/contents/contents'
import Footer from '/components/footer/footer'
import { Footer } from '/components/footer/footer'
import { Breadcrumbs } from '/components/breadcrumbs/breadcrumbs'

export default function Home() {
return (
Expand All @@ -14,9 +15,10 @@ export default function Home() {
</Head>

< Header />
< Breadcrumbs />
<Contents />
< Footer />

</>
)
}

1 comment on commit 0e7736b

@vercel
Copy link

@vercel vercel bot commented on 0e7736b Mar 18, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

react-site – ./

react-site-weld.vercel.app
react-site-suzusou.vercel.app
react-site-git-main-suzusou.vercel.app

Please sign in to comment.