Skip to content

Commit 212ece1

Browse files
refactor: clean up unused styles and simplify component structure
1 parent 12e6106 commit 212ece1

5 files changed

Lines changed: 5 additions & 59 deletions

File tree

src/components/SignManifest.module.css

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
.signManifest {
2-
/* Container styles */
3-
}
41

52
.signButtons {
63
display: flex;

src/components/SignManifest.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,7 @@ export function SignManifest() {
369369
}
370370

371371
return (
372-
<div className={styles.signManifest}>
372+
<>
373373
{showReLoginNotice && (
374374
<div className={styles.reLoginNotice}>
375375
You previously signed. Log in again to withdraw or update your signature.
@@ -537,7 +537,7 @@ export function SignManifest() {
537537
)}
538538
</div>
539539
)}
540-
</div>
540+
</>
541541
);
542542
}
543543

src/components/SignersList.module.css

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -135,15 +135,9 @@
135135
opacity: 0.7;
136136
font-size: 0.75em;
137137
line-height: 1.2;
138+
white-space: nowrap;
138139
overflow: hidden;
139140
text-overflow: ellipsis;
140-
white-space: nowrap;
141141
}
142142

143-
.date {
144-
opacity: 0.6;
145-
font-size: 0.7em;
146-
line-height: 1.2;
147-
white-space: nowrap;
148-
}
149143

src/pages/index.module.css

Lines changed: 0 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -3,25 +3,6 @@
33
* and scoped locally.
44
*/
55

6-
.heroBanner {
7-
padding: 4rem 0;
8-
text-align: center;
9-
position: relative;
10-
overflow: hidden;
11-
}
12-
13-
@media screen and (max-width: 996px) {
14-
.heroBanner {
15-
padding: 2rem;
16-
}
17-
}
18-
19-
.buttons {
20-
display: flex;
21-
align-items: center;
22-
justify-content: center;
23-
}
24-
256
.manifestContainer {
267
display: flex;
278
align-items: normal;
@@ -68,12 +49,6 @@
6849
font-weight: 700;
6950
}
7051

71-
.manifestSubtitle {
72-
margin: 0;
73-
font-size: 1rem;
74-
color: var(--manifest-subtitle-color);
75-
}
76-
7752
.manifestContent {
7853
margin-top: 1.5rem;
7954
color: var(--manifest-text-color);
@@ -106,10 +81,6 @@
10681
color: var(--manifest-heading-color);
10782
}
10883

109-
.manifestContent p {
110-
margin-bottom: 0.9rem;
111-
}
112-
11384
.manifestContent ol {
11485
padding-left: 1.2rem;
11586
margin-top: 2.5rem;
@@ -193,16 +164,4 @@
193164
font-weight: 400;
194165
}
195166

196-
/* Spacing utilities for signatories page */
197-
.signatureSection {
198-
margin-top: 1rem;
199-
}
200167

201-
.signersSection {
202-
margin-top: 1.5rem;
203-
}
204-
205-
/* Also used on homepage for signers list */
206-
.signersSection {
207-
margin-top: 1.25rem;
208-
}

src/pages/index.tsx

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,7 @@ export default function Home(): ReactNode {
5757
<Heading as="h1" className={styles.manifestTitle}>
5858
<span className={styles.preamble}>Manifesto for</span>
5959
<span className={styles.coreSubject}>
60-
AI-Augmented <br className={styles.mobileBreak} />
61-
Software Craftsmanship
60+
AI-Augmented Software Craftsmanship
6261
</span>
6362
</Heading>
6463
</header>
@@ -94,10 +93,7 @@ export default function Home(): ReactNode {
9493
</article>
9594
)}
9695

97-
<div className={styles.signersSection}>
98-
<SignersList />
99-
</div>
100-
96+
<SignersList />
10197
</section>
10298
</main>
10399
</Layout>

0 commit comments

Comments
 (0)