Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TP-715: Carousel fullview #1640

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/iframe.html
Original file line number Diff line number Diff line change
Expand Up @@ -345,4 +345,4 @@



window['STORIES'] = [];</script><script src="runtime~main.59c1d3fe.iframe.bundle.js"></script><script src="vendors~main.37bd8fd4.iframe.bundle.js"></script><script src="main.1e04e31d.iframe.bundle.js"></script></body></html>
window['STORIES'] = [];</script><script src="runtime~main.59c1d3fe.iframe.bundle.js"></script><script src="vendors~main.37bd8fd4.iframe.bundle.js"></script><script src="main.274714b7.iframe.bundle.js"></script></body></html>
1 change: 0 additions & 1 deletion docs/main.1e04e31d.iframe.bundle.js

This file was deleted.

1 change: 1 addition & 0 deletions docs/main.274714b7.iframe.bundle.js

Large diffs are not rendered by default.

110 changes: 110 additions & 0 deletions packages/gallery/src/Gallery.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,110 @@
.fullscreen {
position: absolute;
display: flex;
align-items: center;
z-index: -1;
opacity: 0;
transition: all 0.2s ease-in-out;
width: 0px;
height: 0px;
flex-direction: column;
padding: 40px;
gap: 24px;
overflow: hidden;
}

.fsOverlay {
background-color: var(--black);
opacity: 0.8;
width: 100%;
height: 100%;
position: absolute;
z-index: -1;
top: 0px;
left: 0px;
}

.fullscreen.openFullscreen {
position: fixed;
top: 0;
left: 0;
z-index: 1000;
opacity: 1;
transform: scale(1);
width: 100%;
height: 100%;
}

.fsTabHeader {
display: flex;
padding: 8px 16px;
align-items: center;
border-radius: 8px;
background: #fff;
gap: 20px;
}

.fsTabHeader p {
cursor: pointer;
color: var(--neutralGray2);
padding: 8px 16px;
border-bottom: 1px solid var(--neutralGray5);
line-height: 8px;
}

.fsTabHeader p:hover {
color: var(--neutralGray1);
}

.fsTabHeader p.tabSelected {
color: var(--primary);
border-color: var(--primary);
}

.fsContainerTabs {
width: 90%;
height: 90%;
display: flex;
justify-content: center;
align-items: center;
}

.fsTabCont {
width: 100%;
height: 100%;
display: flex;
justify-content: center;
}

.fsContainerTabs i {
color: #fff;
cursor: pointer;
}

.fsTabContImage {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
height: 95%;
width: 95%;
gap: 24px;
}

.fsTabContImage img {
max-width: 95%;
max-height: 95%;
height: auto;
}

.fsTabContImage p {
color: #fff;
}

.fsCloseIcon {
position: absolute;
color: #fff;
right: 72px;
top: 54px;
cursor: pointer;
}
23 changes: 23 additions & 0 deletions packages/gallery/src/Gallery.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,29 @@ export const GalleyComponent = () => {
const imgs = [
'https://www.wallpaperuse.com/wallp/0-9852_m.jpg',
'https://static.inmofactory.com/images/inmofactory/documents/1/124683/34021431/582525589.jpg?rule=web_412x257',
'https://staticbp.com/img/prop_new_b/534/00534436-01.jpg',
'https://imgs.nestimg.com/casa_en_fraccionamiento_privadas_de_la_hacienda_3210125690712336672.jpg',
]

const VIDEO = [
'https://www.youtube.com/embed/YDL8HbY9ENU',
'https://www.youtube.com/embed/70KXYjyzFK4',
]

const PLANO = ['https://www.krellbrokers.com/images/plano-2.png']

const Video360 = ['https://my.matterport.com/show/?m=eURj8Qwwzb2']

return (
<Box __css={{ width: '770px' }}>
<Gallery images={imgs} video={VIDEO} planos={PLANO} video360={Video360} />
</Box>
)
}

export const GalleyPocasImg = () => {
const imgs = [
'https://www.wallpaperuse.com/wallp/0-9852_m.jpg',
]

return (
Expand Down
Loading
Loading