Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
7santosh committed Apr 7, 2024
1 parent c9aeb9a commit 395b414
Show file tree
Hide file tree
Showing 5 changed files with 422 additions and 161 deletions.
102 changes: 88 additions & 14 deletions assets/css/santosh-magar.css
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,12 @@ li {
list-style: none;
}

img,
video {
max-width: 100%;
height: auto;
}

.header-combine {
display: flex;
padding: 10px 0;
Expand Down Expand Up @@ -272,7 +278,7 @@ a {

/* ---------------- section :: about content - ----------------*/
#about {
background-color: #B4C1D0;
background-color: #f3f9ed;
}

div.about-head:nth-child(2) {
Expand Down Expand Up @@ -569,7 +575,7 @@ div.about-head:nth-child(2) {
font-weight: bold;
font-family: 'Playfair Display', serif;
line-height: 1.2;
color: #3298DB;
color: #2f2f2f;
}

#portfolio .details h5 {
Expand All @@ -580,42 +586,51 @@ div.about-head:nth-child(2) {

.portfolio-list {
display: flex;
justify-content: space-between;
flex-direction: row;
flex-wrap: wrap;
gap: 30px;
gap: 24px;
margin-top: 24px;
margin-bottom: 24px;
}

.portfolio-item {
display: flex;
justify-content: space-between;
flex-wrap: wrap;
flex-direction: column;
flex: 0 0 22%;
flex: 0 1 calc(25% - 24px);
background-color: white;
border-radius: 7px;
overflow: hidden;
box-shadow: 0 0 6px 6px rgb(171 171 171 / 15%);
}
.portfolio-item:hover{

.portfolio-item:hover {
box-shadow: 0 0 12px 12px rgb(72 72 72 / 15%);
}

.portfolio-item-thumb {
height: 130px;
cursor: pointer;
position: relative;
height: 160px;
overflow: hidden;
}

.portfolio-item-thumb img {
height: 100%;
width: 100%;
object-fit: cover;
object-position: center;
}
.overlay{
position: absolute;

.overlay {
position: absolute;
background: rgba(0, 0, 0, 0.5);
width: 100%;
height: 100%;
width: 100%;
height: 100%;
}

.portfolio-thumb-overlay {
position: absolute;
bottom: 0;
Expand All @@ -640,7 +655,7 @@ div.about-head:nth-child(2) {
}

.portfolio-item-title {
margin: auto;
margin: 0 auto;
padding: 16px 0;
}

Expand All @@ -651,7 +666,66 @@ div.about-head:nth-child(2) {
padding: 20px 0;
}

.portfolio-item-detail {
position: fixed;
background: rgba(0, 0, 0, 0.5);
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: 99;
}

.portfolio-item-detail .container {
max-width: 750px;
overflow: hidden;
}

.portfolio-item-detail .detail {
background-color: whitesmoke;
display: flex;
justify-content: center;
flex-direction: column;
margin: auto;
margin-top: 100px;
padding: 24px;
}

.portfolio-item-detail .close {
cursor: pointer;
color: white;
opacity: 1;
margin-top: 70px;
}

.portfolio-detail-title a {
text-decoration: none;
font-weight: 600;
font-size: 18px;
color: #303030;
}

.portfolio-detail-content {
margin-top: 12px;
}

@media screen and (max-width: 990px) {
.portfolio-item {
flex: 0 1 calc(33% - 24px);
}
}

@media screen and (max-width: 765px) {
.portfolio-item {
flex: 0 1 calc(50% - 24px);
}
}

@media screen and (max-width: 500px) {
.portfolio-item {
flex: 0 1 calc(100% - 24px);
}
}


/*---------------- section :: contact content ----------------------- */
Expand Down Expand Up @@ -760,15 +834,15 @@ div.about-head:nth-child(2) {
font-size: 20px;
}

.info_hide {
.hide {
display: none;
}

.email_addr>.ri-error-warning-line:hover+.info_hide {
.email_addr>.ri-error-warning-line:hover+.hide {
display: block;
}

.phone_addr>.ri-error-warning-line:hover+.info_hide {
.phone_addr>.ri-error-warning-line:hover+.hide {
display: block;
}

Expand Down
Binary file added assets/images/portfolio/osc.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
22 changes: 21 additions & 1 deletion assets/js/santosh-magar-js.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,4 +97,24 @@ $(document).ready(function () {

});

// -------------------------------------------------------------------------------------------------------------------------
// ---------------------- portfolio section -------------------------------------------
$('.portfolio-item').on('click', function (e) {
e.stopPropagation();
var detail = $(this).find('.portfolio-item-detail');
if (detail.length) {
detail.toggleClass("hide")
if ($(this).find('.portfolio-item-detail').hasClass("hide")) {
$("body").css('overflow', "");
} else {
$("body").css('overflow', "hidden");
}
} else {
var href = $(this).find('a').attr("href");
window.open(href, '_blank');
}
});
$('.portfolio-item-detail .detail').on('click', function (e) {
e.stopPropagation();
})
// -------------------------------------------------------------------------------------

Loading

0 comments on commit 395b414

Please sign in to comment.