Skip to content

Commit 7adbce1

Browse files
committed
为「玩给你看」添加社区项目源码
1 parent 8fa7a09 commit 7adbce1

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

src/pages/projects/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ export const VideoRow = function ({title, videos, ...props}) {
103103
className={clsx(styles.video, 'lozad')}
104104
onClick={() => openModal(video)}
105105
/>
106-
<p className={clsx('text--center', styles.headerFontTitle)}>{video.title}</p>
106+
<p className={clsx('text--center', styles.headerFontTitle)}>{video.title}{video.project_url ?<a target="_blank" href={video.project_url}>(项目地址)</a>: null}</p>
107107
</div>
108108

109109
{/*

static/video_config.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,14 @@
2424
}
2525
],
2626
"横版视频": [
27+
{
28+
"src": "https://adapter.codelab.club/video/1608689235907497.mp4",
29+
"title": "魔杖激活开场视频",
30+
"id": "3",
31+
"tags": ["Neverland2"],
32+
"weight": "",
33+
"project_url": "https://create.codelab.club/projects/8499/"
34+
},
2735
{
2836
"src": "https://adapter.codelab.club/video/1608519188336306.mp4",
2937
"title": "Neverland 2.0 原型-Welcome to CodeLab",

0 commit comments

Comments
 (0)