Skip to content

Commit

Permalink
fix: fix overflow issues but content is cut off
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronchan32 committed Jun 1, 2024
1 parent eee8dfe commit 2d9c2f7
Show file tree
Hide file tree
Showing 6 changed files with 64 additions and 53 deletions.
1 change: 1 addition & 0 deletions src/app/Home.scss
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
padding-inline: $main-padding-mobile-inline;

@media (min-width: $mobile-breakpoint) {
overflow-y: hidden;
padding-block: $main-padding-desktop-block;
padding-inline: $main-padding-desktop-inline;
height: 100vh;
Expand Down
7 changes: 1 addition & 6 deletions src/app/components/Footer/Footer.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,7 @@ footer {
bottom: 0;
left: 0;
width: 100%;
padding-inline: $main-padding-mobile-inline;
padding-block: 1rem;

@media (min-width: $tablet-breakpoint) {
padding-inline: $main-padding-desktop-inline;
}
padding-top: 1rem;

span {
display: flex;
Expand Down
61 changes: 31 additions & 30 deletions src/app/components/Testimonial/Testimonial.scss
Original file line number Diff line number Diff line change
@@ -1,21 +1,9 @@
.testimonials {
margin-top: 1rem;
width: 100%;
overflow: hidden;

[class^='number-slide'],
[class*=' number-slide'] {
background: grey;
display: flex;
flex-wrap: wrap;
align-items: center;
justify-content: center;
font-size: 50px;
color: #fff;
font-weight: 500;
height: 300px;
max-height: 100vh;
}
overflow-y: hidden;
display: flex;
flex-direction: column;

h3 {
@media (max-width: $tablet-breakpoint) {
Expand All @@ -31,48 +19,61 @@
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
width: 33.33%;
width: 33%;
height: 100%;
background-color: yellow;
background-color: $secondary-yellow;
z-index: 1;
}

.slider-wrapper {
position: relative;
width: 100%;
border: 1px solid gray;
border: 1px solid #bababa;
overflow-y: hidden;
height: 100%;
overflow-y: hidden;

ul {
padding-left: 0;
list-style-type: none;
position: relative;
z-index: 2;

&::before {
height: 100%;
max-height: 100%;
min-height: 100%;

&::before,
&::after {
content: '';
display: block;
width: 50px;
width: 100px;
height: 100%;
background-color: white;
background: linear-gradient(to right, white, transparent);
position: absolute;
left: 0;
z-index: 3;
}

&::before {
left: 0;
background: linear-gradient(to right, white, transparent);
}

&::after {
content: '';
display: block;
width: 50px;
height: 100%;
background-color: white;
background: linear-gradient(to left, white, transparent);
position: absolute;
right: 0;
z-index: 3;
background: linear-gradient(to left, white, transparent);
}

li {
padding: 20px;
display: flex;
flex-direction: column;
justify-content: space-between;
height: 100%;
min-height: 100%;
// overflow-y: scroll !important;
max-height: 100%;

.reviewer {
text-align: right;
}
Expand Down
4 changes: 2 additions & 2 deletions src/app/components/Testimonial/Testimonial.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ export default function Testimonial() {
setLoaded(true);
},
slides: {
perView: 3,
spacing: 33.333
// perView: 'auto'
perView: 3
}
});

Expand Down
12 changes: 11 additions & 1 deletion src/app/pages/Apply/Apply.scss
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
#apply {
position: relative;
width: 100%;
overflow-x: hidden;
overflow-y: hidden;
display: flex;
flex-direction: column;

h2 {
margin-bottom: 0.75rem;
Expand Down Expand Up @@ -40,6 +42,14 @@
}
}

.bottom-section {
height: 100%;
overflow-y: hidden;
display: flex;
flex-direction: column;
justify-content: space-between;
}

@media (max-width: $tablet-breakpoint) {
button {
display: none;
Expand Down
32 changes: 18 additions & 14 deletions src/app/pages/Apply/Apply.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,20 +9,24 @@ import Testimonial from '@/components/Testimonial/Testimonial';
export default function Apply() {
return (
<section id="apply">
<p className="breadcrumb">.05 / Apply</p>
<h2>Why Apply?</h2>
<hr className="line"></hr>
<ul className="grid">
{applyInfo.map(item => (
<li key={item.id}>
<h3>{item.header}</h3>
<p>{item.content}</p>
</li>
))}
</ul>
<hr className="line"></hr>
<Testimonial />
<Footer />
<div className="top-section">
<p className="breadcrumb">.05 / Apply</p>
<h2>Why Apply?</h2>
<hr className="line"></hr>
<ul className="grid">
{applyInfo.map(item => (
<li key={item.id}>
<h3>{item.header}</h3>
<p>{item.content}</p>
</li>
))}
</ul>
<hr className="line"></hr>
</div>
<div className="bottom-section">
<Testimonial />
<Footer />
</div>
</section>
);
}

0 comments on commit 2d9c2f7

Please sign in to comment.