Skip to content

Commit 2dbf6ab

Browse files
Merge branch 'master' into fixGsapAnimation
2 parents 7017fa0 + 81fa362 commit 2dbf6ab

File tree

5 files changed

+224
-39
lines changed

5 files changed

+224
-39
lines changed

.github/workflows/build-and-preview-site.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,11 @@ jobs:
2121
npm run version
2222
npm run noIndex
2323
24+
- name: Broken Link Check 🔗
25+
uses: technote-space/broken-link-checker-action@v2
26+
with:
27+
target: ./public/**/*.html
28+
2429
- name: Zip Site
2530
run: bash ./script.sh
2631

src/sections/Community/Newcomers-guide/NewcomersPageWrapper.style.js

Lines changed: 32 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -122,14 +122,17 @@ export const NewcomersGuideWrapper = styled.section`
122122
.community-collage {
123123
text-align: center ;
124124
min-width: 45vmin;
125-
125+
margin-bottom: 1rem;
126126
}
127127
.community-img{
128128
text-align:center;
129129
}
130130
.table-wrapper{
131131
text-align: center;
132132
margin-bottom: 4rem;
133+
h5 {
134+
margin-bottom: 2.5rem;
135+
}
133136
}
134137
.book-container {
135138
display: flex;
@@ -152,13 +155,14 @@ export const NewcomersGuideWrapper = styled.section`
152155
}
153156
154157
.book {
155-
min-width: 200px;
156-
min-height: 300px;
158+
width: 200px;
159+
height: 300px;
157160
position: relative;
158161
transform-style: preserve-3d;
159162
transform: rotateY(-30deg);
160163
transition: 1s ease;
161164
animation: 1s ease 0s 1 initAnimation;
165+
overflow: visible;
162166
}
163167
164168
.book:hover {
@@ -170,10 +174,18 @@ export const NewcomersGuideWrapper = styled.section`
170174
top: 0;
171175
left: 0;
172176
background-color: #171a12;
173-
width: 200px;
174-
height: 300px;
177+
width: 100%;
178+
height: 100%;
175179
transform: translateZ(25px);
176180
border-radius: 0 2px 2px 0;
181+
overflow: visible;
182+
}
183+
184+
.book > :first-child img {
185+
max-width: 100%;
186+
width: 100%;
187+
height: auto;
188+
object-fit: contain;
177189
}
178190
179191
.book::before {
@@ -182,7 +194,7 @@ export const NewcomersGuideWrapper = styled.section`
182194
left: 0;
183195
top: 3px;
184196
width: 48px;
185-
height: 294px;
197+
height: calc(100% - 6px);
186198
transform: translateX(172px) rotateY(90deg);
187199
background: linear-gradient(
188200
90deg,
@@ -215,8 +227,8 @@ export const NewcomersGuideWrapper = styled.section`
215227
top: 0;
216228
left: 0;
217229
content: " ";
218-
width: 200px;
219-
height: 300px;
230+
width: 100%;
231+
height: 100%;
220232
transform: translateZ(-25px);
221233
background-color: #292929;
222234
border-radius: 0 2px 2px 0;
@@ -244,7 +256,19 @@ export const NewcomersGuideWrapper = styled.section`
244256
h2 {
245257
margin-top: -1.5rem;
246258
}
259+
}
260+
/* For "Explore the Meshery Community" section */
261+
.community-collage {
262+
order: 2;
263+
}
264+
/* For "Finding an Issue" section - apply to Col */
265+
.col-finding-an-issue {
266+
order: 2;
267+
}
268+
.col-newcomers-form {
269+
margin-bottom: 1.5rem;
247270
}
271+
}
248272
}
249273
`;
250274

Lines changed: 45 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,47 +1,78 @@
11
import styled from "styled-components";
22

33
export const TutorialsTableWrapper = styled.div`
4-
box-shadow:0 2px 16px rgba(0,0,0,0.2);
4+
box-shadow: 0 2px 16px rgba(0,0,0,0.2);
5+
overflow-x: auto;
6+
-webkit-overflow-scrolling: touch;
57
6-
table{
7-
display: table;
8+
table {
89
width: 100%;
9-
height: auto;
10+
min-width: 600px;
1011
border-collapse: collapse;
11-
margin: 3.75rem auto;
12+
margin: 0 auto 2rem auto;
13+
14+
@media (max-width: 375px) {
15+
margin: 0.5rem auto;
16+
}
17+
1218
th {
1319
color: white;
20+
background-color: ${props => props.theme.secondaryColor};
1421
}
22+
1523
th, tr {
16-
height: 3.75rem;
24+
height: 3rem;
1725
vertical-align: middle;
18-
transition: 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
26+
27+
@media (max-width: 375px) {
28+
height: 2.5rem;
29+
}
1930
}
31+
2032
tr:nth-child(odd) {
2133
background-color: ${props => props.theme.grey212121ToWhite};
2234
}
23-
th {
24-
background-color: ${props => props.theme.secondaryColor};
25-
}
35+
2636
th, td {
2737
border-bottom: 1px solid #F0F0F0;
2838
padding: 0 0.625rem;
29-
p{
30-
margin: 0.5rem 0;
39+
40+
@media (max-width: 375px) {
41+
padding: 0 0.375rem;
3142
}
43+
44+
p {
45+
margin: 0.25rem 0;
46+
}
47+
3248
span {
3349
display: block;
3450
}
3551
}
36-
}
37-
.newBadge {
52+
}
53+
54+
.newBadge {
3855
display: flex;
3956
align-items: center;
4057
justify-content: center;
4158
gap: 6px;
59+
4260
img {
4361
height: 26px;
4462
width: auto;
63+
64+
@media (max-width: 375px) {
65+
height: 20px;
66+
}
4567
}
4668
}
69+
70+
&::-webkit-scrollbar {
71+
height: 8px;
72+
}
73+
74+
&::-webkit-scrollbar-thumb {
75+
background: ${props => props.theme.secondaryColor};
76+
border-radius: 4px;
77+
}
4778
`;

src/sections/Community/Newcomers-guide/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,10 +82,10 @@ const NewcomersGuide = () => {
8282
<h3>Fill in the Community Member Form</h3>
8383
<p>Help us get to know you, so that we can highlight projects and initiatives that align with your interests. Fill-in a community member form. Gain access to community resources.</p>
8484
</Col>
85-
<Col $sm={12} $lg={6}>
85+
<Col $sm={12} $lg={6} className="col-newcomers-form">
8686
<Button $primary className="newcomers-form" title="Submit a Member Form" $url="/newcomer" $external={false} />
8787
</Col>
88-
<Col $sm={12} $lg={6}>
88+
<Col $sm={12} $lg={6} className="col-finding-an-issue">
8989
<div className="finding-an-issue">
9090
<StaticImage src={CommunityImage2} alt="Five Working Image" />
9191
</div>

0 commit comments

Comments
 (0)