Skip to content

Commit

Permalink
Refactoring CSS files: merged CommunityProfile styles into global app…
Browse files Browse the repository at this point in the history
….module.css (#2738)

* Refactor Community Profile css

* Fix linting issues

* Fix explicit lint issue
  • Loading branch information
mandeepnh5 authored Dec 24, 2024
1 parent 47c0e3b commit e1b49d2
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 43 deletions.
41 changes: 0 additions & 41 deletions src/screens/CommunityProfile/CommunityProfile.module.css

This file was deleted.

5 changes: 3 additions & 2 deletions src/screens/CommunityProfile/CommunityProfile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import {
SlackLogo,
} from 'assets/svgs/social-icons';
import convertToBase64 from 'utils/convertToBase64';
import styles from './CommunityProfile.module.css';
import styles from '../../style/app.module.css';
import { errorHandler } from 'utils/errorHandler';
import UpdateSession from '../../components/UpdateSession/UpdateSession';

Expand Down Expand Up @@ -90,7 +90,7 @@ const CommunityProfile = (): JSX.Element => {
React.useEffect(() => {
const preLoginData: PreLoginImageryDataType | undefined =
data?.getCommunityData;
preLoginData &&
if (preLoginData) {
setProfileVariable({
name: preLoginData.name ?? '',
websiteLink: preLoginData.websiteLink ?? '',
Expand All @@ -104,6 +104,7 @@ const CommunityProfile = (): JSX.Element => {
reddit: preLoginData.socialMediaUrls.reddit ?? '',
slack: preLoginData.socialMediaUrls.slack ?? '',
});
}
}, [data]);

/**
Expand Down
42 changes: 42 additions & 0 deletions src/style/app.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -831,6 +831,48 @@ hr {
color: #31bb6b !important;
}

.card {
width: fit-content;
}

.cardHeader {
padding: 1.25rem 1rem 1rem 1rem;
border-bottom: 1px solid var(--bs-gray-200);
display: flex;
justify-content: space-between;
align-items: center;
}

.cardHeader .cardTitle {
font-size: 1.5rem;
}

.formLabel {
font-weight: normal;
padding-bottom: 0;
font-size: 1rem;
color: black;
}
.cardBody {
min-height: 180px;
}

.cardBody .textBox {
margin: 0 0 3rem 0;
color: var(--bs-secondary);
}

.socialInput {
height: 2.5rem;
}

@media (max-width: 520px) {
.btn {
flex-direction: column;
justify-content: center;
}
}

@media (max-width: 1024px) {
.pageNotFound h1.head {
font-size: 200px;
Expand Down

0 comments on commit e1b49d2

Please sign in to comment.