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

feat: update okx tips style #81

Merged
merged 1 commit into from
Apr 4, 2024
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
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 @@ -435,7 +436,7 @@
if (balance.value) return balance.value;

const filterL1tokens = Object.values(l1Tokens.value ?? []).filter(
(e) => e.networkKey === eraNetwork.value.key || e.address === ETH_TOKEN.l1Address

Check failure on line 439 in views/transactions/Deposit.vue

View workflow job for this annotation

GitHub Actions / Build

'ETH_TOKEN' is not defined
);
return filterL1tokens;
// return Object.values(l1Tokens.value ?? []);
Expand Down Expand Up @@ -863,6 +864,23 @@
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
Loading