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

img centerd and previewed #70

Closed
wants to merge 2 commits into from
Closed
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
28 changes: 14 additions & 14 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ <h1>WordWise</h1>
<article class="article">
<div class="card">
<div class="overflow-img">
<a href="#">
<a href="./assets/img1.jpg" target="_blank">
<img src="./assets/img1.jpg" class="img-fluid">


Expand Down Expand Up @@ -132,7 +132,7 @@ <h1>WordWise</h1>
<article class="article">
<div class="card">
<div class="overflow-img">
<a href="#">
<a href="./assets/img2.jpg" target="_blank">
<img src="./assets/img2.jpg" class="img-fluid">


Expand All @@ -159,7 +159,7 @@ <h1>WordWise</h1>
<article class="article">
<div class="card">
<div class="overflow-img">
<a href="#">
<a href="./assets/img3.jpg" target="_blank">
<img src="./assets/img3.jpg" class="img-fluid">


Expand Down Expand Up @@ -187,7 +187,7 @@ <h1>WordWise</h1>
<article class="article">
<div class="card">
<div class="overflow-img">
<a href="#">
<a href="./assets/img4.jpg" target="_blank">
<img src="./assets/img4.jpg" class="img-fluid">


Expand Down Expand Up @@ -215,7 +215,7 @@ <h1>WordWise</h1>
<article class="article">
<div class="card">
<div class="overflow-img">
<a href="#">
<a href="./assets/img5.jpg" target="_blank">
<img src="./assets/img5.jpg" class="img-fluid">


Expand Down Expand Up @@ -245,7 +245,7 @@ <h1>WordWise</h1>

<div class="card">
<div class="overflow-img">
<a href="#">
<a href="./assets/img6.jpg" target="_blank">
<img src="./assets/img6.jpg" class="img-fluid">


Expand Down Expand Up @@ -273,7 +273,7 @@ <h1>WordWise</h1>
<article class="article">
<div class="card">
<div class="overflow-img">
<a href="#">
<a href="./assets/img7.jpg" target="_blank">
<img src="./assets/img7.jpg" class="img-fluid">


Expand Down Expand Up @@ -301,7 +301,7 @@ <h1>WordWise</h1>
<article class="article">
<div class="card">
<div class="overflow-img">
<a href="#">
<a href="./assets/img8.jpg" target="_blank">
<img src="./assets/img8.jpg" class="img-fluid">


Expand Down Expand Up @@ -329,7 +329,7 @@ <h1>WordWise</h1>
<article class="article">
<div class="card">
<div class="overflow-img">
<a href="#">
<a href="./assets/img9.jpg" target="_blank">
<img src="./assets/img9.jpg" class="img-fluid">


Expand Down Expand Up @@ -357,7 +357,7 @@ <h1>WordWise</h1>
<article class="article">
<div class="card">
<div class="overflow-img">
<a href="#">
<a href="./assets/img10.jpg" target="_blank">
<img src="./assets/img10.jpg" class="img-fluid">


Expand Down Expand Up @@ -385,7 +385,7 @@ <h1>WordWise</h1>
<article class="article">
<div class="card">
<div class="overflow-img">
<a href="#">
<a href="./assets/img11.jpg" target="_blank">
<img src="./assets/img11.jpg" class="img-fluid">


Expand Down Expand Up @@ -413,7 +413,7 @@ <h1>WordWise</h1>
<article class="article">
<div class="card">
<div class="overflow-img">
<a href="#">
<a href="./assets/img12.jpg" target="_blank">
<img src="./assets/img12.jpg" class="img-fluid">


Expand Down Expand Up @@ -442,7 +442,7 @@ <h1>WordWise</h1>
<article class="article">
<div class="card">
<div class="overflow-img">
<a href="#">
<a href="./assets/img13.jpg" target="_blank">
<img src="./assets/img13.jpg" class="img-fluid">
</a>
</div>
Expand All @@ -468,7 +468,7 @@ <h1>WordWise</h1>
<article class="article">
<div class="card">
<div class="overflow-img">
<a href="#">
<a href="./assets/img14.jpg" target="_blank">
<img src="./assets/img14.jpg" class="img-fluid">


Expand Down
40 changes: 30 additions & 10 deletions style.css
Original file line number Diff line number Diff line change
Expand Up @@ -360,6 +360,7 @@ a {
.text-title {
font-family: "Nunito Sans", sans-serif;
font-weight: bold;
display: block;
}

.text-title:hover {
Expand Down Expand Up @@ -580,16 +581,35 @@ a {
}
}

.overflow-img {
max-width: 300px;
overflow: hidden;
transition: transform 0.3s ease;
}

.overflow-img img {
width: 100%;
height: auto;
}
/*.collapse{
max-height: 0;
overflow: hidden;
transition: all 0.8s cubic-bezier(0.51,-0.15, 0, 0.98);}*/
.card {
width: 100%;
height: 500px;
background-color: black;
border: 4px solid white;
border-radius: 10px;
overflow: hidden;
display: flex; /* Use flexbox */
flex-direction: column; /* Arrange children in a column */
align-items: center; /* Center horizontally */
justify-content: center; /* Center vertically */
margin-left: auto;
margin-right: auto;
}

.overflow-img {
max-width: 300px;
overflow: hidden;
transition: transform 0.3s ease;
}

.overflow-img img {
width: 100%;
max-height: 420px;
}

.overflow-img:hover {
transform: scale(1.1);
Expand Down
Loading