-
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
5 changed files
with
127 additions
and
8 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 |
---|---|---|
@@ -1,16 +1,23 @@ | ||
import { Header, SubHeader, Sidebar, Section } from ".."; | ||
import { useState } from "react"; | ||
import { Header, SubHeader, Sidebar, Section, Modal } from ".."; | ||
|
||
import styles from "./styles.module.scss"; | ||
|
||
export default function Layout() { | ||
const [showModal] = useState(false); | ||
|
||
return ( | ||
<div className={styles.Container}> | ||
<Header /> | ||
<SubHeader /> | ||
<div className={styles.Wrapper}> | ||
<Sidebar /> | ||
<Section /> | ||
<> | ||
<div className={styles.Container}> | ||
<Header /> | ||
<SubHeader /> | ||
<div className={styles.Wrapper}> | ||
<Sidebar /> | ||
<Section /> | ||
</div> | ||
{showModal && <Modal />} | ||
</div> | ||
</div> | ||
<div className={showModal && styles.GrayLayer}></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
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,25 @@ | ||
import styles from "./styles.module.scss"; | ||
|
||
export default function Modal() { | ||
return ( | ||
<div className={styles.Container}> | ||
<div className={styles.Header}> | ||
<h3>Ürünü silmek istediğinize emin misiniz?</h3> | ||
</div> | ||
<div className={styles.Body}> | ||
<p className={styles.Content}> | ||
Lorem Ipsum is simply dummy text of the printing and typesetting | ||
industry. Lorem Ipsum has been the industry's standard dummy text ever | ||
since the 1500s, when an unknown printer took a galley of type and | ||
scrambled it to make a type specimen book. It has survived not only | ||
five centuries, but also the leap into electronic typesetting, | ||
remaining essentiall.... | ||
</p> | ||
</div> | ||
<div className={styles.Footer}> | ||
<button className={styles.Yes}>EVET</button> | ||
<button className={styles.No}>HAYIR</button> | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
@use "../../global/variables.scss" as vars; | ||
|
||
.Container { | ||
color: vars.$primary-font-color; | ||
max-width: 400px; | ||
width: 400px; | ||
height: 260px; | ||
background-color: #fff; | ||
border: 1px solid rgba(228, 228, 228, 0.6); | ||
box-shadow: 0px 6px 12px rgba(50, 50, 71, 0.07); | ||
border-radius: 4px; | ||
display: flex; | ||
flex-direction: column; | ||
justify-content: space-between; | ||
position: absolute; | ||
top: 250px; | ||
z-index: 999; | ||
|
||
.Header { | ||
display: flex; | ||
align-items: center; | ||
padding-left: 18px; | ||
padding-right: 18px; | ||
border-bottom: 1px solid #cdcdcd; | ||
height: 60px; | ||
} | ||
|
||
.Body { | ||
display: flex; | ||
align-items: center; | ||
font-weight: normal; | ||
padding-left: 20px; | ||
padding-right: 20px; | ||
padding-top: 16px; | ||
font-size: 12px; | ||
line-height: 17px; | ||
|
||
.Content { | ||
font-weight: normal; | ||
font-size: 12px; | ||
} | ||
} | ||
|
||
.Footer { | ||
display: flex; | ||
justify-content: flex-end; | ||
height: 56px; | ||
padding-right: 20px; | ||
align-items: flex-end; | ||
padding-bottom: 20px; | ||
|
||
.Yes { | ||
background: #90d659; | ||
border-radius: 4px; | ||
width: 70px; | ||
height: 26px; | ||
outline: none; | ||
border: none; | ||
color: #fff; | ||
} | ||
|
||
.No { | ||
margin-left: 10px; | ||
background: #d65959; | ||
width: 70px; | ||
height: 26px; | ||
border-radius: 4px; | ||
outline: none; | ||
border: none; | ||
color: #fff; | ||
} | ||
} | ||
} |
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