Skip to content

Commit

Permalink
Merge pull request #160 from nr2f1/register-patient-cms
Browse files Browse the repository at this point in the history
register patient cms
  • Loading branch information
pataruco authored Jan 18, 2025
2 parents 84c5e3b + 7c9ea47 commit 05f8dac
Show file tree
Hide file tree
Showing 22 changed files with 790 additions and 270 deletions.
1 change: 0 additions & 1 deletion website/src/app/[lang]/blog/[slug]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ export async function generateMetadata({
}: BlogPagePropsWithLocale): Promise<Metadata> {
const { lang, slug } = await params;

const { query } = getClient();
const { data } = await query<GetPostQuery>({
query: GetPostDocument,
variables: { locale: lang, slug },
Expand Down
71 changes: 11 additions & 60 deletions website/src/app/[lang]/register-a-patient/page-body.module.scss
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
@use '@styles/layout';
@use '@styles/breakpoints';
@use '@styles/text-styles';
@use '@styles/icons';

.page-layout {
padding: var(--spacing-6) var(--spacing-16) var(--spacing-24);
Expand Down Expand Up @@ -71,13 +70,24 @@
}

li:not(:last-of-type) {
& p {
margin: 0;
}
margin-block-end: var(--spacing-2);
}

h2 {
@include text-styles.header-2;
margin: 0;
margin-block-end: var(--spacing-4);

@include breakpoints.small-screen {
@include text-styles.header-2__mobile;
}

@include breakpoints.medium-screen {
@include text-styles.header-2__mobile;
}
}

section {
Expand All @@ -103,62 +113,3 @@
display: none;
}
}

.accordion {
background-color: var(--background-accent-navy);
padding: 0 var(--spacing-6);

&:first-of-type {
border-top-right-radius: var(--border-radius-xl);
border-top-left-radius: var(--border-radius-xl);
}

&:last-of-type {
border-bottom-right-radius: var(--border-radius-xl);
border-bottom-left-radius: var(--border-radius-xl);
}

&:not(:first-of-type) summary {
border-block-start: 1px solid var(--border-default);
}

&[open] summary {
&::after {
background-image: url(icons.$chevron-up-navy);
}
}

summary {
@include text-styles.header-3;
padding: var(--spacing-6) 0;
cursor: pointer;
display: flex;
justify-content: space-between;
align-items: center;
&::marker,
&::-webkit-details-marker {
display: none;
content: '';
}

&::after {
aspect-ratio: 1 / 1;
background-image: url(icons.$chevron-down-navy);
background-position: center;
background-size: contain;
content: '';
display: block;
width: var(--spacing-5);
}
}

& > div {
padding-block-end: var(--spacing-6);
& p:last-of-type {
margin-block-end: 0;
}
& li:last-of-type {
margin-block-end: 0;
}
}
}
Loading

0 comments on commit 05f8dac

Please sign in to comment.