Skip to content

Commit

Permalink
Add support box to home page (#44)
Browse files Browse the repository at this point in the history
  • Loading branch information
vokomarov authored Apr 24, 2024
2 parents ccff3b2 + 5a71530 commit fd81359
Show file tree
Hide file tree
Showing 5 changed files with 55 additions and 4 deletions.
2 changes: 1 addition & 1 deletion assets/main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ button, a {
@apply sm:py-16 sm:px-8 py-8 px-4 rounded-md mb-8;

h2 {
@apply text-7xl font-light leading-tight mb-2;
@apply text-6xl font-light leading-tight mb-2;
}

h3 {
Expand Down
6 changes: 6 additions & 0 deletions lang/en.ts
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,12 @@ export default {
secure: 'Secure',
secureDescription: 'We\'re keeping your data protected. Sensitive personal data is encrypted using cryptographically strong algorithms',

support: {
header: 'Support Ukraine',
lead: 'Cash Track team supports Ukraine by making donation to various fundraising initiatives. As ukrainians it is our responsibility to work hard and make everything depends on us to help our country survive. Join us.',
help: 'How to help?'
},

telegram: {
header: 'Telegram',
lead:
Expand Down
6 changes: 6 additions & 0 deletions lang/uk.ts
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,12 @@ export default {
secure: 'Безпечно',
secureDescription: 'Ваші дані захищено. Чутливі персональні дані зашифровано за допомогою криптографічно стійких алгоритмів',

support: {
header: 'Підтримуйте Україну',
lead: 'Команда Cash Track підтримує Україну за допомогою донатів на численні ініціативи збору коштів. Це наша відповідальність - важко працювати та робити все, що від нас залежить, щоб допомогти нашій країні вижити. Приєднуйтесь до нас.',
help: 'Як допомогти?'
},

telegram: {
header: 'Телеграм',
lead:
Expand Down
45 changes: 42 additions & 3 deletions pages/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,29 @@
</div>
</div>

<div class="jumbotron support">
<h3>
<span>
{{ $t('home.support.header') }}
</span>
</h3>
<p class="lead">
<span>{{ $t('home.support.lead') }}</span>
</p>
<span>
<UButton
color="primary"
variant="soft"
size="lg"
to="https://supportukrainenow.org/"
target="_blank"
class="hover:bg-primary-500 hover:text-white transition-colors"
>
{{ $t('home.support.help') }}
</UButton>
</span>
</div>

<div class="jumbotron telegram">
<h3>{{ $t('home.telegram.header') }}</h3>
<p class="lead">
Expand Down Expand Up @@ -104,12 +127,28 @@ h3 {
.telegram {
background-image: url('/img/tg-logo.png');
background-size: contain;
background-repeat: no-repeat;
background-position: calc(100% + 120px) 40px;
background-color: #f5fff5;
@apply dark:bg-gray-900;
@apply bg-contain bg-no-repeat dark:bg-gray-900;
}
.support {
@apply z-0 relative overflow-hidden pb-24 dark:bg-gray-900;
h3 > span, p > span {
box-decoration-break: clone;
-webkit-box-decoration-break: clone;
@apply bg-cash-200 py-1 px-2 dark:bg-cash-950;
}
&:before {
background-image: url('/img/podarunok.jpg');
content: '';
@apply -z-10 absolute left-0 top-0 h-full w-full bg-bottom bg-no-repeat bg-cover;
}
}
.welcome {
Expand Down
Binary file added public/img/podarunok.JPG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit fd81359

Please sign in to comment.