Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 23 additions & 11 deletions src/components/TextForm.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -116,16 +116,28 @@ const TextForm = (props) => {
}
}, [text]);

const buttonStyle = {
color: props.theme === "light" ? "black" : "white",
backgroundImage:
props.theme === "light"
? "linear-gradient(135deg, #faffa3 0%, #f0f0a8 100%)"
: `${props.colorTheme}`,
filter: props.theme === "light" ? "none" : "brightness(140%)",
fontWeight: props.theme === "light" ? 400 : 300,
boxShadow: "2px 2px 8px rgba(0, 0, 0, 0.15)",
};
const buttonStyle = {
color: props.theme === "light" ? "black" : "white",

backgroundImage:
props.theme === "light"
? "linear-gradient(135deg, #faffa3 0%, #f0f0a8 100%)"
: `${props.colorTheme}`,

filter: props.theme === "light" ? "none" : "brightness(140%)",
fontWeight: props.theme === "light" ? 400 : 300,
boxShadow: "2px 2px 8px rgba(0, 0, 0, 0.15)",

// ➜ Equal sizing
width: "100px",
height: "70px",
display: "flex",
alignItems: "center",
justifyContent: "center",
borderRadius: "8px",
cursor: "pointer",
};


const getTopWords = (text) => {
const words = text
Expand Down Expand Up @@ -370,7 +382,7 @@ const TextForm = (props) => {

{/* FUNCTION BUTTONS */}
<div
className="grid grid-cols-2 sm:grid-cols-3 md:grid-cols-6 gap-3 my-6"
className="grid grid-cols-2 sm:grid-cols-3 md:grid-cols-6 gap-3 my-6 justify-center justify-items-center "
data-aos="fade-in"
data-aos-delay="200"
data-aos-duration="800"
Expand Down
1 change: 1 addition & 0 deletions src/components/Toolbar.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,7 @@ const Toolbar = ({
}}
>
{getIcon(label)}

</button>

{/* No inline controls for lorem paragraphs here (random generation handled in TextForm) */}
Expand Down
Loading