-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added gallery to home😁
- Loading branch information
Showing
3 changed files
with
196 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,103 @@ | ||
.galleryHeading { | ||
text-align: center; | ||
margin: 20px auto 10px; | ||
} | ||
|
||
.desc { | ||
max-width: 500px; | ||
margin: 0 auto; | ||
text-align: center; | ||
padding: 20px; | ||
} | ||
|
||
/* Main page */ | ||
|
||
.container { | ||
max-width: 1000px; | ||
margin: 0 auto; | ||
} | ||
|
||
.gallery-folders { | ||
display: grid; | ||
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); | ||
grid-gap: 20px; | ||
margin: 20px; | ||
} | ||
|
||
.gallery-folders:hover .card img { | ||
filter: grayscale(1); | ||
} | ||
|
||
.gallery-folders .card { | ||
background-color: black; | ||
border-radius: 10px; | ||
text-align: center; | ||
overflow: hidden; | ||
border: 2px solid skyblue; | ||
} | ||
|
||
|
||
|
||
.gallery-folders .card img { | ||
width: 100%; | ||
transition: transform .2s ease-out; | ||
} | ||
|
||
.gallery-folders .card:hover img { | ||
filter: none; | ||
transform: scale(1.1); | ||
width: 100%; | ||
} | ||
|
||
.gallery-folders .card .card-content { | ||
padding: 20px; | ||
} | ||
|
||
.row { | ||
display: flex; | ||
flex-wrap: wrap; | ||
padding: 0 2px; | ||
} | ||
|
||
.row:hover .gallery-img{ | ||
filter: grayscale(1); | ||
} | ||
|
||
.column { | ||
flex: 25%; | ||
max-width: 25%; | ||
padding: 0 2px; | ||
} | ||
|
||
.img-wrapper { | ||
margin-top: 4px; | ||
overflow: hidden; | ||
} | ||
|
||
.img-wrapper:hover .gallery-img { | ||
filter: none; | ||
} | ||
|
||
.gallery-img { | ||
vertical-align: middle; | ||
width: 100%; | ||
transition: all .3s ease-out; | ||
} | ||
|
||
.gallery-img:hover { | ||
transform: scale(1.1); | ||
} | ||
|
||
@media screen and (max-width: 800px) { | ||
.column { | ||
flex: 50%; | ||
max-width: 50%; | ||
} | ||
} | ||
|
||
@media screen and (max-width: 600px) { | ||
.column { | ||
flex: 100%; | ||
max-width: 100%; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,91 @@ | ||
import "./Gallery.css" | ||
import React, { Fragment } from 'react' | ||
|
||
export const Gallery = () => { | ||
return ( | ||
<Fragment className=""> | ||
<h2 className="galleryHeading">Gallery</h2> | ||
<div class="row"> | ||
<div class="column"> | ||
<div class="img-wrapper"> | ||
<img src="https://raw.githubusercontent.com/TinkerHubKMCTCE/Karma-KMCT/dev/public/assets/GalleryImages/1.jpg" | ||
alt="" class="gallery-img" /> | ||
</div> | ||
<div class="img-wrapper"> | ||
<img src="https://github.com/TinkerHubKMCTCE/Karma-KMCT/blob/dev/public/assets/GalleryImages/2.jpg?raw=true" | ||
alt="" class="gallery-img" /> | ||
</div> | ||
<div class="img-wrapper"> | ||
<img src="https://github.com/TinkerHubKMCTCE/Karma-KMCT/blob/dev/public/assets/GalleryImages/3.jpg?raw=true" | ||
alt="" class="gallery-img" /> | ||
</div> | ||
<div class="img-wrapper"> | ||
<img src="https://github.com/TinkerHubKMCTCE/Karma-KMCT/blob/dev/public/assets/GalleryImages/4.jpg?raw=true" | ||
alt="" class="gallery-img" /> | ||
</div> | ||
<div class="img-wrapper"> | ||
<img src="https://github.com/TinkerHubKMCTCE/Karma-KMCT/blob/dev/public/assets/GalleryImages/5.jpg?raw=true" | ||
alt="" class="gallery-img" /> | ||
|
||
</div> | ||
</div> | ||
<div class="column"> | ||
<div class="img-wrapper"> | ||
<img src="https://github.com/TinkerHubKMCTCE/Karma-KMCT/blob/dev/public/assets/GalleryImages/6.jpg?raw=true" | ||
alt="" class="gallery-img" /> | ||
</div> | ||
<div class="img-wrapper"> | ||
<img src="https://github.com/TinkerHubKMCTCE/Karma-KMCT/blob/dev/public/assets/GalleryImages/7.jpg?raw=true" | ||
alt="" class="gallery-img" /> | ||
</div> | ||
<div class="img-wrapper"> | ||
<img src="https://github.com/TinkerHubKMCTCE/Karma-KMCT/blob/dev/public/assets/GalleryImages/8.jpg?raw=true" | ||
alt="" class="gallery-img" /> | ||
</div> | ||
<div class="img-wrapper"> | ||
<img src="https://github.com/TinkerHubKMCTCE/Karma-KMCT/blob/dev/public/assets/GalleryImages/9.jpg?raw=true" | ||
alt="" class="gallery-img" /> | ||
|
||
</div> | ||
</div> | ||
<div class="column"> | ||
<div class="img-wrapper"> | ||
<img src="https://github.com/TinkerHubKMCTCE/Karma-KMCT/blob/dev/public/assets/GalleryImages/10.jpg?raw=true" | ||
alt="" class="gallery-img" /> | ||
</div> | ||
<div class="img-wrapper"> | ||
<img src="https://github.com/TinkerHubKMCTCE/Karma-KMCT/blob/dev/public/assets/GalleryImages/11.jpg?raw=true" | ||
alt="" class="gallery-img" /> | ||
</div> | ||
<div class="img-wrapper"> | ||
<img src="https://github.com/TinkerHubKMCTCE/Karma-KMCT/blob/dev/public/assets/GalleryImages/12.jpg?raw=true" | ||
alt="" class="gallery-img" /> | ||
</div> | ||
<div class="img-wrapper"> | ||
<img src="https://github.com/TinkerHubKMCTCE/Karma-KMCT/blob/dev/public/assets/GalleryImages/13.jpg?raw=true" | ||
alt="" class="gallery-img" /> | ||
</div> | ||
</div> | ||
<div class="column"> | ||
<div class="img-wrapper"> | ||
<img src="https://github.com/TinkerHubKMCTCE/Karma-KMCT/blob/dev/public/assets/GalleryImages/15.jpg?raw=true" | ||
alt="" class="gallery-img" /> | ||
</div> | ||
<div class="img-wrapper"> | ||
<img src="https://github.com/TinkerHubKMCTCE/Karma-KMCT/blob/dev/public/assets/GalleryImages/16.jpg?raw=true" | ||
alt="" class="gallery-img" /> | ||
</div> | ||
<div class="img-wrapper"> | ||
<img src="https://github.com/TinkerHubKMCTCE/Karma-KMCT/blob/dev/public/assets/GalleryImages/17.jpg?raw=true" | ||
alt="" class="gallery-img" /> | ||
</div> | ||
<div class="img-wrapper"> | ||
<img src="https://github.com/TinkerHubKMCTCE/Karma-KMCT/blob/dev/public/assets/GalleryImages/15.jpg?raw=true" | ||
alt="" class="gallery-img" /> | ||
|
||
</div> | ||
</div> | ||
</div> | ||
</Fragment> | ||
) | ||
} |