-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: 三咲智子 Kevin Deng <[email protected]>
- Loading branch information
1 parent
2c07ec2
commit 0785d9d
Showing
12 changed files
with
230 additions
and
113 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.
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,28 +1,21 @@ | ||
<script setup lang="ts"> | ||
import { useHead } from '@unhead/vue' | ||
import { isShowMenu } from './utils/menu' | ||
useHead({ | ||
titleTemplate: (title) => (title ? `${title} | 开源面对面` : '开源面对面'), | ||
}) | ||
</script> | ||
|
||
<template> | ||
<app-header /> | ||
<ai-assistant /> | ||
<router-view v-slot="{ Component }"> | ||
<Transition> | ||
<component :is="Component" /> | ||
</Transition> | ||
</router-view> | ||
<app-footer /> | ||
<div :class="{ 'overflow-hidden': isShowMenu }"> | ||
<app-header /> | ||
<ai-assistant /> | ||
<router-view v-slot="{ Component }"> | ||
<Transition> | ||
<component :is="Component" /> | ||
</Transition> | ||
</router-view> | ||
<app-footer /> | ||
</div> | ||
</template> | ||
|
||
<style scoped> | ||
.v-enter-active { | ||
transition: opacity 0.3s ease-in; | ||
} | ||
.v-enter-from { | ||
opacity: 0; | ||
} | ||
</style> |
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 |
---|---|---|
@@ -1,101 +1,82 @@ | ||
<script setup lang="ts"> | ||
import { Menu } from 'floating-vue' | ||
import 'floating-vue/dist/style.css' | ||
const isDark = useDark() | ||
const toggleDark = useToggle(isDark) | ||
</script> | ||
|
||
<template> | ||
<header | ||
flex="~ row none" | ||
relative | ||
h-240px | ||
w-full | ||
justify-center | ||
style="background: var(--header-bg)" | ||
> | ||
<div flex="~ col gap-16px" items-center justify-center> | ||
<router-link :to="{ name: 'Index' }"> | ||
<img | ||
h-100px | ||
w-100px | ||
rounded-2 | ||
src="/static/logo.png" | ||
alt="开源面对面" | ||
/> | ||
</router-link> | ||
<span>开源面对面,连接热爱开源的你!</span> | ||
|
||
<div flex="~ row gap-2" flex-wrap justify-center> | ||
<a target="_blank" href="https://github.com/opensource-f2f"> | ||
<img | ||
alt="GitHub Org's stars" | ||
src="https://img.shields.io/github/stars/opensource-f2f?style=social" | ||
/> | ||
</a> | ||
<a target="_blank" href="https://twitter.com/osf2f"> | ||
<header style="background: var(--header-bg)"> | ||
<app-navbar /> | ||
<div flex="~ row none" relative h-240px w-full justify-center> | ||
<div flex="~ col gap-16px" items-center justify-center> | ||
<router-link :to="{ name: 'Index' }"> | ||
<img | ||
alt="Twitter followers" | ||
src="https://img.shields.io/twitter/follow/osf2f?style=social" | ||
h-100px | ||
w-100px | ||
rounded-2 | ||
src="/static/logo.png" | ||
alt="开源面对面" | ||
/> | ||
</a> | ||
<a | ||
target="_blank" | ||
href="https://www.youtube.com/channel/UCV7Ibg1k_aMSEcDFgJvuvdg" | ||
> | ||
<img | ||
alt="YouTube subscribers" | ||
src="https://img.shields.io/youtube/channel/subscribers/UCV7Ibg1k_aMSEcDFgJvuvdg?style=social" | ||
/> | ||
</a> | ||
<a target="_blank" href="https://feeds.osf2f.net/osf2f.xml"> | ||
<img | ||
alt="RSS address" | ||
src="https://img.shields.io/badge/rss-F88900?style=flat&logo=rss&logoColor=white" | ||
/> | ||
</a> | ||
<a | ||
target="_blank" | ||
href="https://open.spotify.com/show/48Yeu1L5pTluk1AVc3ShU6" | ||
> | ||
<img | ||
alt="Listen on Spotify" | ||
src="https://img.shields.io/badge/spotify-1DB954?style=flat&logo=spotify&logoColor=white" | ||
/> | ||
</a> | ||
<a target="_blank" href="https://music.163.com/#/djradio?id=1001312291"> | ||
<img h-20px alt="NetEase Music" src="/static/netease-music.svg" /> | ||
</a> | ||
</router-link> | ||
<span>开源面对面,连接热爱开源的你!</span> | ||
|
||
<Menu> | ||
<div text="#2aae67" i-carbon-logo-wechat cursor-pointer text-20px /> | ||
<template #popper> | ||
<div flex="~ col" m-10px> | ||
<img | ||
h-150px | ||
alt="Weixin Offcial Accounts Platform" | ||
src="/static/we-chat.jpeg" | ||
/>扫一扫 关注微信公众号 | ||
</div> | ||
</template> | ||
</Menu> | ||
</div> | ||
</div> | ||
<div | ||
absolute | ||
right-5 | ||
top-5 | ||
cursor-pointer | ||
i="dark:carbon-moon carbon-sun" | ||
text="black 2xl" | ||
@click="toggleDark()" | ||
/> | ||
<div flex="~ row gap-2" flex-wrap justify-center> | ||
<a target="_blank" href="https://github.com/opensource-f2f"> | ||
<img | ||
alt="GitHub Org's stars" | ||
src="https://img.shields.io/github/stars/opensource-f2f?style=social" | ||
/> | ||
</a> | ||
<a target="_blank" href="https://twitter.com/osf2f"> | ||
<img | ||
alt="Twitter followers" | ||
src="https://img.shields.io/twitter/follow/osf2f?style=social" | ||
/> | ||
</a> | ||
<a | ||
target="_blank" | ||
href="https://www.youtube.com/channel/UCV7Ibg1k_aMSEcDFgJvuvdg" | ||
> | ||
<img | ||
alt="YouTube subscribers" | ||
src="https://img.shields.io/youtube/channel/subscribers/UCV7Ibg1k_aMSEcDFgJvuvdg?style=social" | ||
/> | ||
</a> | ||
<a target="_blank" href="https://feeds.osf2f.net/osf2f.xml"> | ||
<img | ||
alt="RSS address" | ||
src="https://img.shields.io/badge/rss-F88900?style=flat&logo=rss&logoColor=white" | ||
/> | ||
</a> | ||
<a | ||
target="_blank" | ||
href="https://open.spotify.com/show/48Yeu1L5pTluk1AVc3ShU6" | ||
> | ||
<img | ||
alt="Listen on Spotify" | ||
src="https://img.shields.io/badge/spotify-1DB954?style=flat&logo=spotify&logoColor=white" | ||
/> | ||
</a> | ||
<a | ||
target="_blank" | ||
href="https://music.163.com/#/djradio?id=1001312291" | ||
> | ||
<img h-20px alt="NetEase Music" src="/static/netease-music.svg" /> | ||
</a> | ||
|
||
<router-link to="/"> | ||
<div absolute left-5 top-5 cursor-pointer text="black 2xl"> | ||
<div i-carbon-home text="[var(--text-color)]" /> | ||
<Menu> | ||
<div text="#2aae67" i-carbon-logo-wechat cursor-pointer text-20px /> | ||
<template #popper> | ||
<div flex="~ col" m-10px> | ||
<img | ||
h-150px | ||
alt="Weixin Offcial Accounts Platform" | ||
src="/static/we-chat.jpeg" | ||
/>扫一扫 关注微信公众号 | ||
</div> | ||
</template> | ||
</Menu> | ||
</div> | ||
</div> | ||
</router-link> | ||
</div> | ||
</header> | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
<script setup lang="ts"> | ||
const isDark = useDark() | ||
const toggleDark = useToggle(isDark) | ||
</script> | ||
|
||
<template> | ||
<div px-20px> | ||
<div flex> | ||
<!-- logo --> | ||
<div h-60px flex items-center> | ||
<router-link to="/"> | ||
<div cursor-pointer text="black 2xl"> | ||
<div i-carbon-home text="[var(--text-color)]" /> | ||
</div> | ||
</router-link> | ||
</div> | ||
|
||
<div class="content" flex="~ grow-1 justify-end gap5" items-center> | ||
<NavMenu /> | ||
|
||
<!-- search --> | ||
<!-- <NavSearch /> --> | ||
|
||
<!-- theme-toggler --> | ||
<div | ||
cursor-pointer | ||
i="dark:carbon-moon carbon-sun" | ||
text="black 2xl" | ||
@click="toggleDark()" | ||
/> | ||
|
||
<!-- github --> | ||
<a target="_blank" href="https://github.com/opensource-f2f"> | ||
<div text="black 2xl" cursor-pointer> | ||
<div i-carbon-logo-github text="[var(--text-color)]" /> | ||
</div> | ||
</a> | ||
|
||
<!-- collapsible menu --> | ||
<NavHamburger /> | ||
</div> | ||
</div> | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
<script setup lang="ts"> | ||
import { isShowMenu, menus } from '../../utils/menu' | ||
const router = useRouter() | ||
router.afterEach(() => { | ||
isShowMenu.value = false | ||
}) | ||
</script> | ||
|
||
<template> | ||
<div | ||
cursor-pointer | ||
text-2xl | ||
sm-hidden | ||
:class="isShowMenu ? 'i-carbon-close' : 'i-carbon-menu'" | ||
@click="isShowMenu = !isShowMenu" | ||
/> | ||
<Transition> | ||
<div | ||
v-show="isShowMenu" | ||
flex="~ col gap2" | ||
bg="[var(--bg)]" | ||
fixed | ||
left-0 | ||
top-60px | ||
z-999 | ||
h-full | ||
w-full | ||
px-50px | ||
py-10px | ||
duration="150!" | ||
> | ||
<router-link | ||
v-for="(item, key) in menus" | ||
:key="key" | ||
border-b="1px solid [var(--border-color)]" | ||
class="text-[var(--text-color)]" | ||
flex="~ gap2" | ||
items-center | ||
justify-center | ||
p2 | ||
:to="item.href" | ||
> | ||
<div :class="item.icon" text-xl /> | ||
{{ item.label }} | ||
</router-link> | ||
</div> | ||
</Transition> | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<script setup lang="ts"> | ||
import { menus } from '../../utils/menu' | ||
</script> | ||
|
||
<template> | ||
<nav flex> | ||
<router-link | ||
v-for="(item, key) in menus" | ||
:key="key" | ||
:to="item.href" | ||
class="text-[var(--text-color)]" | ||
sm="flex flex-gap1" | ||
ml-20px | ||
hidden | ||
items-center | ||
> | ||
<!-- TODO tooltip for label --> | ||
<div :title="item.label" :class="item.icon" class="text-2xl" /> | ||
</router-link> | ||
</nav> | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<script setup lang="ts"></script> | ||
|
||
<template> | ||
<div>search</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
Oops, something went wrong.