Skip to content

Commit e0e3734

Browse files
authored
Merge pull request #8169 from ayanasarkar/fix/meshmate-logo-responsive
[UI] Fix MeshMate hero logo clipping on MeshMates and Community pages
2 parents 1936b6d + 5f99a0d commit e0e3734

4 files changed

Lines changed: 22 additions & 2 deletions

File tree

‎src/sections/Community/Meshmates/index.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ const Meshmates = () => {
136136
<p> Meshtees are encouraged to reach out to any MeshMate directly in order to pair up. Introduce yourself either on in the <a href="https://discuss.meshery.io/c/community/12">Layer5 discussion forum</a>. Help your MeshMate understand your current skills, ideal topics of learning, and areas of passion. Doing so will help them to point out various aspects of projects that you might find your first foothold. </p>
137137
</div>
138138
<div className="meshmate-meet">
139-
<Row $Vcenter>
139+
<Row className="meshmate-meet-row" $Vcenter>
140140
<Col $sm={12} $lg={6}>
141141
<h2> Meeting Your MeshMate </h2>
142142
<p>After pairing up on the <a href="https://discuss.meshery.io/c/community/12">Layer5 discussion forum</a>, the community Slack’s video chat or Google Hangouts are both available for your use as tools for getting to know one another. While getting acquainted and onboarding into the community, we suggest the following goals: </p>

‎src/sections/Community/Meshmates/meshmates.style.js‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ import styled from "styled-components";
33
const MeshMatesWrapper = styled.div`
44
55
.hero{
6+
@media (max-width: 991px) {
7+
flex-wrap: wrap;
8+
}
69
p{
710
margin: 1.875rem auto 1rem auto;
811
}
@@ -22,6 +25,8 @@ const MeshMatesWrapper = styled.div`
2225
}
2326
svg {
2427
height: 25rem;
28+
max-width: 100%;
29+
min-width: 0;
2530
.meshmate-stack-colorMode_svg__colorMode1 {
2631
fill: ${props => props.theme.whiteToGreen3C494F};
2732
}
@@ -59,6 +64,11 @@ const MeshMatesWrapper = styled.div`
5964
}
6065
}
6166
.meshmate-meet{
67+
.meshmate-meet-row{
68+
@media (max-width: 991px) {
69+
flex-wrap: wrap;
70+
}
71+
}
6272
margin: 4.25rem auto 2.75rem auto;
6373
h2{
6474
margin-bottom: 1.875rem;

‎src/sections/Community/community.style.js‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,10 @@ const CommunitySectionWrapper = styled.div`
7777
margin: auto 3rem;
7878
align-items: center;
7979
80+
@media (max-width: 991px) {
81+
flex-wrap: wrap;
82+
}
83+
8084
@media (max-width: 650px) {
8185
margin: auto 1.25rem;
8286
}
@@ -109,6 +113,9 @@ const CommunitySectionWrapper = styled.div`
109113
}
110114
}
111115
.meshmate{
116+
@media (max-width: 991px) {
117+
flex-wrap: wrap;
118+
}
112119
margin-top: 5rem;
113120
.content{
114121
h1, h3, h4 {
@@ -205,6 +212,9 @@ const CommunitySectionWrapper = styled.div`
205212
}
206213
207214
.newcomers-section {
215+
@media (max-width: 991px) {
216+
flex-wrap: wrap;
217+
}
208218
width:100%;
209219
margin: 5rem 0;
210220
padding: 2rem 0;

‎src/sections/Community/index.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ const CommunityPage = () => {
166166
</Row>
167167
</Container>
168168
<Container>
169-
<Row className="meshmate">
169+
<Row className="meshmate" $Vcenter>
170170
<Col className="content" $sm={12} $lg={6}>
171171
<h1 className="onboarding">
172172
An onboarding and mentoring program

0 commit comments

Comments
 (0)