Skip to content

AA-fix container #442

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 7 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 4 additions & 8 deletions src/pages/HomePage.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,18 +109,14 @@ const HomePage = ({ lang = 'en' }) => {
// In both cases, chat session is attempted. If chat session fails, outage will be shown on next render.
return (
<WrappedErrorBoundary>
<GcdsContainer
size="xl"
mainContainer
centered
tag="main"
className="mb-600"
<div
className="mb-600 container-gcweb"
>
<h1 className="mb-400">{t('homepage.title')}</h1>
<h2 className="mt-400 mb-400" aria-label={t('homepage.subtitle.ariaLabel')}>
<span className="aria-hidden">{t('homepage.subtitle.text')}</span>
</h2>
<GcdsText className="mb-200">{t('homepage.intro.researchOnly')}</GcdsText>
<GcdsText className="">{t('homepage.intro.researchOnly')}</GcdsText>
<GcdsDetails detailsTitle={t('homepage.privacy.title')} className="mb-400" tabIndex={0}>
<GcdsText>{t('homepage.privacy.storage')}</GcdsText>
<GcdsText>{t('homepage.privacy.disclaimer')}</GcdsText>
Expand All @@ -132,7 +128,7 @@ const HomePage = ({ lang = 'en' }) => {
</GcdsText>
</GcdsDetails>
<ChatAppContainer lang={lang} chatId={chatId} />
</GcdsContainer>
</div>
<GcdsContainer size="xl" mainContainer centered tag="below" className="mb-600" tabIndex={0}>
<GcdsText>
<a
Expand Down
48 changes: 45 additions & 3 deletions src/styles/App.css
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,46 @@
margin: 0 auto;
padding-left: 1.5rem;
}

.container-gcweb:first-of-type {
margin-bottom: 0px !important;
}

.container-gcweb {
padding-right: 15px;
padding-left: 15px;
margin-right: auto;
margin-left: auto
}

.container-gcweb :after,
.container-gcweb :before {
display: table;
/* content: " " */
}

.container-gcweb :after {
clear: both
}

@media (min-width:768px) {
.container-gcweb {
width: 750px
}
}

@media (min-width:992px) {
.container-gcweb {
width: 970px
}
}

@media (min-width:1200px) {
.container-gcweb {
width: 1170px
}
}

.referring-url-container {
max-width: 600px;
margin: 20px auto;
Expand Down Expand Up @@ -258,7 +298,7 @@ code {
color: #555;
}
.input-area {
margin-top: 1rem;
margin-top: 0;
width: 100%;
}

Expand Down Expand Up @@ -319,6 +359,7 @@ code {
padding: 10px;
border-bottom: 1px solid #e0e0e0;
font-size: 1rem;
display: flex;
}
.feedback-container p {
margin-bottom: 10px;
Expand Down Expand Up @@ -405,6 +446,7 @@ code {
/* expert rating */
.expert-rating-container {
margin-top: 10px;
margin-bottom: 10px;
padding: 20px 20px 20px 20px;
background-color: #f5f5f5;
border: 1px solid #e3e3e3;
Expand Down Expand Up @@ -670,9 +712,9 @@ h2:first-of-type {
color: #333 !important;
}

gcds-container:first-of-type {
/* gcds-container:first-of-type {
margin-bottom: 0px !important;
}
} */

.loading-container {
border: 1px solid #d9d9d9;
Expand Down