Skip to content

Commit

Permalink
Updated headers for claims and veBAL (#2000)
Browse files Browse the repository at this point in the history
* wip new claims header

* Updated claims header

* Updated veBAL header

* Clean up veBAL header

* Clean up Claims header

* Update claims header

* updated veBAL repeating background
  • Loading branch information
pkattera authored Jun 29, 2022
1 parent 8babe3e commit 4d8aaeb
Show file tree
Hide file tree
Showing 15 changed files with 267 additions and 96 deletions.
1 change: 1 addition & 0 deletions public/images/backgrounds/claims-header.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 0 additions & 9 deletions public/images/backgrounds/spirograph.svg

This file was deleted.

1 change: 1 addition & 0 deletions public/images/backgrounds/vebal-hero-noise.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/patterns/fish-scale.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 5 additions & 1 deletion src/assets/css/global/typography.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ h2 {
font-variation-settings: 'wght' 700;
}
h1 {
@apply text-4xl 2xl:text-5xl;
@apply text-4xl;
}
h2 {
@apply text-3xl;
Expand Down Expand Up @@ -105,3 +105,7 @@ th {
.link-black {
@apply text-black dark:text-white;
}

.text-shadow {
text-shadow: 0px 1px 0px rgb(0 0 0 / 10%), 4px 4px 8px rgb(0 0 0 / 15%);
}
1 change: 1 addition & 0 deletions src/assets/images/icons/claims-header/add-liquidity.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions src/assets/images/icons/claims-header/claim.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions src/assets/images/icons/claims-header/stake.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions src/assets/images/icons/claims-header/vebal.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/_global/BalBtn/BalBtn.vue
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ export default defineComponent({
});
const bgGradientClasses = computed(() => {
if (props.outline) return 'bg-transparent';
if (props.outline) return 'bg-transparent hover:bg-gray-50';
let fromColor = 'blue';
let toColor = 'pink';
Expand Down Expand Up @@ -167,7 +167,7 @@ export default defineComponent({
return 'text-gray-400 dark:text-gray-700';
if (props.outline && props.color === 'gradient') return 'text-purple-700';
if (props.color === 'white') {
if (props.outline) return 'text-white';
if (props.outline) return 'text-white hover:border-gray-400';
else return 'text-gray-800 dark:text-gray-100';
}
if (props.outline || props.flat)
Expand Down
4 changes: 2 additions & 2 deletions src/components/_global/BalTooltip/BalTooltip.vue
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ onUnmounted(() => {
</slot>
</button>
<div ref="content" class="tooltip" :class="tooltipClasses" v-bind="$attrs">
<div :class="tooltipPad" class="tooltip-content">
<div :class="tooltipPad" class="tooltip-content font-medium">
<p class="tooltip-text" v-if="text" v-text="text" />
<slot v-else />
</div>
Expand Down Expand Up @@ -206,7 +206,7 @@ onUnmounted(() => {
}
.tooltip-content {
@apply rounded-md text-xs text-black dark:text-white bg-white dark:bg-gray-900 font-medium;
@apply rounded-md text-xs text-black dark:text-white bg-white dark:bg-gray-900;
}
.tooltip-text {
Expand Down
151 changes: 151 additions & 0 deletions src/components/contextual/pages/claim/HeroClaim.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,151 @@
<script setup lang="ts"></script>

<template>
<div class="bg">
<div class="w-full hero-container">
<div class="hero-content">
<div class="hero-text fade-in-slow">
<h1 class="title mb-3 text-white text-shadow">
{{ $t('claimHero.title') }}
</h1>
<p class="body-text text-shadow">
{{ $t('claimHero.description') }}
</p>
</div>
</div>
<div class="hero-graphic-container">
<div
class="grid grid-cols-2 sm:grid-cols-4 gap-8 sm:gap-4 xl:gap-12 items-center w-full fade-in-slow"
>
<div class="tip group">
<img
width="144"
height="144"
class="tip-icon"
src="@/assets/images/icons/claims-header/add-liquidity.svg"
/>
<p class="tip-label font-semibold text-shadow">
{{ $t('claimHero.tipLabel.addLiquidity') }}
<BalTooltip
iconSize="xs"
textAlign="left"
class="relative top-px"
iconClass="text-white"
width="60"
>
{{ $t('claimHero.tips.addLiquidity') }}
</BalTooltip>
</p>
</div>
<div class="tip group">
<img
width="144"
height="144"
class="tip-icon"
src="@/assets/images/icons/claims-header/stake.svg"
/>
<p class="tip-label font-semibold text-shadow">
{{ $t('claimHero.tipLabel.stake') }}
<BalTooltip
iconSize="xs"
textAlign="left"
class="relative top-px"
iconClass="text-white"
width="60"
>
{{ $t('claimHero.tips.stake') }}
</BalTooltip>
</p>
</div>
<div class="tip group">
<img
width="144"
height="144"
class="tip-icon"
src="@/assets/images/icons/claims-header/vebal.svg"
/>
<p class="tip-label font-semibold text-shadow">
{{ $t('claimHero.tipLabel.boost') }}
<BalTooltip
iconSize="xs"
textAlign="left"
class="relative top-px"
iconClass="text-white"
width="60"
>
{{ $t('claimHero.tips.boost') }}
</BalTooltip>
</p>
</div>
<div class="tip group">
<img
width="144"
height="144"
class="tip-icon"
src="@/assets/images/icons/claims-header/claim.svg"
/>
<p class="tip-label font-semibold text-shadow">
{{ $t('claimHero.tipLabel.claim') }}
<BalTooltip
iconSize="xs"
textAlign="left"
class="relative top-px"
iconClass="text-white"
width="60"
>
{{ $t('claimHero.tips.claim') }}
</BalTooltip>
</p>
</div>
</div>
</div>
</div>
</div>
</template>

<style scoped>
.bg {
@apply bg-gradient-to-r from-pink-500 to-yellow-500 relative;
background-image: url('/images/backgrounds/claims-header.svg');
@apply bg-no-repeat bg-cover bg-center;
}
.hero-container {
@apply grid grid-cols-1 lg:grid-cols-3 lg:container lg:mx-auto;
}
.hero-graphic-container {
@apply w-full px-4 py-8 xl:p-8 flex items-center lg:col-span-2;
}
.hero-content {
@apply px-4 pt-12 lg:p-8 lg:pl-0 flex items-center w-full relative;
}
.hero-text {
@apply opacity-0;
}
.body-text {
@apply text-white pb-0 font-medium;
text-shadow: 0px 1px 0px rgb(0 0 0 / 15%), 4px 4px 8px rgb(0 0 0 / 15%);
}
.tip {
@apply flex flex-col items-center text-center group;
}
.tip-icon {
@apply pb-4 transition-transform duration-300;
}
.tip-label {
@apply text-white leading-5 transition-colors;
}
.tip:hover .tip-icon {
/* Tailwind class -translate-y-2 not working for some reason here */
transform: translateY(-8px);
}
.tip-number {
@apply block pb-1;
}
</style>
Loading

4 comments on commit 4d8aaeb

@vercel
Copy link

@vercel vercel bot commented on 4d8aaeb Jun 29, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vercel
Copy link

@vercel vercel bot commented on 4d8aaeb Jun 29, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vercel
Copy link

@vercel vercel bot commented on 4d8aaeb Jun 29, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vercel
Copy link

@vercel vercel bot commented on 4d8aaeb Jun 29, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.