Skip to content

Commit 0eb37ab

Browse files
authored
Fixed styles on LandingPage using TW classes (#466)
1 parent 83fa68e commit 0eb37ab

File tree

4 files changed

+16
-15
lines changed

4 files changed

+16
-15
lines changed

frontend/src/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ import React from "react";
22
import ReactDOM from "react-dom";
33
import { createRoot } from "react-dom/client";
44
import App from "./App";
5-
import "tailwindcss/tailwind.css";
65
import "./index.scss";
6+
import "tailwindcss/tailwind.css";
77

88
if (process.env.MODE !== "production") {
99
const reactAxe = require("@axe-core/react");

frontend/src/pages/LandingPage/LandingPageCop.tsx

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -28,28 +28,28 @@ function LandingPageCop() {
2828

2929
return (
3030
<div className="flex-container align-center justify-center py-5">
31-
<h2 className="col-12 text-center my-4">Communities of Practice (COP)</h2>
31+
<h2 className="col-12 text-center text-4xl font-bold leading-normal my-8">Communities of Practice (COP)</h2>
3232
<div className="row paragraph-1 text-center mb-5 landing-cop-description">
3333
A Community of Practice (CoP) is a group of volunteers who share a
3434
common interest in a topic and meet regularly to fulfill both individual
3535
and group goals. We use CoPs to share effective practices and relevant
3636
domain knowledge to help our members grow.
3737
</div>
38-
<div className="row m-5 landing-cop-circle-container">
38+
<div className="row m-10 landing-cop-circle-container">
3939
{copData.map((cop) => {
4040
return (
4141
<CircleCard
4242
key={cop.id}
4343
size="lg"
44-
addClass="m-4"
44+
addClass="m-8"
4545
onClick={() => {
4646
handleCopData(cop.id);
4747
setIsDialogOpen(true);
4848
}}
4949
role="button"
5050
>
5151
<div className="flex-column">
52-
<div className="pb-3 row justify-center">
52+
<div className="pb-6 row justify-center">
5353
<cop.icon strokeWidth="0.2" height="65" aria-hidden="true" />
5454
</div>
5555
<div className="title-4 landing-cop-circle-title text-center">
@@ -82,9 +82,9 @@ function LandingPageCop() {
8282
key={cop.id}
8383
isActive={isActive}
8484
onClick={() => handleCopData(cop.id)}
85-
addClass="flex-container justify-center align-center p-1"
85+
addClass="flex-container justify-center align-center p-2"
8686
>
87-
<div className="pr-1">
87+
<div className="pr-2">
8888
<cop.icon
8989
fill={isActive ? "white" : "black"}
9090
stroke={isActive ? "white" : "black"}
@@ -101,11 +101,11 @@ function LandingPageCop() {
101101
);
102102
})}
103103
</nav>
104-
<div className="col-9 ml-2">
104+
<div className="col-9 ml-4">
105105
<InnerCopCard addClass="landing-inner-cop-card-content">
106106
<div>
107107
<div className="title-3 flex-container pb-4 align-bottom">
108-
<div className="pr-2">
108+
<div className="pr-4">
109109
{currentDatum.icon && (
110110
<currentDatum.icon
111111
fill="black"

frontend/src/pages/LandingPage/LandingPageIntro.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,14 @@ import { Button } from "components/components";
77

88
function LandingPageIntro() {
99
return (
10-
<div className="landing-container my-5">
10+
<div className="landing-container my-10">
1111
<div className="flex-column align-center text-center landing-intro-container">
12-
<h1 className="landing-intro-title mb-4">
12+
<h1 className="md:text-5xl text-2xl font-bold md:leading-snug my-8">
1313
Together,
1414
<br />
1515
we can create greater civic change
1616
</h1>
17-
<p className="paragraph-1 landing-intro-paragraph mb-5">
17+
<p className="paragraph-1 landing-intro-paragraph mb-10">
1818
CivicTechJobs unites ambitious technology practitioners with volunteer
1919
opportunities from a central hub of listings to build digital
2020
products, programs, and services.
@@ -28,9 +28,9 @@ function LandingPageIntro() {
2828
Join us
2929
</Button>
3030
</div>
31-
<div className="flex-column align-center text-center pb-5 landing-mission-container">
32-
<img className="arrow-down mb-3" src={iconArrowDown} alt="" />
33-
<h2 className="landing-mission-title mb-4">Our Mission</h2>
31+
<div className="flex-column align-center text-center pb-10 landing-mission-container">
32+
<img className="arrow-down mb-6" src={iconArrowDown} alt="" />
33+
<h2 className="landing-mission-title text-4xl font-bold leading-normal mb-8">Our Mission</h2>
3434
<p className="paragraph-2 landing-mission-paragraph">
3535
We bring together civic-minded volunteers from diverse backgrounds
3636
such as YOU to help local communities and governments. Thanks to the

frontend/tailwind.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ module.exports = {
44
"./src/pages/Demo/DemoTailwind.tsx",
55
"./src/pages/Authentication/*.tsx",
66
"./src/tw-components/*.tsx",
7+
"./src/pages/LandingPage/*.tsx",
78
], // Will change to "./src/**/*.{js,jsx,tsx}", "./templates/index.html"
89
theme: {
910
screens: {

0 commit comments

Comments
 (0)