Skip to content

Commit

Permalink
chore: changed font color of box example
Browse files Browse the repository at this point in the history
Signed-off-by: Mdkaif-123 <[email protected]>
  • Loading branch information
mdkaifansari04 committed Nov 5, 2024
1 parent bca574a commit d204c77
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 10 deletions.
16 changes: 9 additions & 7 deletions src/sections/Projects/Sistent/components/box/code.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@ import TabButton from "../../../../../reusecore/Button";
import { useStyledDarkMode } from "../../../../../theme/app/useStyledDarkMode";

const codes = [
` <SistentThemeProvider initialMode={isDark ? "dark" : "light"}>
` <SistentThemeProvider ini>
<Box sx={{ bgcolor: "#ffeb3b", padding: 4, height: "50vh" }}>
<p>
This is a Box component with custom background and padding.
</p>
</Box>
</SistentThemeProvider>`,
` <SistentThemeProvider initialMode={isDark ? "dark" : "light"}>
` <SistentThemeProvider ini>
<Box
sx={{
bgcolor: { xs: "#cfe8fc", md: "#ffeb3b" },
Expand All @@ -30,7 +30,7 @@ const codes = [
</p>
</Box>
</SistentThemeProvider>`,
` <SistentThemeProvider initialMode={isDark ? "dark" : "light"}>
` <SistentThemeProvider ini>
<Box
sx={{
bgcolor: { xs: "#cfe8fc", md: "#ffeb3b" },
Expand All @@ -43,7 +43,7 @@ const codes = [
</p>
</Box>
</SistentThemeProvider>`,
` <SistentThemeProvider initialMode={isDark ? "dark" : "light"}>
` <SistentThemeProvider ini>
<Box
sx={{
bgcolor: "#cfe8fc",
Expand Down Expand Up @@ -144,7 +144,7 @@ export const BoxCode = () => {
<div className="items">
<SistentThemeProvider initialMode={isDark ? "dark" : "light"}>
<Box sx={{ bgcolor: "#ffeb3b", padding: 4, height: "50vh" }}>
<p>
<p style={{ color: "black" }}>
This is a Box component with custom background and padding.
</p>
</Box>
Expand All @@ -170,7 +170,7 @@ export const BoxCode = () => {
height: "50vh",
}}
>
<p>
<p style={{ color: "black" }}>
This Box is responsive, changing style based on screen size.
</p>
</Box>
Expand Down Expand Up @@ -201,7 +201,9 @@ export const BoxCode = () => {
},
}}
>
<p>Hover over this Box to see the interactive effect.</p>
<p style={{ color: "black" }}>
Hover over this Box to see the interactive effect.
</p>
</Box>
</SistentThemeProvider>
</div>
Expand Down
6 changes: 3 additions & 3 deletions src/sections/Projects/Sistent/components/box/guidance.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ export const BoxGuidance = () => {
"&:hover": { bgcolor: "primary.light" },
}}
>
<p style={{ color: "white" }}>
<p style={{ color: "black" }}>
This is a responsive Box component.
</p>
</Box>
Expand Down Expand Up @@ -119,7 +119,7 @@ export const BoxGuidance = () => {
borderRadius: 4,
}}
>
<p style={{ color: "white" }}>
<p style={{ color: "black" }}>
Customized Box with shadow and color.
</p>
</Box>
Expand All @@ -146,7 +146,7 @@ export const BoxGuidance = () => {
}}
>
<Box sx={{ bgcolor: "info.main", padding: 2 }}>
<p style={{ color: "white" }}>Nested Box layout example.</p>
<p style={{ color: "black" }}>Nested Box layout example.</p>
</Box>
</Box>
</SistentThemeProvider>
Expand Down

0 comments on commit d204c77

Please sign in to comment.