Skip to content

Commit

Permalink
carousel fullview
Browse files Browse the repository at this point in the history
  • Loading branch information
aguescribano87 committed Dec 6, 2023
1 parent 721048c commit c9a03b0
Show file tree
Hide file tree
Showing 8 changed files with 403 additions and 202 deletions.
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;
}
12 changes: 11 additions & 1 deletion packages/gallery/src/Gallery.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,21 @@ 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',
]

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} />
<Gallery images={imgs} video={VIDEO} planos={PLANO} video360={Video360} />
</Box>
)
}
Loading

0 comments on commit c9a03b0

Please sign in to comment.