Skip to content

Commit

Permalink
Merge pull request #31 from acm-ucr/stanley/Title
Browse files Browse the repository at this point in the history
added title
  • Loading branch information
menthy-wu authored Oct 21, 2023
2 parents 927c052 + 93dc5d7 commit 42dc31a
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
},
"dependencies": {
"bootstrap": "^5.3.0",
"next": "^13.5.3",
"next": "^13.5.4",
"react": "^18.2.0",
"react-bootstrap": "^2.8.0",
"react-dom": "^18.2.0",
Expand Down
21 changes: 20 additions & 1 deletion src/components/Title.jsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,24 @@
import { COLORS } from "../data/colors";
const Title = ({ subTitle, title }) => {
return <div>Title</div>;
const titleWords = title.split(" ");
return (
<div className="flex flex-col justify-center items-center">
<p className={COLORS.green.text + " font-semibold mb-0"}>{subTitle}</p>
<p className="mt-0 font-bold text-3xl">
<span
className={
COLORS.blue.bg +
" text-white underline underline-offset-[14px] decoration-ewb-green decoration-8"
}
>
{titleWords[0]}
</span>
<span className={COLORS.blue.text}>
{" " + titleWords.slice(1).join(" ")}
</span>
</p>
</div>
);
};

export default Title;

0 comments on commit 42dc31a

Please sign in to comment.