Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Styled home page feedback section #218

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 9 additions & 5 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,9 @@ <h1>What Our Students Says</h1>

<div class="row">
<div class="testimonials-col car">
<img src="./eduford_img/user1.jpg" alt="">
<div class="testimonials-col-img">
<img src="./eduford_img/user1.jpg" alt="">
</div>
<div>
<p>“Eduford is home to me not because of the fancy buildings like Healy Hall, or its prestigious
reputation, but rather because of the university’s care for the whole person as each of us
Expand All @@ -167,15 +169,17 @@ <h3>Christine Berkley</h3>
</div>

<div class="testimonials-col car">
<img src="./eduford_img/user2.jpg" alt="">
<div class="testimonials-col-img">
<img src="./eduford_img/user2.jpg" alt="">
</div>
<div>
<p>
“It’s likely that you will come to love some of the most amazing souls this campus has to offer.
That love may come in the form of friendships that you know will last forever.”</p>
<h3>David Byer</h3>
<i class="fa-solid fa-star"></i>
<i class="fa-solid fa-star"></i>
<i class="fa-solid fa-star"></i>
<i class="fa fa-star"></i>
<i class="fa fa-star"></i>
<i class="fa fa-star"></i>
<i class="fa fa-star"></i>
<i class="fa fa-star-half-o"></i>
</div>
Expand Down
61 changes: 48 additions & 13 deletions style.css
Original file line number Diff line number Diff line change
Expand Up @@ -185,8 +185,6 @@ p {
.row {
margin-top: 10%;
margin-bottom: 10%;
justify-content: space-between;

display: flex;
justify-content: space-between;
}
Expand Down Expand Up @@ -355,7 +353,7 @@ h3 {
color: #fff3f3;
}

/* testimonials */
/* Testimonials */
.testimonials {
width: 80%;
margin: auto;
Expand All @@ -364,29 +362,51 @@ h3 {
}

.testimonials-col {
text-align: left;
flex-basis: 44%;
border-radius: 10px;
margin-bottom: 5%;
text-align: left;
margin: 5% 2.5%;
background: #fff3f3;
padding: 25px;
cursor: pointer;
display: flex;
box-sizing: border-box;
width: 40%;
display: flex;
flex-direction: column;
align-items: center;
}

.testimonials-col-img {
border-radius: 10px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
width: 100%;
height: 60vh;
margin-bottom: 15px;
}

.testimonials-col-img img {
width: 100%;
height: 100%;
object-fit: cover;
}

.testimonials-col-img img:hover {
transform: scale(1.1);
box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.testimonials-col img {
width: 80px; /* Set a specific width for the images */
height: 80px; /* Set a specific height for the images */
border-radius: 50%; /* Make images circular */
margin-right: 20px; /* Space between image and text */
object-fit: cover; /* Ensure the image covers the element */
width: 80px;
height: 80px;
border-radius: 50%;
margin-right: 20px;
object-fit: cover;
}

.testimonials-col p {
.testimonials p {
padding: 0;
margin: 0; /* Add margin to avoid overflow */
text-align: start;
}

.testimonials-col h3 {
Expand All @@ -403,6 +423,20 @@ h3 {
}

@media (max-width: 700px) {
.testimonials .row {
flex-direction: column;
align-items: center;
}

.testimonials-col {
width: 100%;
margin: 5% 0;
}

.testimonials-col-img {
height: auto;
}

.testimonials-col {
flex-direction: column;
align-items: flex-start;
Expand All @@ -414,6 +448,7 @@ h3 {
}



/* call to action */
.cta {
margin: 100px auto;
Expand Down