Skip to content

Commit b0b0277

Browse files
committed
moving inline styling to css file
1 parent 4330cb8 commit b0b0277

File tree

4 files changed

+204
-166
lines changed

4 files changed

+204
-166
lines changed

src/components/SimplePanel.css

Lines changed: 148 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,148 @@
1+
.panel-container {
2+
padding: 12px;
3+
overflow-y: auto;
4+
}
5+
6+
.panel-section-header {
7+
font-size: 18px;
8+
font-weight: bold;
9+
margin-bottom: 16px;
10+
overflow-wrap: break-word;
11+
}
12+
13+
.panel-section-header.top-spacing {
14+
margin-top: 20px;
15+
}
16+
17+
/* community engagement stats */
18+
.panel-stats-row {
19+
display: flex;
20+
justify-content: space-between;
21+
align-items: center;
22+
gap: 24px;
23+
margin: 0 24px 0px 24px;
24+
}
25+
26+
.panel-stats-row.is-narrow {
27+
flex-direction: column;
28+
}
29+
30+
.panel-stat-item {
31+
text-align: center;
32+
}
33+
34+
.panel-stat-value {
35+
font-size: 36px;
36+
font-weight: bold;
37+
}
38+
39+
.panel-stat-label {
40+
font-size: 14px;
41+
color: #555;
42+
}
43+
44+
/* Platform Breakdown Cards */
45+
.panel-card {
46+
border: 1px solid #ddd;
47+
border-radius: 12px;
48+
padding: 16px;
49+
margin-bottom: 12px;
50+
background: white;
51+
}
52+
53+
.panel-card-inner {
54+
display: flex;
55+
align-items: center;
56+
gap: 12px;
57+
}
58+
59+
.panel-card-inner.is-narrow {
60+
flex-direction: column;
61+
}
62+
63+
/* Icons */
64+
.panel-card-icon-wrapper {
65+
min-width: 40px;
66+
min-height: 40px;
67+
width: 40px;
68+
height: 40px;
69+
border-radius: 50%;
70+
display: flex;
71+
align-items: center;
72+
justify-content: center;
73+
flex-shrink: 0;
74+
}
75+
76+
.panel-card-icon-img {
77+
width: 20px;
78+
height: 20px;
79+
object-fit: contain;
80+
}
81+
82+
/* Card Content */
83+
.panel-card-content {
84+
flex: 1;
85+
width: 100%;
86+
}
87+
88+
.panel-card-header-row {
89+
display: flex;
90+
justify-content: space-between;
91+
align-items: center;
92+
gap: 8px;
93+
}
94+
95+
.panel-card-header-row.is-narrow {
96+
flex-direction: column;
97+
align-items: center;
98+
}
99+
100+
.panel-category-title {
101+
margin: 0;
102+
font-size: 16px;
103+
font-weight: bold;
104+
overflow-wrap: break-word;
105+
}
106+
107+
.panel-percent-pill {
108+
padding: 2px 12px;
109+
background: #F4F4F4;
110+
border-radius: 20px;
111+
font-size: 14px;
112+
display: flex;
113+
align-items: center;
114+
justify-content: center;
115+
}
116+
117+
.panel-card-posts-count {
118+
margin: 0;
119+
margin-top: 6px;
120+
font-size: 14px;
121+
color: #444;
122+
word-wrap: break-word;
123+
}
124+
125+
.panel-card-posts-count.is-narrow {
126+
margin: 0;
127+
margin-top: 6px;
128+
font-size: 14px;
129+
color: #444;
130+
word-wrap: break-word;
131+
display: flex;
132+
align-items: center;
133+
justify-content: center;
134+
}
135+
136+
/* language distribution */
137+
.panel-lang-container {
138+
display: flex;
139+
gap: 8px;
140+
flex-wrap: wrap;
141+
}
142+
143+
.panel-lang-pill {
144+
padding: 6px 12px;
145+
background: #F4F4F4;
146+
border-radius: 20px;
147+
font-size: 13px;
148+
}

0 commit comments

Comments
 (0)