-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* guest banner * update icons * fix style details * typo * upgrade casdoor-js-sdk
- Loading branch information
Showing
12 changed files
with
291 additions
and
152 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
60 changes: 60 additions & 0 deletions
60
spx-gui/src/components/community/home/banner/GuestBanner.vue
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,60 @@ | ||
<script setup lang="ts"> | ||
import { useUserStore } from '@/stores/user' | ||
import { UIButton } from '@/components/ui' | ||
import CommunityCard from '../../CommunityCard.vue' | ||
const userStore = useUserStore() | ||
function handleJoin() { | ||
userStore.initiateSignIn() | ||
} | ||
</script> | ||
|
||
<template> | ||
<CommunityCard class="guest-banner"> | ||
<div class="main"> | ||
<h1 class="title"> | ||
{{ $t({ en: 'Join Go+ Builder', zh: '加入 Go+ Builder' }) }} | ||
</h1> | ||
<h4 class="sub-title"> | ||
{{ $t({ en: 'Build and share your projects', zh: '创作并分享你的作品' }) }} | ||
</h4> | ||
<UIButton class="join-btn" type="primary" size="large" @click="handleJoin"> | ||
{{ $t({ en: 'Join now', zh: '立即加入' }) }} | ||
</UIButton> | ||
</div> | ||
</CommunityCard> | ||
</template> | ||
|
||
<style lang="scss" scoped> | ||
.guest-banner { | ||
padding: 12px; | ||
} | ||
.main { | ||
position: relative; | ||
padding: 48px 52px 50px; | ||
border-radius: var(--ui-border-radius-2); | ||
color: #073156; | ||
background-color: #f0faff; | ||
background-image: url('./bg.svg'); | ||
background-repeat: no-repeat; | ||
background-position: center right 54px; | ||
} | ||
.title { | ||
font-size: 24px; | ||
line-height: 1.5; | ||
} | ||
.sub-title { | ||
font-size: 13px; | ||
line-height: 20px; | ||
margin-top: 8px; | ||
} | ||
.join-btn { | ||
margin-top: 28px; | ||
} | ||
</style> |
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
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
Oops, something went wrong.