Skip to content

Commit c9ab3a1

Browse files
committed
Tweaks to make everything fit on mobile, enable gallery
1 parent 467efc4 commit c9ab3a1

File tree

8 files changed

+59
-19
lines changed

8 files changed

+59
-19
lines changed

app/(docs)/docs/[...slug]/page.tsx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,11 @@ import path from "path"
55
export function generateStaticParams() {
66
const docsContents = readdirSync(path.join(process.cwd(), "docs-root"), { recursive: true, withFileTypes: true, encoding: "utf-8" })
77
const docsFiles = docsContents.filter(i => i.isFile())
8-
8+
99
const staticParams = docsFiles.map((file) => ({
1010
slug: file.parentPath.split("docs-root/")[1].split("/").concat(file.name.replace(".mdx", ""))
1111
}))
12-
13-
console.log(staticParams)
14-
12+
1513
return staticParams
1614
}
1715

app/(main)/page.tsx

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,12 @@ const Page = async () => {
2929
<div className={styles.titleWrapper}>
3030
<h1 className={styles.title}>Palouse RoboSub</h1>
3131
</div>
32-
<div className={styles.graySection}>
33-
<br/>
34-
<p style={{ textAlign: "center" }}>WSU&apos;s Palouse RoboSub club develops underwater submarines designed to participate in the intercollegiate RoboSub national competitions. Located in the basement of Dana Hall, Palouse RoboSub combines Electrical, Mechanical, and Computer Engineering to create complex AUVs and ROVs.</p>
32+
<div className={styles.graySection}>
33+
<p style={{ textAlign: "center" }}>
34+
WSU&apos;s Palouse RoboSub club develops underwater submarines designed to participate in the intercollegiate
35+
RoboSub national competitions. Located in the basement of Dana Hall, Palouse RoboSub combines Electrical,
36+
Mechanical, and Computer Engineering to create complex AUVs and ROVs.
37+
</p>
3538
<h2 style={{ fontSize: "40px" }}>Support Palouse RoboSub!</h2>
3639
<div className={styles.flexRow}>
3740
<div>If you are a student please consider <Link href="/join">joining</Link>!</div>
@@ -44,7 +47,6 @@ const Page = async () => {
4447
<div className={styles.flexRow}>
4548
<div>
4649
We regularly document our activities to share our progress and help the public understand our work.
47-
4850
<Link href="/blog" className={styles.link}>Check the blog out here <ArrowRight/></Link>
4951
</div>
5052
<div>

components/footer.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ const Footer = () => {
1212
<Image src="/vcea.png" alt="Voiland College of Engineering and Architecture" width={300} height={75} />
1313
</a>
1414
</div>
15-
<div className={styles.flexRow}>
15+
<div className={styles.links}>
1616
<div className={styles.flexCol} style={{ marginRight: "10px" }}>
1717
<div className={styles.flexRow}>
1818
<Image src="/linkedin.svg" alt="LinkedIn" height={24} width={24} />

components/header.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ const Header = () => {
2626
<Link href="/officers" className={styles.link}>Officers</Link>
2727
<Link href="/sponsors" className={styles.link}>Sponsors</Link>
2828
<Link href="/blog" className={styles.link}>Blog</Link>
29-
{/*<Link href="/gallery" className={styles.link}>Gallery</Link>*/}
29+
<Link href="/gallery" className={styles.link}>Gallery</Link>
3030
<Link href="/join" className={styles.joinButton}>JOIN US</Link>
3131
<Link href="/donate" className={styles.donateButton}>DONATE</Link>
3232
</div>
@@ -36,7 +36,7 @@ const Header = () => {
3636
<Link href="/officers" className={styles.link}>Officers</Link>
3737
<Link href="/sponsors" className={styles.link}>Sponsors</Link>
3838
<Link href="/blog" className={styles.link}>Blog</Link>
39-
{/*<Link href="/gallery" className={styles.link}>Gallery</Link>*/}
39+
<Link href="/gallery" className={styles.link}>Gallery</Link>
4040
<Link href="/join" className={styles.joinButton}>JOIN US</Link>
4141
<Link href="/donate" className={styles.donateButton}>DONATE</Link>
4242
</div>

styles/footer.module.css

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,21 @@
2222
gap: 4px;
2323
}
2424

25+
.links {
26+
display: flex;
27+
flex-direction: row;
28+
align-items: center;
29+
gap: 4px;
30+
}
31+
2532
@media (max-width: 768px) {
2633
.footer {
2734
flex-direction: column-reverse;
2835
gap: 24px;
2936
align-items: start;
3037
}
38+
.links {
39+
flex-direction: column;
40+
align-items: start;
41+
}
3142
}

styles/gallery-image.module.css

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
.container {
22
position: relative;
3-
max-height: 60vh;
43
width: 100%;
54
margin-bottom: 48px;
65
display: flex;
@@ -11,23 +10,22 @@
1110
.image {
1211
object-fit: contain;
1312
width: 100%;
14-
height: 100%;
13+
height: auto;
14+
max-height: 60vh;
15+
display: block;
1516
}
1617

1718
.caption {
1819
background-color: #A60F2D;
1920
color: white;
20-
width: min-content;
2121
padding: 8px 16px;
2222
font-size: 30px;
23-
text-wrap: nowrap;
23+
text-align: center;
2424
}
2525

2626
@media (max-width: 768px) {
2727
.caption {
28-
width: 100%;
29-
text-wrap: wrap;
30-
text-align: center;
3128
font-size: 24px;
29+
padding: 6px 12px;
3230
}
33-
}
31+
}

styles/home.module.css

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,4 +76,29 @@
7676
.post:nth-child(odd) {
7777
background-color: #EBEBEB;
7878
border-radius: 4px;
79+
}
80+
81+
@media (max-width: 768px) {
82+
.mainPhoto {
83+
width: 100%;
84+
max-height: 80vh;
85+
object-fit: contain;
86+
height: auto;
87+
}
88+
.title {
89+
font-size: 36px;
90+
text-wrap: wrap;
91+
width: 100%;
92+
}
93+
.graySection {
94+
padding-left: 5%;
95+
padding-right: 5%;
96+
}
97+
.flexRow {
98+
flex-direction: column;
99+
}
100+
.section {
101+
padding-left: 5%;
102+
padding-right: 5%;
103+
}
79104
}

styles/officer-bio.module.css

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,10 @@
77
width: min-content;
88
clip-path: polygon(0 0, calc(100% - 30px) 0, 100% 30px, 100% 100%, 30px 100%, 0 calc(100% - 30px));
99
min-width: 300px;
10+
}
11+
12+
@media (max-width: 768px) {
13+
.bioWrapper {
14+
width: 100%;
15+
}
1016
}

0 commit comments

Comments
 (0)