Skip to content

Commit cbbaf28

Browse files
Carmen TangCarmen Tang
Carmen Tang
authored and
Carmen Tang
committed
CSS fixes
1 parent 2c60f15 commit cbbaf28

14 files changed

+40
-13326
lines changed

.gitignore

+2-1
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,6 @@ npm-debug.log
66
public
77
.DS_Store
88
yarn.lock
9+
yarn-error.log
910
# Local Netlify folder
10-
.netlify
11+
.netlify

src/components/Contact.js

+5-12
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,7 @@ import AppContext from "./AppContext"
33
import { navigate } from "gatsby";
44
import { Message } from "semantic-ui-react";
55
import Alert from "../components/Alert";
6-
<<<<<<< HEAD
76
import { StyledPrimaryButton } from "../components/Buttons";
8-
=======
9-
>>>>>>> adding thank you message
10-
117
import '../styles/contact.scss'
128

139

@@ -25,7 +21,7 @@ var contactDict = {
2521
contactLegend: "Contact Information",
2622
email: "Email",
2723
cell: "Cell",
28-
includeDetails: "Share my tenancy information with Housing Now!",
24+
includeDetails: "Share my tenancy information with ",
2925
subscribe: "Subscribe to newsletters from Housing Now!",
3026
disclaimer: "Any information you share is kept confidential and is only used to assist you with your case.",
3127
submitText: "Submit",
@@ -37,7 +33,7 @@ var contactDict = {
3733
contactLegend: "Información del contacto",
3834
email: "Correo Electrónico",
3935
cell: "Celular",
40-
includeDetails: "¡Comparta mi información de arrendamiento con Housing Now!",
36+
includeDetails: "¡Comparta mi información de arrendamiento con ",
4137
subscribe: "Suscribirse a boletines de Housing Now!",
4238
disclaimer: "Cualquier información que comparta se mantiene confidencial y solo se utiliza para ayudarlo con su caso.",
4339
submitText: "Enviar",
@@ -116,20 +112,17 @@ class QuickContactForm extends React.Component {
116112
<input className="form-control" type="email" name="email" value={email} onChange={this.handleChange} placeholder={dict[appCtx.lang].email} />
117113
</fieldset>
118114
<fieldset>
119-
<label className="checkboxes"><input type="checkbox" name="includeDetails" checked={includeDetails} onChange={this.handleChange} /> {dict[appCtx.lang].includeDetails}</label><br/>
115+
<label className="checkboxes"><input type="checkbox" name="includeDetails" checked={includeDetails} onChange={this.handleChange} /> {dict[appCtx.lang].includeDetails} <a href="https://www.housingnowca.org/about">Housing Now!</a></label><br/>
120116
<label className="checkboxes"><input type="checkbox" name="subscribe" checked={subscribe} onChange={this.handleChange} /> {dict[appCtx.lang].subscribe}</label>
121117
</fieldset>
122118
<p className="disclaimer">{dict[appCtx.lang].disclaimer}</p>
123-
<center><StyledPrimaryButton type="submit">{submitText ? submitText : dict[appCtx.lang].submitText}</StyledPrimaryButton></center>
119+
<p className="center-layout"><StyledPrimaryButton type="submit">{submitText ? submitText : dict[appCtx.lang].submitText}</StyledPrimaryButton></p>
124120
</form>
125121
</div>
126122
:
127123
<div>
128-
<<<<<<< HEAD
129124
<Alert /><br/>
130-
=======
131-
<Alert />
132-
>>>>>>> adding thank you message
125+
133126
</div>
134127
)}
135128
</AppContext.Consumer>

src/components/FlowSelector.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ class FlowSelector extends React.Component {
3131
to = "/eligibility/cities/" + town;
3232
} else if (county in regulatedCounties) {
3333
to = "/eligibility/counties/" + county;
34-
} else if (town !== "") {
34+
} else if (town != "") {
3535
to = "/eligibility/state";
3636
}
3737

@@ -48,14 +48,14 @@ class FlowSelector extends React.Component {
4848
return (
4949
<AppContext.Consumer>
5050
{({ appCtx, updateContext }) => (
51-
<div><center>
51+
<div className="center-layout">
5252
<StyledPrimaryButton disabled={!appCtx.validCAZip} onClick={(e)=>{this.onClick(appCtx)}}>{this.state.btnText}</StyledPrimaryButton>
5353
{(appCtx.town === undefined && appCtx.zip !== undefined) ?
5454
<p className="error">{this.state.errText}</p>
5555
:
5656
<p className="error"></p>
5757
}
58-
</center></div>
58+
</div>
5959
)}
6060
</AppContext.Consumer>
6161
);

src/components/Modal.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ var dict = {
2525
en: {
2626
button: "I'm Looking for Help!",
2727
title: "Connect With Us!",
28-
description: "Share your contact information and we will follow up shortly!",
28+
description: "Share your contact information & we will follow up shortly!",
2929
close: "Close",
3030
},
3131
es: {
@@ -55,7 +55,7 @@ export default function TransitionsModal() {
5555
<StyledPrimaryButton onClick={handleOpen} type="button">{dict[appCtx.lang].button}</StyledPrimaryButton>&nbsp;
5656
<Modal
5757
aria-labelledby="transition-modal-title"
58-
aria-describedby="transition-modal-description"
58+
aria-describedby="text-description"
5959
className={classes.modal}
6060
open={open}
6161
onClose={handleClose}
@@ -68,9 +68,9 @@ export default function TransitionsModal() {
6868
<Fade in={open}>
6969
<div className={classes.paper}>
7070
<h2 id="transition-modal-title">{dict[appCtx.lang].title}</h2>
71-
<center><p id="transition-modal-description">{dict[appCtx.lang].description}</p></center>
71+
<p class="text-description">{dict[appCtx.lang].description}</p>
7272
<QuickContactForm autohide={true} />
73-
<center><StyledPrimaryButton onClick={handleClose} type="button">{dict[appCtx.lang].close}</StyledPrimaryButton></center>
73+
<p className="center-layout"><StyledPrimaryButton onClick={handleClose} type="button">{dict[appCtx.lang].close}</StyledPrimaryButton></p>
7474
</div>
7575
</Fade>
7676
</Modal>

src/components/clauses/YesNoMaybeState.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,9 @@ class YesNoMaybeState extends React.Component {
5555
<div>
5656
<h1>{this.state.dict[appCtx.lang].eligibility}</h1>
5757
<p>{this.state.questionText}</p>
58-
<center><StyledPrimaryButton onClick={(e)=> { this.onChange('yes', appCtx, updateContext)}} type="button">{this.state.yesText ? this.state.yesText : this.state.dict[appCtx.lang].yes}</StyledPrimaryButton>&nbsp;
58+
<p className="center-layout"><StyledPrimaryButton onClick={(e)=> { this.onChange('yes', appCtx, updateContext)}} type="button">{this.state.yesText ? this.state.yesText : this.state.dict[appCtx.lang].yes}</StyledPrimaryButton>&nbsp;
5959
<StyledPrimaryButton onClick={(e)=> { this.onChange('no', appCtx, updateContext)}} type="button">{this.state.noText ? this.state.noText : this.state.dict[appCtx.lang].no}</StyledPrimaryButton>&nbsp;
60-
<StyledPrimaryButton onClick={(e)=> { this.onChange('idk', appCtx, updateContext)}} type="button">{this.state.maybeText ? this.state.maybeText : this.state.dict[appCtx.lang].maybe}</StyledPrimaryButton></center>
60+
<StyledPrimaryButton onClick={(e)=> { this.onChange('idk', appCtx, updateContext)}} type="button">{this.state.maybeText ? this.state.maybeText : this.state.dict[appCtx.lang].maybe}</StyledPrimaryButton></p>
6161
</div>
6262
)}
6363
</AppContext.Consumer>

src/components/clauses/YesNoState.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ const YesNoState = ({ stateName, questionText, yesText, noText, yes, no }) => {
2929
<div>
3030
<h1>{dict[appCtx.lang].eligibility}</h1>
3131
<p>{questionText}</p>
32-
<center><StyledPrimaryButton
32+
<p className="center-layout"><StyledPrimaryButton
3333
onClick={e => {
3434
onChange(true, appCtx, updateContext);
3535
}}
@@ -45,7 +45,7 @@ const YesNoState = ({ stateName, questionText, yesText, noText, yes, no }) => {
4545
type="button"
4646
>
4747
{noText ? noText : dict[appCtx.lang].no}
48-
</StyledPrimaryButton></center>
48+
</StyledPrimaryButton></p>
4949
</div>
5050
);
5151
}}

src/pages/calculator.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ class Calculator extends React.Component {
254254
should use the rent calculator, as increases in 2019 may be rolled back
255255
resulting in a rent reduction. <b>Before using this calculator, check your eligibility <Link to="/eligibility">here</Link></b>!
256256
</p>
257-
<center><Modal /></center><br/>
257+
<div className="center-layout"><Modal /></div><br/>
258258
</div>
259259
<div className="card">
260260
<div className="card-body">

src/pages/es/about-us.mdx

+1-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
Tenantprotections.org es un proyecto voluntario de TechEquity Collaborative y nuestros socios en Code for San Francisco, Community Legal Services in East Palo Alto (CLESPA) y Alliance of Californians for Community Empowerment (ACCE).
44

5-
Agradecemos a los voluntarios que generosamente donaron su tiempo y habilidades para garantizar que los inquilinos en California tengan acceso a información confiable sobre la Ley de Protección al Inquilino de 2019: Kyle Peacock, Tom Croucher, Reid Sherman, Linden Chiu, Danica Liang, Kellee Kimbro, Don Spire y Herman Borrego.
5+
Agradecemos a los voluntarios que generosamente donaron su tiempo y habilidades para garantizar que los inquilinos en California tengan acceso a información confiable sobre la Ley de Protección al Inquilino de 2019: Tom Croucher, Reid Sherman, Linden Chiu, Annie Zhang, Danica Liang, Kellee Kimbro, Don Spire y Herman Borrego.
66

77
También, un agradecimiento especial a nuestros voluntarios que hicieron que el sitio estuviera disponible en español: Luis Delgado, German Calderon y Herman Borrego.
88

@@ -16,4 +16,3 @@ Este sitio existe para proporcionar a los inquilinos en California información
1616
- [Code for San Francisco](https://codeforsanfrancisco.org/) - CfSF is a Code for America Bridage empowering volunteers to use tech skills to improve their communities
1717
- [Community Legal Services in East Palo Alto](http://clsepa.org/) - Community Legal Services in East Palo Alto (CLSEPA) es una firma de abogados sin fines de lucro que ofrece servicios legales gratuitos que mejoran la vida de las familias de bajos ingresos en toda el Área de la Bahía. CLSEPA se especializa en vivienda, inmigración, derechos de los trabajadores, autorización de registros y protección del consumidor. El equipo de CLSEPA trabaja codo a codo con comunidades de bajos ingresos y se asocia con organizaciones comunitarias, iglesias y escuelas para lograr un cambio duradero. Capacitamos y apoyamos a los miembros de la comunidad para que naveguen por el sistema legal y ejerzan sus derechos. CLSEPA persigue la justicia sistémica utilizando múltiples estrategias innovadoras, que incluyen educación comunitaria, asesoramiento y representación legal individual, asistencia legal a grupos comunitarios, defensa de políticas y litigios de impacto.
1818
- [TechEquity](https://techequitycollaborative.org/) - TechEquity Collaborative es una organización sin fines de lucro que cree que la industria tecnológica puede y debe contribuir a un crecimiento de base amplia que beneficie a todos. Que en lugar de ser una fuerza de desplazamiento y desigualdad, la tecnología puede crear oportunidades y una prosperidad generalizada. TechEquity es una organización dirigida por miembros formada por individuos y empresas que comparten nuestros valores. Educamos a las personas en el sector tecnológico sobre temas de vivienda y mano de obra y laborales, y los activamos para hacer cambios en esas áreas clave. En 2019, TechEquity trabajó con una coalición de socios para copatrocinar la Ley de Protección de Inquilinos de 2019 (AB 1482).
19-

src/pages/es/calculator.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ class Calculator extends React.Component {
284284
revertirse, lo que resulta en una reducción de la renta. <b>Antes de
285285
usar esta calculadora, verifica tu elegibilidad <Link to="/eligibility">aquí</Link></b>!
286286
</p>
287-
<center><Modal /></center><br/>
287+
<p className="center-layout"><Modal /></p><br/>
288288
</div>
289289
<div className="card">
290290
<div className="card-body">

src/styles/buttons.scss

+4
Original file line numberDiff line numberDiff line change
@@ -54,3 +54,7 @@ button .button {
5454
box-shadow: none;
5555
text-shadow: none;
5656
}
57+
58+
.button-layout {
59+
text-align: center;
60+
}

src/styles/layout.scss

+11-3
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@
6969
width: 100%;
7070
cursor: pointer;
7171
}
72-
72+
7373
h1,
7474
h2,
7575
h3,
@@ -80,7 +80,7 @@
8080
font-size: 24px;
8181
margin: 14px 0px;
8282
}
83-
83+
8484
h1 {
8585
margin: 2rem 0 1rem 0;
8686
font-size: 28px;
@@ -114,12 +114,20 @@
114114
width: 460px;
115115
}
116116
}
117-
117+
118118
.section-txt {
119119
display: flex;
120120
flex: 1;
121121
flex-direction: column;
122122
justify-content: center;
123123
}
124124
}
125+
126+
.center-layout {
127+
text-align: center;
128+
}
129+
130+
.text-description {
131+
width: 500px;
132+
}
125133
}

src/templates/city-es.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const City = () => {
66
return (
77
<AppContext.Consumer>
88
{({ appCtx, updateContext }) => (
9-
<div><center>
9+
<div className="center-layout">
1010
<p>
1111
<h1> ¡Espere! ¡Parece que usted vive en {appCtx.town} en el condado de {appCtx.county}, que tiene sus propias protecciones de renta y desalojo! </h1>
1212
Antes de verificar su elegibilidad en todo el estado, primero debe determinar si las protecciones de {appCtx.town} lo cubren. Si no lo cubren,
@@ -27,7 +27,7 @@ const City = () => {
2727
<PrimaryButton to="/es/eligibility/state/">
2828
Verifique su situación en todo el estado de California.
2929
</PrimaryButton>
30-
</center></div>
30+
</div>
3131
)}
3232
</AppContext.Consumer>
3333
);

src/templates/city.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const City = () => {
66
return (
77
<AppContext.Consumer>
88
{({ appCtx, updateContext }) => (
9-
<div><center>
9+
<div className="center-layout">
1010
<p>
1111
<h1>Wait! It looks like you live in {appCtx.town} in {appCtx.county} County, which has its own rent and eviction protections!</h1>
1212
Before checking your state-wide eligibility, you should first determine if {appCtx.town}'s protections cover you. If they do not cover you,
@@ -28,7 +28,7 @@ const City = () => {
2828
<PrimaryButton to="/eligibility/state/">
2929
Check my status state-wide
3030
</PrimaryButton>
31-
</center></div>
31+
</div>
3232
)}
3333
</AppContext.Consumer>
3434
);

0 commit comments

Comments
 (0)