Skip to content

Commit ec4580b

Browse files
committed
Enhance error handling in route: /c
1 parent 5ac0d36 commit ec4580b

File tree

2 files changed

+271
-196
lines changed

2 files changed

+271
-196
lines changed

apps/cyberstorm-remix/app/c/Community.css

Lines changed: 31 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@
55
z-index: 1;
66
display: flex;
77
flex-direction: column;
8-
gap: 1rem;
8+
gap: var(--space-16);
99
align-items: flex-start;
1010
align-self: stretch;
11-
padding: 1rem 3rem 2rem;
11+
padding: var(--space-16) var(--space-48) var(--space-32);
1212
}
1313

1414
.community__header {
@@ -27,14 +27,14 @@
2727
align-self: stretch;
2828
justify-content: center;
2929
max-height: 12.5rem;
30-
border-radius: 0.5rem;
30+
border-radius: var(--radius-md);
3131
overflow-y: hidden;
3232
transition: height 2s;
3333

3434
> img {
3535
width: 100%;
3636
height: 100%;
37-
border-radius: 0.5rem;
37+
border-radius: var(--radius-md);
3838
object-fit: cover;
3939
background: var(--color-ui-surface-1);
4040
opacity: 0.8;
@@ -58,13 +58,13 @@
5858
z-index: 1;
5959
display: flex;
6060
flex-wrap: wrap;
61-
gap: 1.5rem;
61+
gap: var(--space-24);
6262
place-items: flex-end stretch;
6363
align-self: stretch;
6464
justify-content: space-between;
6565
height: max-content;
66-
margin-top: -1rem;
67-
padding-left: 1rem;
66+
margin-top: calc(var(--space-16) * -1);
67+
padding-left: var(--space-16);
6868
transition:
6969
height ease 1s,
7070
opacity 0.2s,
@@ -74,7 +74,7 @@
7474
.community__content-header {
7575
display: flex;
7676
flex-grow: 1;
77-
gap: 1.5rem;
77+
gap: var(--space-24);
7878
align-items: flex-end;
7979
align-self: stretch;
8080
min-width: 75%;
@@ -93,14 +93,14 @@
9393

9494
.community__game-icon {
9595
display: flex;
96-
gap: 0.5rem;
96+
gap: var(--space-8);
9797
align-items: center;
9898
width: 7rem;
9999
height: 7rem;
100-
padding: var(--Space-12, 0.75rem);
101-
border: 1px solid var(--Color-border-bright, rgb(70 70 149 / 0.66));
102-
border-radius: var(--Radius-xl, 1rem);
103-
background: var(--Color-Surface-1, #070721);
100+
padding: var(--space-12);
101+
border: var(--border-width--px) solid var(--color-ui-border-2);
102+
border-radius: var(--radius-xl);
103+
background: var(--color-surface-1);
104104
aspect-ratio: 1/1;
105105
}
106106

@@ -121,7 +121,7 @@
121121
display: flex;
122122
flex-direction: column;
123123
flex-grow: 1;
124-
gap: 0.75rem;
124+
gap: var(--space-12);
125125
align-items: flex-start;
126126
justify-content: center;
127127
}
@@ -130,7 +130,7 @@
130130
display: flex;
131131
flex: 1 0 0;
132132
flex-direction: column;
133-
gap: 0.25rem;
133+
gap: var(--space-4);
134134
align-items: flex-start;
135135
align-self: stretch;
136136
min-width: 60%;
@@ -145,10 +145,10 @@
145145
.community__header-meta {
146146
display: flex;
147147
flex: 0 1 60%;
148-
gap: 1.5rem;
148+
gap: var(--space-24);
149149
align-items: center;
150150
min-width: 60%;
151-
height: 16px;
151+
height: var(--space-16);
152152

153153
> .skeleton {
154154
height: 1rem;
@@ -197,6 +197,19 @@
197197
}
198198
}
199199

200+
.community__error {
201+
display: flex;
202+
flex-direction: column;
203+
gap: var(--space-16);
204+
align-items: flex-start;
205+
padding: var(--space-48) 0;
206+
}
207+
208+
.community__error-description {
209+
max-width: 40rem;
210+
color: var(--color-text-tertiary);
211+
}
212+
200213
@media (width >= 41rem) {
201214
.community__background {
202215
height: 12.5rem;
@@ -211,7 +224,7 @@
211224
}
212225

213226
.community__header {
214-
gap: 1rem;
227+
gap: var(--space-16);
215228
}
216229

217230
.community__content-header-wrapper {

0 commit comments

Comments
 (0)