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

replace wormhole link with wormholescan link #475

Merged
merged 5 commits into from
Oct 25, 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
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@xlabs/portal-bridge-ui",
"version": "0.1.86",
"version": "0.1.87",
"private": true,
"dependencies": {
"@certusone/wormhole-sdk": "^0.10.4",
Expand Down
11 changes: 10 additions & 1 deletion public/cosmos/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ body {
}

.makeStyles-newTag-17 {
left: 142px;
left: -10px;
color: #E2E1FF;
bottom: 24px;
position: relative;
Expand All @@ -289,11 +289,20 @@ body {
background-color: #3B3785;
}

@media (max-width:1279.95px) {
.wormholescan-link {
margin-top: 8px;
margin-left: 0px;
}
}

@media (max-width:1279.95px) {
.wormholescan-banner {
height: auto;
padding: 8px;
flex-direction: column;
padding-top: 16px;
padding-bottom: 16px;
}
.wormholescan-banner p {
margin: 0px;
Expand Down
13 changes: 5 additions & 8 deletions public/cosmos/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -60,12 +60,6 @@
<div class="spacer"></div>
<div class="links-list">
<div class="links-list-inner">
<div class="MuiChip-root makeStyles-newTag-17 MuiChip-sizeSmall">
<span class="MuiChip-label MuiChip-labelSmall">NEW</span>
</div>
<a class="link" href="https://wormholescan.io" target="_blank" aria-current="page">
Wormholescan
</a>
<a class="link" href="/" target="_blank" aria-current="page">
Token Bridge
</a>
Expand All @@ -81,9 +75,12 @@
<a class="link" href="https://portalbridge.com/docs" target="_blank" rel="noopener noreferrer">
FAQ
</a>
<a class="link" href="https://wormhole.com/" target="_blank" rel="noopener noreferrer">
Wormhole
<a class="link" href="https://wormholescan.io" target="_blank" aria-current="page">
Wormholescan
</a>
<div class="MuiChip-root makeStyles-newTag-17 MuiChip-sizeSmall">
<span class="MuiChip-label MuiChip-labelSmall">NEW</span>
</div>
</div>
</div>
<div class="help-container">
Expand Down
11 changes: 10 additions & 1 deletion public/sui/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ body {
}

.makeStyles-newTag-17 {
left: 142px;
left: -10px;
color: #E2E1FF;
bottom: 24px;
position: relative;
Expand All @@ -289,11 +289,20 @@ body {
background-color: #3B3785;
}

@media (max-width:1279.95px) {
.wormholescan-link {
margin-top: 8px;
margin-left: 0px;
}
}

@media (max-width:1279.95px) {
.wormholescan-banner {
height: auto;
padding: 8px;
flex-direction: column;
padding-top: 16px;
padding-bottom: 16px;
}
.wormholescan-banner p {
margin: 0px;
Expand Down
13 changes: 5 additions & 8 deletions public/sui/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -60,12 +60,6 @@
<div class="spacer"></div>
<div class="links-list">
<div class="links-list-inner">
<div class="MuiChip-root makeStyles-newTag-17 MuiChip-sizeSmall">
<span class="MuiChip-label MuiChip-labelSmall">NEW</span>
</div>
<a class="link" href="https://wormholescan.io" target="_blank" aria-current="page">
Wormholescan
</a>
<a class="link" href="/" target="_blank" aria-current="page">
Token Bridge
</a>
Expand All @@ -81,9 +75,12 @@
<a class="link" href="https://portalbridge.com/docs" target="_blank" rel="noopener noreferrer">
FAQ
</a>
<a class="link" href="https://wormhole.com/" target="_blank" rel="noopener noreferrer">
Wormhole
<a class="link" href="https://wormholescan.io" target="_blank" aria-current="page">
Wormholescan
</a>
<div class="MuiChip-root makeStyles-newTag-17 MuiChip-sizeSmall">
<span class="MuiChip-label MuiChip-labelSmall">NEW</span>
</div>
</div>
</div>
<div class="help-container">
Expand Down
11 changes: 10 additions & 1 deletion public/usdc-bridge/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ body {
}

.makeStyles-newTag-17 {
left: 142px;
left: -10px;
color: #E2E1FF;
bottom: 24px;
position: relative;
Expand Down Expand Up @@ -384,11 +384,20 @@ body {
pointer-events: none;
}

@media (max-width:1279.95px) {
.wormholescan-link {
margin-top: 8px;
margin-left: 0px;
}
}

@media (max-width:1279.95px) {
.wormholescan-banner {
height: auto;
padding: 8px;
flex-direction: column;
padding-top: 16px;
padding-bottom: 16px;
}
.wormholescan-banner p {
margin: 0px;
Expand Down
13 changes: 5 additions & 8 deletions public/usdc-bridge/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,6 @@
<div class="spacer"></div>
<div class="links-list">
<div class="links-list-inner">
<div class="MuiChip-root makeStyles-newTag-17 MuiChip-sizeSmall">
<span class="MuiChip-label MuiChip-labelSmall">NEW</span>
</div>
<a class="link" href="https://wormholescan.io" target="_blank" aria-current="page">
Wormholescan
</a>
<a class="link" href="/" target="_blank" aria-current="page">
Token Bridge
</a>
Expand All @@ -72,9 +66,12 @@
<a class="link" href="https://portalbridge.com/docs" target="_blank" rel="noopener noreferrer">
FAQ
</a>
<a class="link" href="https://wormhole.com/" target="_blank" rel="noopener noreferrer">
Wormhole
<a class="link" href="https://wormholescan.io" target="_blank" aria-current="page">
Wormholescan
</a>
<div class="MuiChip-root makeStyles-newTag-17 MuiChip-sizeSmall">
<span class="MuiChip-label MuiChip-labelSmall">NEW</span>
</div>
</div>
</div>
<div class="help-container">
Expand Down
33 changes: 12 additions & 21 deletions src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ const useStyles = makeStyles((theme) => ({
},
newTag: {
position: "relative",
left: "142px",
left: "-10px",
bottom: "24px",
backgroundColor: "#3B3785",
color: "#E2E1FF",
Expand Down Expand Up @@ -222,17 +222,6 @@ function App() {
<div className={classes.spacer} />
<Hidden implementation="css" xsDown>
<div style={{ display: "flex", alignItems: "center" }}>
<Box>
<Chip className={classes.newTag} label="NEW" size="small" />
<Link
href="https://wormholescan.io"
target="_blank"
color="inherit"
className={classes.link}
>
Wormholescan
</Link>
</Box>
<Link
component={NavLink}
to="/transfer"
Expand Down Expand Up @@ -277,15 +266,17 @@ function App() {
>
FAQ
</Link>
<Link
href="https://wormhole.com/"
target="_blank"
rel="noopener noreferrer"
color="inherit"
className={classes.link}
>
Wormhole
</Link>
<Box>
<Link
href="https://wormholescan.io"
target="_blank"
color="inherit"
className={classes.link}
>
Wormholescan
</Link>
<Chip className={classes.newTag} label="NEW" size="small" />
</Box>
</div>
</Hidden>
<Hidden implementation="css" smUp>
Expand Down
2 changes: 2 additions & 0 deletions src/components/NewsBar/Bar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ const useStyles = makeStyles<Theme, Pick<Message, "background">>((theme) => ({
height: "auto",
flexDirection: "column",
padding: theme.spacing(1),
paddingTop: theme.spacing(2),
paddingBottom: theme.spacing(2),
},
textAlign: "center",
fontWeight: 500,
Expand Down
42 changes: 24 additions & 18 deletions src/components/NewsBar/NewsBarButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,24 +3,30 @@ import type { Theme } from "@material-ui/core/styles";
import Link from "@material-ui/core/Link";
import makeStyles from "@material-ui/core/styles/makeStyles";

const useStyles = makeStyles<Theme, Pick<Message, "button">>(() => ({
bannerLink: {
display: "inline-flex",
alignItems: "center",
borderRadius: 20,
padding: "6px 12px",
backgroundColor: "white",
color: ({ button }) => button.background,
marginLeft: "8px",
fontSize: "12px",
letterSpacing: "0.08em",
fontWeight: 600,
minHeight: "32px",
minWidth: "fit-content",
fontFamily: "Poppins",
wordWrap: "break-word",
},
}));
const useStyles = makeStyles<Theme, Pick<Message, "button">>(
(theme: Theme) => ({
bannerLink: {
[theme.breakpoints.down("md")]: {
marginLeft: "0px",
marginTop: theme.spacing(1),
},
display: "inline-flex",
alignItems: "center",
borderRadius: 20,
padding: "6px 12px",
backgroundColor: "white",
color: ({ button }) => button.background,
marginLeft: "8px",
fontSize: "12px",
letterSpacing: "0.08em",
fontWeight: 600,
minHeight: "32px",
minWidth: "fit-content",
fontFamily: "Poppins",
wordWrap: "break-word",
},
})
);

export default function NewsBarButton({ button }: Pick<Message, "button">) {
const classes = useStyles({ button });
Expand Down