Skip to content
Merged
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
Binary file added frontend/assets/Reports_bg.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
55 changes: 28 additions & 27 deletions frontend/src/pages/Home/HomePage.scss
Original file line number Diff line number Diff line change
@@ -1,48 +1,49 @@
.home-page {
background: url('../../../assets/Reports_bg.png') no-repeat center center;
background-color: var(--ion-color-light);
min-height: 100%;

&__greeting {
margin-top: 0;
margin-bottom: 1.5rem;

&-container {
display: flex;
flex-direction: column;
align-items: flex-start;
}

&-text {
margin-top: 0.75rem;
margin-left: 0;
}

&-title {
font-size: 1rem;
color: var(--ion-color-medium);
margin: 0 0 0.25rem;
font-weight: normal;
}

&-subtitle {
font-size: 1.5rem;
font-weight: 700;
margin: 0;
color: var(--ion-color-dark);
}
}

&__avatar {
flex-shrink: 0;

ion-avatar {
width: 4rem;
height: 4rem;
border: 3px solid white;
box-shadow: 0 0.125rem 0.5rem rgba(0, 0, 0, 0.1);
}
}

&__ai-card {
margin-bottom: 1.5rem;
border-radius: 1rem;
Expand All @@ -54,15 +55,15 @@
--ion-card-margin-end: 0;
margin-inline: 0;
height: 7.5rem;

ion-card-content {
padding: 0;
position: relative;
z-index: 2;
height: 100%;
display: flex;
align-items: center;

h3.home-page__ai-card-title {
color: white;
font-size: 1rem;
Expand All @@ -72,7 +73,7 @@
white-space: normal;
word-wrap: break-word;
}

span.home-page__ai-card-button-inline {
font-size: 0.875rem;
color: #FFBE5B;
Expand All @@ -84,11 +85,11 @@
word-wrap: break-word;
}
}

&-decoration {
position: absolute;
z-index: 1;

&--star1 {
width: 1rem;
height: 1rem;
Expand All @@ -97,7 +98,7 @@
top: 0.75rem;
right: 2.5rem;
}

&--star2 {
width: 0.75rem;
height: 0.75rem;
Expand All @@ -106,7 +107,7 @@
top: 2.5rem;
right: 1rem;
}

&--circle1 {
width: 0.5rem;
height: 0.5rem;
Expand All @@ -115,7 +116,7 @@
bottom: 1.5rem;
right: 1.5rem;
}

&--circle2 {
width: 0.375rem;
height: 0.375rem;
Expand All @@ -125,7 +126,7 @@
left: 1.5rem;
}
}

&-content {
display: flex;
justify-content: space-between;
Expand All @@ -135,7 +136,7 @@
width: 100%;
padding: 0 1.25rem;
}

&-text-container {
flex: 1;
padding-left: 0.75rem;
Expand All @@ -145,7 +146,7 @@
padding-bottom: 1.25rem;
max-width: 60%;
}

&-image-container {
flex-shrink: 0;
position: relative;
Expand All @@ -158,7 +159,7 @@
margin-bottom: -1px;
max-width: 40%;
}

&-image {
max-width: 100%;
height: auto;
Expand All @@ -167,41 +168,41 @@
margin-bottom: 0;
}
}

&__reports {
&-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 0.75rem;
}

&-title {
font-size: 1.125rem;
font-weight: 600;
margin: 0;
color: var(--ion-color-dark);
}

&-link {
font-size: 0.875rem;
font-weight: 500;
color: var(--ion-color-primary);
text-decoration: none;
}

&-list {
margin-bottom: 1rem;
background: transparent;

ion-item {
--background: white;
--border-color: rgba(0, 0, 0, 0.05);
margin-bottom: 0.5rem;
border-radius: 0.75rem;
--padding-start: 1rem;
--padding-end: 1rem;

&:last-child {
margin-bottom: 0;
}
Expand Down Expand Up @@ -251,4 +252,4 @@ ion-card.home-page__ai-card ion-card-content span.home-page__ai-card-button-inli
// Skeleton loading styles
.report-icon.skeleton {
background-color: var(--ion-color-light-shade);
}
}
15 changes: 13 additions & 2 deletions frontend/src/pages/Home/components/ReportItem/ReportItem.scss
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
.report-item {
display: flex;
padding: 16px;
background: white;
border-radius: 12px;
margin-bottom: 12px;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
Expand Down Expand Up @@ -53,9 +52,21 @@
&-icon {
font-size: 22px;
color: #aaa;
transition: all 0.2s ease;
width: 1em;
height: 1em;
display: flex;
align-items: center;
justify-content: center;
background-color: white;
border-radius: 50%;
padding: 8px;
box-sizing: content-box;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);

&--active {
color: #4355b9;
color: white;
background-color: #4355b9;
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/pages/Home/components/ReportItem/ReportItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { IonIcon } from '@ionic/react';
import { format } from 'date-fns';
import { useTranslation } from 'react-i18next';
import { MedicalReport, ReportCategory } from 'common/models/medicalReport';
import { bookmark, bookmarkOutline } from 'ionicons/icons';
import { bookmarkOutline } from 'ionicons/icons';
import './ReportItem.scss';

// Import SVG icons
Expand Down Expand Up @@ -99,7 +99,7 @@ const ReportItem: React.FC<ReportItemProps> = ({
{showBookmarkButton && (
<div className="report-item__bookmark" onClick={handleBookmarkClick}>
<IonIcon
icon={bookmarked ? bookmark : bookmarkOutline}
icon={bookmarkOutline}
className={`report-item__bookmark-icon ${
bookmarked ? 'report-item__bookmark-icon--active' : ''
}`}
Expand Down
9 changes: 2 additions & 7 deletions frontend/src/pages/Reports/ReportsListPage.scss
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
.reports-list-page {
--background: white;
--background: url('../../../assets/Reports_bg.png') no-repeat center center;

&__header {
background: white;
box-shadow: none;

ion-toolbar {
--background: white;
--border-width: 0;
--min-height: 60px;
padding: 10px 16px;
Expand Down Expand Up @@ -65,7 +63,6 @@
align-items: center;
justify-content: center;
border-radius: 50%;
background-color: white;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
border: 1px solid rgba(0, 0, 0, 0.03);
}
Expand All @@ -77,13 +74,11 @@
}

&__content-container {
--background: white;
--padding-top: 0;
}

&__filter {
padding: 8px 16px;
background-color: white;
}

&__segment-wrapper {
Expand All @@ -96,7 +91,7 @@

ion-segment-button {
--color: #777;
--color-checked: #4355b9;
--color-checked: #000;
--indicator-color: white;
--background-checked: white;
--border-radius: 50px;
Expand Down