diff --git a/src/App.css b/src/App.css
deleted file mode 100644
index 74b5e05..0000000
--- a/src/App.css
+++ /dev/null
@@ -1,38 +0,0 @@
-.App {
- text-align: center;
-}
-
-.App-logo {
- height: 40vmin;
- pointer-events: none;
-}
-
-@media (prefers-reduced-motion: no-preference) {
- .App-logo {
- animation: App-logo-spin infinite 20s linear;
- }
-}
-
-.App-header {
- background-color: #282c34;
- min-height: 100vh;
- display: flex;
- flex-direction: column;
- align-items: center;
- justify-content: center;
- font-size: calc(10px + 2vmin);
- color: white;
-}
-
-.App-link {
- color: #61dafb;
-}
-
-@keyframes App-logo-spin {
- from {
- transform: rotate(0deg);
- }
- to {
- transform: rotate(360deg);
- }
-}
diff --git a/src/App.js b/src/App.js
index b408ef3..80e53a7 100644
--- a/src/App.js
+++ b/src/App.js
@@ -1,12 +1,11 @@
-import React from 'react'
-import './App.css'
+import Card from './component/Card';
-function App () {
- return (
-
-
-
- )
+function App() {
+ return (
+
+
+
+ );
}
-export default App
+export default App
\ No newline at end of file
diff --git a/src/component/Card.js b/src/component/Card.js
new file mode 100644
index 0000000..3cd3038
--- /dev/null
+++ b/src/component/Card.js
@@ -0,0 +1,49 @@
+import React, { Component } from 'react';
+import './card.css';
+import Matsuya from './img/matsuya.gif';
+import Donut from './img/donut.jpg';
+import Bookoff from './img/bookoff.jpg';
+import Second from './img/second.jpg';
+import Uniqlo from './img/uniqlo.png';
+import Sukiya from './img/sukiya.png';
+import Wego from './img/wego.png';
+import Earth from './img/earth.jpg';
+import GU from './img/GU.png';
+
+let data = [
+ {img: Matsuya, alt:'matsuya', shop:'松屋金沢工大前店', distance:0.3},
+ {img: Donut, alt:'donut', shop:'ミスタードーナツ野々市ショップ', distance:1.9},
+ {img: Bookoff, alt:'bookoff', shop:'BOOKOFF野々市若松店', distance:1.9},
+ {img: Second, alt:'second', shop:'セカンドストリート野々市本町店', distance:2.4},
+ {img: Uniqlo, alt:'uniqlo', shop:'ユニクロ野々市店', distance:4.0},
+ {img: Sukiya, alt:'sukiya', shop:'すき家野々市新庄店', distance:4.3},
+ {img: Wego, alt:'wego', shop:'WEGO 金沢フォーラス店', distance:6.7},
+ {img: Earth, alt:'earth', shop:'アースミュージック&エコロジー 金沢フォーラス店', distance:6.7},
+ {img: GU, alt:'GU', shop:'GU イオンタウン金沢示野店', distance:8.3}
+];
+
+class Card extends Component {
+ render() {
+ return (
+
+ {data.map((value) =>(
+
+ ))}
+
+ )
+ }
+}
+
+export default Card;
\ No newline at end of file
diff --git a/src/component/card.css b/src/component/card.css
new file mode 100644
index 0000000..4aac0f8
--- /dev/null
+++ b/src/component/card.css
@@ -0,0 +1,85 @@
+.card-wrapper {
+ display: flex;
+ flex-wrap: wrap;
+ justify-content: space-between;
+ padding: 2.8125rem 0 0 4.375rem;
+}
+.card-wrapper a {
+ color: #000;
+ text-decoration: none;
+}
+
+.card {
+ display: -webkit-box;
+ display: -ms-flexbox;
+ /* img,shop,distanceをよこならびにする */
+ display: flex;
+ width: 40rem;
+ height: 13.4375rem;
+ cursor: pointer;
+ background-color: #fff;
+ border-radius: 10px;
+ -webkit-box-shadow: rgba(0, 0, 0, 0.25) 5px 5px 25px;
+ box-shadow: rgba(0, 0, 0, 0.25) 5px 5px 25px;
+ -webkit-transition: opacity 0.3s;
+ transition: opacity 0.3s;
+}
+
+/* マウスが乗った時のアクション */
+.card:hover {
+ opacity: 0.7;
+}
+
+/*画像のサイズを調整*/
+.card__img {
+ width: 13.4375rem;
+}
+
+.card__img img {
+ width: 100%;
+ height: 100%;
+ border-radius: 10px 0 0 10px;
+ /*余白なく縦横比を維持して中央にトリミング*/
+ /*-o-のようにベンダー接頭辞ありとなしを用意することによって様々なブラウザに対して互換性を保証する*/
+ -o-object-fit: cover;
+ object-fit: cover;
+ -o-object-position: center;
+ object-position: center;
+}
+
+.card__text {
+ width: calc(40rem - 13.4375rem);
+}
+
+.card__text__shop {
+ width: calc(40rem - 13.4375rem);
+ overflow: hidden;
+ font-size: 2.5rem;
+ line-height: 9rem;
+ text-align: center;
+ text-overflow: ellipsis;
+ white-space: nowrap;
+}
+
+.card__text__distance {
+ position: relative;
+ top: -5rem;
+ left: 20rem;
+ display: inline-block;
+ font-size: 1.875rem;
+ color: #696969;
+}
+
+.container {
+ display: -webkit-box;
+ display: -ms-flexbox;
+ display: flex;
+ -ms-flex-wrap: wrap;
+ flex-wrap: wrap;
+ -ms-flex-line-pack: start;
+ align-content: flex-start;
+ width: 100%;
+ max-width: 1500px;
+ padding-top: 100px;
+ margin: 0 auto;
+}
\ No newline at end of file
diff --git a/src/component/img/GU.png b/src/component/img/GU.png
new file mode 100644
index 0000000..f1dfcc4
Binary files /dev/null and b/src/component/img/GU.png differ
diff --git a/src/component/img/bookoff.jpg b/src/component/img/bookoff.jpg
new file mode 100644
index 0000000..4feb5b6
Binary files /dev/null and b/src/component/img/bookoff.jpg differ
diff --git a/src/component/img/donut.jpg b/src/component/img/donut.jpg
new file mode 100644
index 0000000..a759925
Binary files /dev/null and b/src/component/img/donut.jpg differ
diff --git a/src/component/img/earth.jpg b/src/component/img/earth.jpg
new file mode 100644
index 0000000..27eeed3
Binary files /dev/null and b/src/component/img/earth.jpg differ
diff --git a/src/component/img/hot-sale.svg b/src/component/img/hot-sale.svg
new file mode 100644
index 0000000..45919e6
--- /dev/null
+++ b/src/component/img/hot-sale.svg
@@ -0,0 +1,6 @@
+
diff --git a/src/component/img/matsuya.gif b/src/component/img/matsuya.gif
new file mode 100644
index 0000000..17fc6d4
Binary files /dev/null and b/src/component/img/matsuya.gif differ
diff --git a/src/component/img/second.jpg b/src/component/img/second.jpg
new file mode 100644
index 0000000..7cdd6b6
Binary files /dev/null and b/src/component/img/second.jpg differ
diff --git a/src/component/img/sukiya.png b/src/component/img/sukiya.png
new file mode 100644
index 0000000..a431aa7
Binary files /dev/null and b/src/component/img/sukiya.png differ
diff --git a/src/component/img/uniqlo.png b/src/component/img/uniqlo.png
new file mode 100644
index 0000000..c457a20
Binary files /dev/null and b/src/component/img/uniqlo.png differ
diff --git a/src/component/img/vdrug.png b/src/component/img/vdrug.png
new file mode 100644
index 0000000..35a5079
Binary files /dev/null and b/src/component/img/vdrug.png differ
diff --git a/src/component/img/wego.png b/src/component/img/wego.png
new file mode 100644
index 0000000..765c0f0
Binary files /dev/null and b/src/component/img/wego.png differ