Skip to content

Commit

Permalink
changes of dark mode in success stories section
Browse files Browse the repository at this point in the history
  • Loading branch information
Anshikapal05 committed Nov 6, 2024
1 parent d01c959 commit cfc5f92
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 7 deletions.
24 changes: 18 additions & 6 deletions src/css/SuccessStories.css
Original file line number Diff line number Diff line change
@@ -1,19 +1,30 @@
/* Dark mode colors */
body.dark {
--background-color: #2c2a2a;
--text-color: #000000;
--card-background: #3a3a3a;
--heading-color: #363636;
--button-background: #3d8b3d;
--button-hover: #317532;
transition: background-color 0.25s, color 0.25s;
}
.story-container {
max-width: 800px;
margin: auto;
padding: 20px;
background: #f5f5f5;
background-color: var(--background-color);
color: var(--text-color);
border-radius: 8px;
}

h1, h2 {
text-align: center;
color: #333;
color: var(--heading-color);
margin-bottom: 80px; /* Add space below each heading */
margin-top: 80px; /* Add space above each heading */
}
.story-form h2{
color: rgb(57, 57, 57);
.story-form h3{
text-align: center;
}
.story-form {
margin-bottom: 30px;
Expand Down Expand Up @@ -49,15 +60,16 @@ button:hover {
}

.story {
background-color: var(--card-background);
flex: 1 1 calc(50% - 20px);
background: #f0f0f0;
color: var(--text-color);
padding: 15px;
border-radius: 8px;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.story h3 {
color: #333;
color: var(--heading-color);
margin: 0 0 10px;
}

Expand Down
2 changes: 1 addition & 1 deletion src/pages/SuccessStories.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ const SuccessStories = () => {
<div className="container">
<h1>Success Stories and Inspiration Board</h1>
<div className="story-form">
<h2>Share Your Story!</h2>
<h3>Share Your Story!</h3>
<input
type="text"
placeholder="Your Name"
Expand Down

0 comments on commit cfc5f92

Please sign in to comment.