-
Notifications
You must be signed in to change notification settings - Fork 1
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
16 changed files
with
188 additions
and
32 deletions.
There are no files selected for viewing
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.
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
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,103 @@ | ||
@import "/public/src/utils/variables.sass" | ||
|
||
.share_panel | ||
display: flex | ||
flex-direction: column | ||
border: 1px solid hsl(217.2 32.6% 25%) | ||
background: #18232f | ||
border-radius: 12px | ||
|
||
h3 | ||
color: #f4f6f9 | ||
|
||
&__invite-people-container | ||
display: flex | ||
flex-direction: column | ||
padding: 16px | ||
gap: 12px | ||
border-bottom: 1px solid hsl(217.2 32.6% 25%) | ||
|
||
&__bottom-container | ||
display: flex | ||
gap: 12px | ||
|
||
.invite-input | ||
outline: none | ||
background: #18232f | ||
border: 1px solid hsl(217.2 32.6% 25%) | ||
border-radius: 8px | ||
padding: 4px 8px | ||
color: #eee | ||
transition: 0.3s ease | ||
|
||
&:focus | ||
border: 1px solid rgba(13, 65, 227, 0.8) | ||
|
||
&::placeholder | ||
color: #A1A1AA | ||
|
||
.button | ||
border-radius: 4px | ||
padding: 6px 12px | ||
|
||
&:hover | ||
transform: scale(1) | ||
background: #1744d0 | ||
|
||
|
||
&__share-link-container | ||
display: flex | ||
flex-direction: column | ||
padding: 16px | ||
gap: 12px | ||
border-bottom: 1px solid hsl(217.2 32.6% 25%) | ||
|
||
&__center-container | ||
display: flex | ||
|
||
span | ||
color: #c0c0c0 | ||
|
||
&__input | ||
outline: none | ||
background: #18232f | ||
border: 1px solid hsl(217.2 32.6% 25%) | ||
border-radius: 8px | ||
padding: 4px 8px | ||
color: #eee | ||
transition: 0.3s ease | ||
cursor: text | ||
|
||
&:focus | ||
border: 1px solid rgba(13, 65, 227, 0.8) | ||
|
||
&::placeholder | ||
color: #A1A1AA | ||
|
||
.button | ||
width: 100% | ||
border-radius: 4px | ||
|
||
&:hover | ||
transform: scale(1) | ||
background: #1744d0 | ||
|
||
&__social-btns-container | ||
display: flex | ||
flex-direction: column | ||
padding: 16px | ||
gap: 12px | ||
|
||
&__bottom-container | ||
display: flex | ||
align-items: center | ||
justify-content: flex-start | ||
width: 100% | ||
gap: 10px | ||
|
||
.social-icon | ||
cursor: pointer | ||
transition: 0.2s | ||
|
||
&:hover | ||
transform: scale(1.1) |
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,38 @@ | ||
import {ScReact} from "@veglem/screact"; | ||
import {Button} from "../Button/Button"; | ||
import "./SharePanel.sass" | ||
import {ToggleButton} from "../ToggleButton/ToggleButton"; | ||
import {Img} from "../Image/Image"; | ||
|
||
export class SharePanel extends ScReact.Component<any, any> { | ||
render() { | ||
return ( | ||
<div className="share_panel"> | ||
<div className="share_panel__invite-people-container"> | ||
<h3>Пригласить людей</h3> | ||
<div className="share_panel__invite-people-container__bottom-container"> | ||
<input type="text" placeholder="Введите логин" className="invite-input"/> | ||
<Button label="Отправить"/> | ||
</div> | ||
</div> | ||
<div className="share_panel__share-link-container"> | ||
<h3>Поделиться ссылкой</h3> | ||
<div className="share_panel__share-link-container__center-container"> | ||
<span>Просматривать могут все, у кого есть ссылка</span> | ||
<ToggleButton /> | ||
</div> | ||
<input type="text" disabled className="share_panel__share-link-container__input" value="http://localhost:8010/notes/0a48fb5e-eb2b-41f4-9e41-87544842f539"/> | ||
<Button label="Скопировать"/> | ||
</div> | ||
<div className="share_panel__social-btns-container"> | ||
<h3>Поделиться через соц. сети</h3> | ||
<div className="share_panel__social-btns-container__bottom-container"> | ||
<Img src="vk.png" className="social-icon"/> | ||
<Img src="odnoklassniki.png" className="social-icon" /> | ||
<Img src="whatsapp.png" className="social-icon" /> | ||
</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
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