Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Subtitle #29

Merged
merged 5 commits into from
Nov 3, 2023
Merged

Add Subtitle #29

merged 5 commits into from
Nov 3, 2023

Conversation

allison-pham
Copy link
Collaborator

Add Subtitle

@allison-pham allison-pham self-assigned this Oct 13, 2023
@allison-pham allison-pham linked an issue Oct 13, 2023 that may be closed by this pull request
src/app/page.js Outdated
const Home = () => {
return (
<>
<Landing />
<About />
<WhyJoin />
<Projects />
<Subtitle />
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

title = "Motivation" subtitle = "Rural communities are already disadvantaged socioeconomically"

const Subtitle = ({ title }) => {
return <div>Subtitle</div>;
import React from "react";
const Subtitle = ({ title = "| Motivation" }) => {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

{title, subtitle}

return <div>Subtitle</div>;
import React from "react";
const Subtitle = ({ title = "| Motivation" }) => {
// const Subtitle = ({ title }) => {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove comments

const Subtitle = ({ title = "| Motivation" }) => {
// const Subtitle = ({ title }) => {
const blueColor = "#1151D3";
const greenColor = "#80C393";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use tailwind color

const greenColor = "#80C393";
return (
<div>
<h2 style={{ color: blueColor }}>{title}</h2>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use p tag
add left border: border-l-4 border-ewb-green
use tailwind to color the text: text-ewb-blue-200
give a text size

return (
<div>
<h2 style={{ color: blueColor }}>{title}</h2>
<p style={{ color: greenColor }}>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use tailwind className
give a text size

<div>
<h2 style={{ color: blueColor }}>{title}</h2>
<p style={{ color: greenColor }}>
Rural communities are already disadvantaged socioeconomically
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use the subtitle prop {subtiotle}

@menthy-wu menthy-wu merged commit 492e0a0 into dev Nov 3, 2023
4 checks passed
@menthy-wu menthy-wu deleted the allisonSubtitle branch November 3, 2023 06:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Subtitle
2 participants