Skip to content

Commit

Permalink
Improved Admin Page CSS
Browse files Browse the repository at this point in the history
  • Loading branch information
swapnilnarad2000 committed Feb 11, 2024
1 parent 3d31807 commit b0d7470
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 4 deletions.
15 changes: 15 additions & 0 deletions src/App.css
Original file line number Diff line number Diff line change
Expand Up @@ -653,6 +653,17 @@
padding-bottom: 20px;
}

@media (max-width: 992px){
.admin-panel-page .card-title{
display: block;
font-size: 15px;
}
}

.admin-panel-page .card-text{
display: block !important;
}

.admin-error-modal{
position: absolute;
z-index: 10;
Expand Down Expand Up @@ -707,6 +718,10 @@
text-align: left;
}

.admin-card-item{
margin-bottom: 10px;
}

/* Google Icom */
.google-login-icon{
cursor: pointer;
Expand Down
2 changes: 1 addition & 1 deletion src/Components/Helpers/AdminPanel.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ let AdminPanel = (props) => {
<Container>
<Row>
<h1 className="admin-panel-title">Welcome {props.currentUser} ! Here are some latest feedbacks...</h1>
{data.length ? data.map(item => (<Col md={4} sm={12} xs={12}><FeedbackCard data={item} /></Col>)) : <p> Couldnt Reach Servers Right Now 😒!!! </p>}
{data.length ? data.map(item => (<Col md={4} sm={12} xs={12} className="admin-card-item"><FeedbackCard data={item} /></Col>)) : <p> Couldnt Reach Servers Right Now 😒!!! </p>}
</Row>
</Container>
</div>
Expand Down
6 changes: 3 additions & 3 deletions src/Components/Helpers/FeedbackCard.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ let FeedbackCard = (props) => {
return (
<Card>
<Card.Body>
<Card.Title>Name: {props.data.fullName}</Card.Title>
<Card.Title>Full Name: {props.data.fullName}</Card.Title>
Feedback: <Card.Subtitle className="mb-2 text-muted">{props.data.message}</Card.Subtitle>
Contact: <Card.Link href="#">{props.data.phone}</Card.Link>
<Card.Link href={`mailto:` + props.data.email}>{props.data.email}</Card.Link>
Phone: <Card.Text>{props.data.phone}</Card.Text>
E-mail: <Card.Link href={`mailto:` + props.data.email}>{props.data.email}</Card.Link>
</Card.Body>
</Card>
);
Expand Down

0 comments on commit b0d7470

Please sign in to comment.