Skip to content

Commit 2165d4d

Browse files
committed
feat: make content pages like dc++ and contribute narrower
1 parent b7c78a8 commit 2165d4d

File tree

3 files changed

+23
-3
lines changed

3 files changed

+23
-3
lines changed

src/pages/Contribute.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { Link } from "react-router-dom";
66

77
const ContributePage = () => {
88
return (
9-
<div className="page-container">
9+
<div className="content-page-container">
1010
<section className="contri-intro-section">
1111
<div className="contri-intro">
1212
<div className="contri-intro-container">

src/pages/DCPage.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import TerminalDisplay from "../components/TerminalDisplay";
44

55
function DCPage() {
66
return (
7-
<div className="page-container">
7+
<div className="content-page-container">
88
<section className="topic-section">
99
<h2 className="section-header-left">Introducing DC++</h2>
1010
<p className="description">

src/styles/pages/App.css

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,17 @@
4444
}
4545

4646
.page-container {
47-
margin: 50px 15%;
47+
margin: 50px 20%;
48+
/* width: 100%; */
49+
text-align: left;
50+
display: flex;
51+
justify-content: center;
52+
align-items: center;
53+
flex-direction: column;
54+
}
55+
56+
.content-page-container {
57+
margin: 50px 30%;
4858
/* width: 100%; */
4959
text-align: left;
5060
display: flex;
@@ -99,4 +109,14 @@
99109
.page-container {
100110
margin: 10px 5%;
101111
}
112+
113+
.content-page-container {
114+
margin: 10px 5%;
115+
}
116+
}
117+
118+
@media screen and (max-width: 1570px) {
119+
.content-page-container {
120+
margin: 15px 20%;
121+
}
102122
}

0 commit comments

Comments
 (0)