Apply Styles to Birthday Reminder Application
The next step is to add styles to each element to make it visually appealing using CSS. In this project, we need only one CSS file App.css.
- Modify the existing code in
App.css
body{
background-color: #f28ab2;
}
main {
min-height: 100vh;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
}
.container {
width: 90vw;
margin: 2rem 0;
max-width: max-content;
background: #fff;
border-radius: 10px;
padding: 1.5rem 2rem;
}
.container h3 {
text-align: center;
font-weight: normal;
text-transform: none;
font-size: 1.5rem;
margin-bottom: 2rem;
align-self: center;
}
.person {
display: grid;
grid-template-columns: auto 1fr;
column-gap: 1.5rem;
margin: 1.5rem;
align-items: center;
}
.person img {
width: 75px;
height: 75px;
object-fit: cover;
border-radius: 50%;
box-shadow: var(--light-shadow);
}
.person h4 {
margin-bottom: 0.35rem;
}
.person p {
margin-bottom: 0;
}
button {
align-self: center;
width: 100%;
border: none;
color: #fff;
font-size: 1.25rem;
padding: 10px 0;
margin: 10px;
align-self: center;
background-color: red;
cursor: pointer;
}
.copywright {
text-decoration: none;
/* font-size: 12px; */
color: #fff;
margin-top: 20px;
}- Once you add the styling, the application will look like the below output.


