Skip to content

Commit b144915

Browse files
committed
feat: create alternate text component
1 parent 5062e1a commit b144915

File tree

3 files changed

+37
-0
lines changed

3 files changed

+37
-0
lines changed

src/components/TextComponent.css

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
@import '../styles/colors.css';
2+
3+
/* Main container for AboutMe section */
4+
.text-component-container {
5+
display: flex;
6+
align-items: center;
7+
justify-content: space-between;
8+
max-width: 1200px;
9+
margin: 20px auto;
10+
background-color: var(--antiflash-white);
11+
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
12+
padding: 10px;
13+
}
14+
15+
.text-component-content {
16+
flex: 1;
17+
padding-left: 20px;
18+
}
19+
20+
.text-component-content p {
21+
color: var(--raisin-black);
22+
font-size: 1.1rem;
23+
line-height: 1.3;
24+
}

src/components/TextComponent.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
import React from "react";
2+
import "./TextComponent.css";
3+
4+
export function TextComponent({ text }) {
5+
return (
6+
<div className="text-component-container">
7+
<div className="text-component-content">
8+
{text}
9+
</div>
10+
</div>
11+
);
12+
}

src/components/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
export * from "./HomeComponent"
22
export * from "./ContentElement";
33
export * from "./Navbar";
4+
export * from "./TextComponent";

0 commit comments

Comments
 (0)