Skip to content

Commit 6ba9748

Browse files
committed
🌈style(视频页): 两列呈现,调整左右边距
1 parent f874c8b commit 6ba9748

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

src/pages/projects/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ export const VideoRow = function ({title, videos, ...props}) {
9494
<div className="row">
9595
{
9696
videos.map((video, index) => (
97-
<div className={clsx('col col--4')} key={index}>
97+
<div className={clsx('col col--6')} key={index}>
9898
<div>
9999
<video
100100
type="video/mp4"
@@ -163,7 +163,7 @@ function Projects() {
163163
*/}
164164
<h1 className={clsx(styles.fancytitle2, 'stack')}>在玩乐中创作与表达</h1>
165165
</div>
166-
<main className={clsx("container")}>
166+
<main className={clsx(styles.newContainer)}>
167167
<VideoRow title="" videos={videos['来自CodeLab']}/>
168168
<VideoRow title="" videos={videos['来自社区']}/>
169169
</main>

src/pages/projects/styles.module.css

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,3 +123,11 @@
123123
.modalVideo {
124124
width: 80vw;
125125
}
126+
127+
.newContainer {
128+
max-width: 100rem;
129+
margin-left: auto;
130+
margin-right: auto;
131+
padding-left: 3.75rem;
132+
padding-right: 3.75rem;
133+
}

0 commit comments

Comments
 (0)