Skip to content

Commit

Permalink
Update App.css
Browse files Browse the repository at this point in the history
Background Color: The background-color property has been set to #212832, which creates a visually appealing dark background for the entire page. This color choice provides a modern and stylish look.

Text Color: The color property has been set to white, ensuring that text content within the .App container is displayed in a contrasting white color. This improves readability against the dark background.

Padding: Padding of 20px has been added to the .App container. This padding creates space between the content and the container's edges, enhancing the overall layout and making the content more visually appealing.

Border Radius: The border-radius property has been set to 10px, resulting in rounded corners for the container. This subtle design element adds a touch of sophistication to the layout.

Box Shadow: A box shadow with the properties 0 0 10px rgba(0, 0, 0, 0.2) has been applied to create a gentle elevation effect around the .App container. This shadow adds depth and a sense of separation from the background.

Alignment: Flexbox properties have been used to center the .App container both horizontally and vertically within the viewport. This ensures that the content is neatly positioned at the center of the page, regardless of screen size.

Minimum Height: To prevent content from getting cut off on smaller screens, a min-height of 100vh has been set for the .App container. This guarantees that the container occupies at least the full height of the viewport, making all content accessible.
  • Loading branch information
rishi457 authored Oct 10, 2023
1 parent 0ea1d18 commit 9d4212a
Showing 1 changed file with 21 additions and 3 deletions.
24 changes: 21 additions & 3 deletions src/App.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,22 @@
.App {
background-color: #212832;
color: white;
}
background-color: #212832; /* Set the background color to a dark shade */
color: white; /* Set the text color to white for better readability */

/* Add padding to the content for spacing and readability */
padding: 20px;

/* Add a border-radius to round the corners of the container */
border-radius: 10px;

/* Add a box shadow for a subtle elevation effect */
box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);

/* Center the container horizontally and vertically on the page */
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;

/* Set a minimum height to ensure content is visible */
min-height: 100vh;
}

0 comments on commit 9d4212a

Please sign in to comment.