Skip to content

Commit

Permalink
Merge pull request #81 from zkLinkProtocol/fix/okx-tips
Browse files Browse the repository at this point in the history
feat: update okx tips style
  • Loading branch information
Evan-zkLinkLabs authored Apr 4, 2024
2 parents abc0af3 + 22ae5ba commit d1c552f
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 4 deletions.
9 changes: 9 additions & 0 deletions public/img/okx-tips-bg.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
26 changes: 22 additions & 4 deletions views/transactions/Deposit.vue
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
<template>
<div>
<div class="okx-tips mb-[10px] flex gap-[12px]" v-if="route.query?.s === 'okx'">
<img src="/img/okx-cryptopedia.svg" class="h-[64px] w-[64px] rounded-[8px]" />
<div>
<div class="okx-tips mb-[10px]" v-if="route.query?.s === 'okx'">
<div class="okx-tips-cover"></div>
<!-- <img src="/img/okx-cryptopedia.svg" class="h-[64px] w-[64px] rounded-[8px]" /> -->
<div class="z-2">
<a
href="https://www.okx.com/web3/discover/cryptopedia/event/28"
target="_blank"
class="okx-tips-title flex cursor-pointer items-center gap-[4px]"
class="okx-tips-title flex cursor-pointer items-center gap-[4px] z-2 relative"
>
<span>OKX Cryptopedia</span>
<img src="/img/launch.svg" />
Expand Down Expand Up @@ -863,6 +864,23 @@ onboardStore.subscribeOnNetworkChange((newchainId) => {
border-radius: 8px;
border: 1px solid #262b33;
background: #000;
background-image: url("/img/okx-tips-bg.svg");
background-size: cover;
background-position: center;
background-repeat: no-repeat;
.okx-tips-cover {
content: "";
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
display: block;
background: rgba($color: #000000, $alpha: 0.7);
z-index: 0;
}
&-title {
color: #fff;
font-size: 14px;
Expand Down

0 comments on commit d1c552f

Please sign in to comment.