-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
19 changed files
with
479 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
[ | ||
{ | ||
"id" : "0", | ||
"name": "거룩한빛운정교회", | ||
"category" : "1", | ||
"images": ["/introduce/image1-1.png","/introduce/image1-2.png"], | ||
"year" : "2021", | ||
"buildingArea" : "919.41", | ||
"totalFloorArea": "4257.73", | ||
"siteArea" : "1895.40", | ||
"buildingScale" : "지하 2층 / 지상 4층", | ||
"buildingStructure" : "철골콘크리트구조", | ||
"mainFinishes" : "점토벽톨" | ||
}, | ||
{ | ||
"id" : "1", | ||
"name": "거룩한빛운정교회", | ||
"category" : "1", | ||
"images": ["/introduce/image2-1.png"], | ||
"year" : "2021", | ||
"buildingArea" : "919.41", | ||
"totalFloorArea": "4257.73", | ||
"siteArea" : "1895.40", | ||
"buildingScale" : "지하 2층 / 지상 4층", | ||
"buildingStructure" : "철골콘크리트구조", | ||
"mainFinishes" : "점토벽톨" | ||
},{ | ||
"id" : "2", | ||
"name": "거룩한빛운정교회", | ||
"category" : "1", | ||
"images": ["/introduce/image1-1.png"], | ||
"year" : "2021", | ||
"buildingArea" : "919.41", | ||
"totalFloorArea": "4257.73", | ||
"siteArea" : "1895.40", | ||
"buildingScale" : "지하 2층 / 지상 4층", | ||
"buildingStructure" : "철골콘크리트구조", | ||
"mainFinishes" : "점토벽톨" | ||
},{ | ||
"id" : "3", | ||
"name": "거룩한빛운정교회", | ||
"category" : "1", | ||
"images": ["/introduce/image1-1.png"], | ||
"year" : "2021", | ||
"buildingArea" : "919.41", | ||
"totalFloorArea": "4257.73", | ||
"siteArea" : "1895.40", | ||
"buildingScale" : "지하 2층 / 지상 4층", | ||
"buildingStructure" : "철골콘크리트구조", | ||
"mainFinishes" : "점토벽톨" | ||
} | ||
] |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
.contentImageSlider-wrapper { | ||
width: 100%; | ||
display: flex; | ||
justify-content: center; | ||
} | ||
|
||
.contentImageSlider-wrapper2 { | ||
width: 80%; | ||
position: relative; | ||
display: flex; | ||
justify-content: center; | ||
overflow: hidden; | ||
} | ||
|
||
.contentImageSlider-images { | ||
display: flex; | ||
transition: transform 0.5s ease-in-out; | ||
} | ||
|
||
.contentImageSlider-image { | ||
width: 100%; | ||
height: 500px; | ||
overflow: hidden; | ||
object-fit: contain; | ||
flex-shrink: 0; | ||
} | ||
|
||
.contentImageSlider-forward, | ||
.contentImageSlider-back { | ||
position: absolute; | ||
top: 50%; | ||
width: 36px; | ||
height: 36px; | ||
opacity: 0.3; | ||
z-index: 3; | ||
cursor: pointer; | ||
} | ||
|
||
.contentImageSlider-forward { | ||
right: 15px; | ||
} | ||
|
||
.contentImageSlider-back { | ||
left: 15px; | ||
} | ||
|
||
.contentImageSlider-forward:hover, | ||
.contentImageSlider-back:hover { | ||
opacity: 1; | ||
} | ||
|
||
@include mobile{ | ||
.contentImageSlider-wrapper2 { | ||
width: 100%; | ||
} | ||
.contentImageSlider-image { | ||
height: 300px; | ||
} | ||
.contentImageSlider-forward, | ||
.contentImageSlider-back { | ||
width: 24px; | ||
height: 24px; | ||
|
||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
/* Example CSS for the Content component */ | ||
.content-wrapper { | ||
display: flex; | ||
flex-direction: column; | ||
align-items: center; | ||
} | ||
|
||
.content-wrapper-title { | ||
margin: 70px 0; | ||
font-size: 45px; | ||
font-weight: bold; | ||
} | ||
|
||
.content-wrapper-information { | ||
width: 40%; | ||
height: 250px; | ||
display: flex; | ||
flex-direction: column; | ||
align-items: center; | ||
justify-content: center; | ||
} | ||
|
||
.content-wrapper-information-title { | ||
font-size: 30px; | ||
font-weight: bold; | ||
margin-bottom: 10px; | ||
} | ||
|
||
.content-wrapper-information-details { | ||
display: flex; | ||
flex-wrap: wrap; | ||
border-top : 1px solid black; | ||
border-bottom : 1px solid black; | ||
} | ||
|
||
.content-wrapper-information-content { | ||
flex: 1 1 45%; /* Each li takes up 45% of the width, adjust as needed */ | ||
margin: 10px; /* Add some margin for spacing */ | ||
font-size:18px; | ||
} | ||
|
||
@include mobile{ | ||
.content-wrapper-title { | ||
margin: 30px 0; | ||
font-size: 25px; | ||
font-weight: bold; | ||
} | ||
.content-wrapper-information-title { | ||
font-size: 15px; | ||
font-weight: bold; | ||
margin-bottom: 10px; | ||
} | ||
|
||
.content-wrapper-information { | ||
width: 60%; | ||
height: 300px; | ||
} | ||
|
||
.content-wrapper-information-content { | ||
font-size:13px; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
@include desktop{ | ||
.introduce-wrapper{ | ||
display : flex; | ||
flex-direction: column; | ||
align-items: center; | ||
margin-bottom : 70px; | ||
} | ||
|
||
.introduce-title{ | ||
margin: 70px 0; | ||
font-size: 45px; | ||
font-weight: bold; | ||
} | ||
|
||
.introduce-content-wrapper{ | ||
width: 80%; | ||
} | ||
|
||
.introduce-bar{ | ||
width: 100%; | ||
border: 0.5px solid black; | ||
height: 0px; | ||
margin: 15px 0; | ||
} | ||
|
||
.introduce-contents{ | ||
width: 100%; | ||
height: 800px; | ||
overflow-y: scroll; | ||
overflow-x:hidden; | ||
display: flex; | ||
flex-wrap: wrap; | ||
} | ||
|
||
.introduce-content{ | ||
width: calc(100% / 3 - 10px); | ||
margin: 5px; | ||
position: relative; | ||
|
||
} | ||
|
||
.introduce-content-title{ | ||
position: absolute; | ||
left: 5px; | ||
top: 5px; | ||
font-size:20px; | ||
color:white; | ||
font-weight: bold; | ||
} | ||
|
||
.introduce-content-image{ | ||
width: 100%; | ||
object-fit: cover; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
import React, { useState } from 'react'; | ||
|
||
// images | ||
import Back from "../asset/icons/arrow_back.svg"; | ||
import Forward from "../asset/icons/arrow_forward.svg"; | ||
|
||
export default function ContentImageSlider({ images }) { | ||
const [currentIndex, setCurrentIndex] = useState(0); | ||
|
||
const handleNext = () => { | ||
setCurrentIndex((prevIndex) => (prevIndex + 1) % images.length); | ||
}; | ||
|
||
const handlePrev = () => { | ||
setCurrentIndex((prevIndex) => (prevIndex - 1 + images.length) % images.length); | ||
}; | ||
|
||
return ( | ||
<div className="contentImageSlider-wrapper"> | ||
<div className="contentImageSlider-wrapper2"> | ||
<img | ||
className="contentImageSlider-forward" | ||
src={Forward} | ||
alt="forward" | ||
onClick={handleNext} | ||
/> | ||
<img | ||
className="contentImageSlider-back" | ||
src={Back} | ||
alt="back" | ||
onClick={handlePrev} | ||
/> | ||
<div | ||
className="contentImageSlider-images" | ||
style={{ transform: `translateX(-${currentIndex * 100}%)` }} | ||
> | ||
{images.map((image, index) => ( | ||
<img | ||
key={index} | ||
src={image} | ||
className="contentImageSlider-image" | ||
alt={`Slide ${index}`} | ||
/> | ||
))} | ||
</div> | ||
</div> | ||
</div> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.