tangled
alpha
login
or
join now
t1c.dev
/
rocksky
forked from
rocksky.app/rocksky
2
fork
atom
A decentralized music tracking and discovery platform built on AT Protocol 🎵
2
fork
atom
overview
issues
pulls
pipelines
Improve album skeleton loader
tsiry-sandratraina.com
1 month ago
13b3b36e
01e16fc8
+67
-14
1 changed file
expand all
collapse all
unified
split
apps
web
src
pages
album
Album.tsx
+67
-14
apps/web/src/pages/album/Album.tsx
···
112
112
<Main>
113
113
<div className="pb-[100px] pt-[50px]">
114
114
{!album && (
115
115
-
<ContentLoader
116
116
-
backgroundColor="var(--color-skeleton-background)"
117
117
-
foregroundColor="var(--color-skeleton-foreground)"
118
118
-
viewBox="100 0 850 700"
119
119
-
height={520}
120
120
-
width={700}
121
121
-
>
122
122
-
<rect x="400" y="21" rx="10" ry="10" width="694" height="20" />
123
123
-
<rect x="400" y="61" rx="10" ry="10" width="80" height="20" />
124
124
-
<rect x="500" y="-46" rx="3" ry="3" width="350" height="6" />
125
125
-
<rect x="471" y="-45" rx="3" ry="3" width="380" height="6" />
126
126
-
<rect x="484" y="-45" rx="3" ry="3" width="201" height="6" />
127
127
-
<rect x="10" y="21" rx="8" ry="8" width="360" height="300" />
128
128
-
</ContentLoader>
115
115
+
<div className="mt-[-50px]">
116
116
+
<ContentLoader
117
117
+
width="100%"
118
118
+
height={600}
119
119
+
viewBox="0 0 900 600"
120
120
+
backgroundColor="var(--color-skeleton-background)"
121
121
+
foregroundColor="var(--color-skeleton-foreground)"
122
122
+
>
123
123
+
{/* Album cover */}
124
124
+
<rect x="0" y="20" rx="8" ry="8" width="240" height="240" />
125
125
+
126
126
+
{/* Album title */}
127
127
+
<rect x="270" y="20" rx="4" ry="4" width="350" height="28" />
128
128
+
129
129
+
{/* Artist name */}
130
130
+
<rect x="270" y="65" rx="3" ry="3" width="220" height="20" />
131
131
+
132
132
+
{/* Listeners label */}
133
133
+
<rect x="270" y="120" rx="3" ry="3" width="80" height="12" />
134
134
+
{/* Listeners count */}
135
135
+
<rect x="270" y="140" rx="3" ry="3" width="100" height="18" />
136
136
+
137
137
+
{/* Scrobbles label */}
138
138
+
<rect x="390" y="120" rx="3" ry="3" width="80" height="12" />
139
139
+
{/* Scrobbles count */}
140
140
+
<rect x="390" y="140" rx="3" ry="3" width="100" height="18" />
141
141
+
142
142
+
{/* View on PDSls button */}
143
143
+
<rect x="700" y="125" rx="8" ry="8" width="180" height="48" />
144
144
+
145
145
+
{/* Genre tags */}
146
146
+
<rect x="270" y="185" rx="3" ry="3" width="60" height="14" />
147
147
+
<rect x="340" y="185" rx="3" ry="3" width="70" height="14" />
148
148
+
<rect x="420" y="185" rx="3" ry="3" width="55" height="14" />
149
149
+
150
150
+
{/* Track list rows */}
151
151
+
{/* Row 1 */}
152
152
+
<rect x="0" y="300" rx="3" ry="3" width="30" height="15" />
153
153
+
<rect x="50" y="300" rx="3" ry="3" width="500" height="15" />
154
154
+
<rect x="800" y="300" rx="3" ry="3" width="60" height="15" />
155
155
+
156
156
+
{/* Row 2 */}
157
157
+
<rect x="0" y="350" rx="3" ry="3" width="30" height="15" />
158
158
+
<rect x="50" y="350" rx="3" ry="3" width="500" height="15" />
159
159
+
<rect x="800" y="350" rx="3" ry="3" width="60" height="15" />
160
160
+
161
161
+
{/* Row 3 */}
162
162
+
<rect x="0" y="400" rx="3" ry="3" width="30" height="15" />
163
163
+
<rect x="50" y="400" rx="3" ry="3" width="500" height="15" />
164
164
+
<rect x="800" y="400" rx="3" ry="3" width="60" height="15" />
165
165
+
166
166
+
{/* Row 4 */}
167
167
+
<rect x="0" y="450" rx="3" ry="3" width="30" height="15" />
168
168
+
<rect x="50" y="450" rx="3" ry="3" width="500" height="15" />
169
169
+
<rect x="800" y="450" rx="3" ry="3" width="60" height="15" />
170
170
+
171
171
+
{/* Row 5 */}
172
172
+
<rect x="0" y="500" rx="3" ry="3" width="30" height="15" />
173
173
+
<rect x="50" y="500" rx="3" ry="3" width="500" height="15" />
174
174
+
<rect x="800" y="500" rx="3" ry="3" width="60" height="15" />
175
175
+
176
176
+
{/* Row 6 */}
177
177
+
<rect x="0" y="550" rx="3" ry="3" width="30" height="15" />
178
178
+
<rect x="50" y="550" rx="3" ry="3" width="500" height="15" />
179
179
+
<rect x="800" y="550" rx="3" ry="3" width="60" height="15" />
180
180
+
</ContentLoader>
181
181
+
</div>
129
182
)}
130
183
{album && (
131
184
<Group>