Skip to content

Commit 83662c0

Browse files
committed
Change background on home page
1 parent 6f6dcc4 commit 83662c0

File tree

4 files changed

+29
-30
lines changed

4 files changed

+29
-30
lines changed

frontend/assets/Reports_bg.png

907 KB
Loading

frontend/src/pages/Home/HomePage.scss

Lines changed: 28 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,48 +1,49 @@
11
.home-page {
2+
background: url('../../../assets/Reports_bg.png') no-repeat center center;
23
background-color: var(--ion-color-light);
34
min-height: 100%;
4-
5+
56
&__greeting {
67
margin-top: 0;
78
margin-bottom: 1.5rem;
8-
9+
910
&-container {
1011
display: flex;
1112
flex-direction: column;
1213
align-items: flex-start;
1314
}
14-
15+
1516
&-text {
1617
margin-top: 0.75rem;
1718
margin-left: 0;
1819
}
19-
20+
2021
&-title {
2122
font-size: 1rem;
2223
color: var(--ion-color-medium);
2324
margin: 0 0 0.25rem;
2425
font-weight: normal;
2526
}
26-
27+
2728
&-subtitle {
2829
font-size: 1.5rem;
2930
font-weight: 700;
3031
margin: 0;
3132
color: var(--ion-color-dark);
3233
}
3334
}
34-
35+
3536
&__avatar {
3637
flex-shrink: 0;
37-
38+
3839
ion-avatar {
3940
width: 4rem;
4041
height: 4rem;
4142
border: 3px solid white;
4243
box-shadow: 0 0.125rem 0.5rem rgba(0, 0, 0, 0.1);
4344
}
4445
}
45-
46+
4647
&__ai-card {
4748
margin-bottom: 1.5rem;
4849
border-radius: 1rem;
@@ -54,15 +55,15 @@
5455
--ion-card-margin-end: 0;
5556
margin-inline: 0;
5657
height: 7.5rem;
57-
58+
5859
ion-card-content {
5960
padding: 0;
6061
position: relative;
6162
z-index: 2;
6263
height: 100%;
6364
display: flex;
6465
align-items: center;
65-
66+
6667
h3.home-page__ai-card-title {
6768
color: white;
6869
font-size: 1rem;
@@ -72,7 +73,7 @@
7273
white-space: normal;
7374
word-wrap: break-word;
7475
}
75-
76+
7677
span.home-page__ai-card-button-inline {
7778
font-size: 0.875rem;
7879
color: #FFBE5B;
@@ -84,11 +85,11 @@
8485
word-wrap: break-word;
8586
}
8687
}
87-
88+
8889
&-decoration {
8990
position: absolute;
9091
z-index: 1;
91-
92+
9293
&--star1 {
9394
width: 1rem;
9495
height: 1rem;
@@ -97,7 +98,7 @@
9798
top: 0.75rem;
9899
right: 2.5rem;
99100
}
100-
101+
101102
&--star2 {
102103
width: 0.75rem;
103104
height: 0.75rem;
@@ -106,7 +107,7 @@
106107
top: 2.5rem;
107108
right: 1rem;
108109
}
109-
110+
110111
&--circle1 {
111112
width: 0.5rem;
112113
height: 0.5rem;
@@ -115,7 +116,7 @@
115116
bottom: 1.5rem;
116117
right: 1.5rem;
117118
}
118-
119+
119120
&--circle2 {
120121
width: 0.375rem;
121122
height: 0.375rem;
@@ -125,7 +126,7 @@
125126
left: 1.5rem;
126127
}
127128
}
128-
129+
129130
&-content {
130131
display: flex;
131132
justify-content: space-between;
@@ -135,7 +136,7 @@
135136
width: 100%;
136137
padding: 0 1.25rem;
137138
}
138-
139+
139140
&-text-container {
140141
flex: 1;
141142
padding-left: 0.75rem;
@@ -145,7 +146,7 @@
145146
padding-bottom: 1.25rem;
146147
max-width: 60%;
147148
}
148-
149+
149150
&-image-container {
150151
flex-shrink: 0;
151152
position: relative;
@@ -158,7 +159,7 @@
158159
margin-bottom: -1px;
159160
max-width: 40%;
160161
}
161-
162+
162163
&-image {
163164
max-width: 100%;
164165
height: auto;
@@ -167,41 +168,41 @@
167168
margin-bottom: 0;
168169
}
169170
}
170-
171+
171172
&__reports {
172173
&-header {
173174
display: flex;
174175
justify-content: space-between;
175176
align-items: center;
176177
margin-bottom: 0.75rem;
177178
}
178-
179+
179180
&-title {
180181
font-size: 1.125rem;
181182
font-weight: 600;
182183
margin: 0;
183184
color: var(--ion-color-dark);
184185
}
185-
186+
186187
&-link {
187188
font-size: 0.875rem;
188189
font-weight: 500;
189190
color: var(--ion-color-primary);
190191
text-decoration: none;
191192
}
192-
193+
193194
&-list {
194195
margin-bottom: 1rem;
195196
background: transparent;
196-
197+
197198
ion-item {
198199
--background: white;
199200
--border-color: rgba(0, 0, 0, 0.05);
200201
margin-bottom: 0.5rem;
201202
border-radius: 0.75rem;
202203
--padding-start: 1rem;
203204
--padding-end: 1rem;
204-
205+
205206
&:last-child {
206207
margin-bottom: 0;
207208
}
@@ -251,4 +252,4 @@ ion-card.home-page__ai-card ion-card-content span.home-page__ai-card-button-inli
251252
// Skeleton loading styles
252253
.report-icon.skeleton {
253254
background-color: var(--ion-color-light-shade);
254-
}
255+
}

frontend/src/pages/Home/components/ReportItem/ReportItem.scss

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
.report-item {
22
display: flex;
33
padding: 16px;
4-
background: white;
54
border-radius: 12px;
65
margin-bottom: 12px;
76
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);

frontend/src/pages/Reports/ReportsListPage.scss

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
.reports-list-page {
2-
--background: white;
2+
--background: url('../../../assets/Reports_bg.png') no-repeat center center;
33

44
&__header {
5-
background: white;
65
box-shadow: none;
76

87
ion-toolbar {

0 commit comments

Comments
 (0)