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

playground popup updated #4896

Merged
merged 3 commits into from
Sep 10, 2023
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
10 changes: 3 additions & 7 deletions src/components/Corner-popup/closeIcon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions src/components/Corner-popup/index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React, { useState, useEffect } from "react";
import Button from "../../reusecore/Button";
import { ReactComponent as CloseIcon } from "./closeIcon.svg";
import popupImageSmall from "./power-of-meshery-small.svg";
import popupImageSmall from "./power-of-meshery-small.png";
import CornerPopupWrapper from "./popup.style";

const CornerPopup = () => {
Expand All @@ -28,7 +28,7 @@ const CornerPopup = () => {
<a href="https://play.meshery.io/">
<img className="popup-image" src={popupImageSmall} />
</a>
<Button primary className="explore-playground-button" title="Explore Meshery Playground" url="https://play.meshery.io/" />
<Button primary className="explore-playground-button" title="Access Playground" url="https://play.meshery.io/" />
</div>
</div>
</div>
Expand Down
30 changes: 17 additions & 13 deletions src/components/Corner-popup/popup.style.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,41 +6,45 @@ const CornerPopupWrapper = styled.div`
bottom: 0;
right: 0;
margin: 0 2rem 3rem 0;
max-width: 30%;
max-height: 40%;
width: 100%;
width: 26rem;
/* background-color: ${props => props.theme.blackToWhite}; */
background-color: transparent;
z-index: 9999;
display: flex;
justify-content: center;
align-items: center;
/* box-shadow: rgba(0, 0, 0, 0.4) 0px 2px 10px; */

@media only screen and (max-width: 1000px) {
max-width: 40%;
max-height: 40%;
max-width: 22rem;
}
@media only screen and (max-width: 640px) {
width: 20rem;
max-width: 55%;
}
}
.popup-inner {
position: relative;
width: 100%;
max-width: 30rem;
background-color: ${props => props.theme.blackToWhite};
display: flex;
flex-direction: column;
justify-content: center;
gap: 1rem;
gap: 0.75rem;
align-items: center;
padding: 7%;
padding: 1rem;
border: 1px solid #00d3a9;
border-radius: 5%;
box-shadow: 0 0 30px rgba(0,211,169, 0.6);
@media only screen and (max-width: 640px) {
padding: 0.5rem;
gap: 0.375rem;
}
}
.close-btn {
position: absolute;
top: 0;
right: 0;
/* width: 8%; */
top: 0rem;
right: 0rem;
cursor: pointer;
}
.popup-image{
Expand All @@ -57,15 +61,15 @@ const CornerPopupWrapper = styled.div`
.explore-playground-button {
min-width: 140px;
@media only screen and (max-width: 422px) {
font-size: 0.9rem;
font-size: 0.75rem;
min-width: 100px;
}

}

svg {
.closeIcon_svg__cls-1{
stop-color: ${props => props.theme.whiteToBlack};
fill: ${props => props.theme.whiteToBlack};
}
}
`;
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.