-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
merge pull request #33 from mnenie/dev
feat: still work on welcome
- Loading branch information
Showing
19 changed files
with
436 additions
and
16 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,12 @@ | ||
<script setup lang="ts"> | ||
import { HeaderWelcome } from '@/widgets/layout'; | ||
import { AboutSection, MarketingCards } from '@/widgets/welcome'; | ||
</script> | ||
|
||
<template> | ||
<HeaderWelcome /> | ||
</template> | ||
<HeaderWelcome /> | ||
<div style="padding: 152px 40px 0px 40px"> | ||
<AboutSection /> | ||
<MarketingCards /> | ||
</div> | ||
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
import type { MarketingCard } from '../types'; | ||
|
||
export const _cards = [ | ||
{ | ||
id: 0, | ||
pagePrefix: 'kanban', | ||
height: '270', | ||
width: '800' | ||
}, | ||
{ | ||
id: 1, | ||
pagePrefix: 'collaborative', | ||
height: '300', | ||
width: '800' | ||
}, | ||
{ | ||
id: 2, | ||
pagePrefix: 'members', | ||
width: '500', | ||
height: '420' | ||
}, | ||
{ | ||
id: 3, | ||
pagePrefix: 'templates', | ||
width: '500' | ||
}, | ||
{ | ||
id: 4, | ||
pagePrefix: 'chats', | ||
width: '340' | ||
} | ||
] satisfies MarketingCard[]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export * from './ui'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
export interface MarketingCard { | ||
id: number; | ||
title?: string; | ||
description?: string; | ||
width?: string; | ||
height?: string; | ||
pagePrefix: string; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,104 @@ | ||
<script setup lang="ts"> | ||
import { useI18n } from 'vue-i18n'; | ||
import { useDark } from '@vueuse/core'; | ||
import { UiButton } from '@/shared/ui'; | ||
import { ArrowRight } from 'lucide-vue-next'; | ||
import { RouteNames } from '@/shared/config/consts'; | ||
const isDark = useDark(); | ||
const { t } = useI18n(); | ||
</script> | ||
|
||
<template> | ||
<section :class="$style.container"> | ||
<div :class="$style.badge"> | ||
<span style="margin-right: 3px">✨</span> | ||
<span class="text-sm">{{ t('welcome.about.badge') }}</span> | ||
<ArrowRight :size="14" /> | ||
</div> | ||
<h1>{{ t('welcome.about.tagline') }}</h1> | ||
<p class="text-lg"> | ||
{{ t('welcome.about.description') }} | ||
</p> | ||
<div :class="$style.btns"> | ||
<UiButton @click="$router.push({ name: RouteNames.registration })"> | ||
{{ t('welcome.about.btn') }} | ||
</UiButton> | ||
<UiButton variant="outline" :class="$style.btn_git"> | ||
<img :src="!isDark ? '/icons/github.png' : '/icons/github-d.png'" /> | ||
GitHub | ||
</UiButton> | ||
</div> | ||
</section> | ||
</template> | ||
|
||
<style module lang="scss"> | ||
.container { | ||
display: flex; | ||
margin: 0 auto; | ||
max-width: 980px; | ||
flex-direction: column; | ||
align-items: center; | ||
gap: 4px; | ||
padding: 0 16px; | ||
& > h1 { | ||
margin-bottom: 2px; | ||
text-align: center; | ||
font-size: 72px; | ||
font-weight: 600; | ||
line-height: 1.25; | ||
letter-spacing: -0.05em; | ||
} | ||
& > p { | ||
max-width: 600px; | ||
text-align: center; | ||
color: var(--zinc-500); | ||
} | ||
.badge { | ||
background-color: var(--zinc-100); | ||
padding: 2px 10px; | ||
display: flex; | ||
align-items: center; | ||
gap: 6px; | ||
cursor: pointer; | ||
border-radius: 8px; | ||
color: var(--zinc-500); | ||
} | ||
.btns { | ||
display: flex; | ||
width: 100%; | ||
align-items: center; | ||
justify-content: center; | ||
gap: 16px; | ||
padding: 12px 0; | ||
.btn_git { | ||
& > img { | ||
width: 16px; | ||
height: 16px; | ||
margin-right: 6px; | ||
} | ||
} | ||
} | ||
} | ||
:global(html.dark) { | ||
.container { | ||
.badge { | ||
background-color: var(--zinc-600); | ||
color: var(--zinc-300); | ||
} | ||
& > p { | ||
color: var(--zinc-300); | ||
} | ||
// & > h1{ | ||
// color: var(--zinc-200); | ||
// } | ||
} | ||
} | ||
</style> |
Oops, something went wrong.