diff --git a/assets/1.jpg b/assets/1.jpg new file mode 100644 index 0000000..73b1d63 Binary files /dev/null and b/assets/1.jpg differ diff --git a/assets/ganesh.png b/assets/ganesh.png new file mode 100644 index 0000000..a9aa0a8 Binary files /dev/null and b/assets/ganesh.png differ diff --git a/assets/rose-background.jpg b/assets/rose-background.jpg new file mode 100644 index 0000000..35fcf2b Binary files /dev/null and b/assets/rose-background.jpg differ diff --git a/harshBio.html b/harshBio.html new file mode 100644 index 0000000..a2330e5 --- /dev/null +++ b/harshBio.html @@ -0,0 +1,59 @@ + + + + + + + Marriage Biodata + + + + + +
+ Header Image +
+
+
+
+
Biodata
+ Profile Picture +
+

Harsh Patel

+
Software Engineer
+
+
+
+
My Details
+
+
+
+
Images
+
+
+
+
+
+ + + + + + + + + + + + diff --git a/main.js b/main.js new file mode 100644 index 0000000..184bd5b --- /dev/null +++ b/main.js @@ -0,0 +1,138 @@ +/**This function is used for flip the card */ +document.getElementById('clickToFlap').addEventListener('click', function() { + document.getElementById('flipCard').classList.toggle('flip'); +}); + +//this function is used for making the details html +$(function() { + var detailsWrapper = document.getElementById("detail-list"); // get the details html div + + var myDetailHTML = ''; //variable that hold my details html + + //variable that contains my details + var myData = [ + { + key : "Name", + value : "Harsh Joginbhai Patel", + }, + { + key : "Date of birth", + value : "31/May/1998", + }, + { + key : "Time of birth", + value : "11:15 AM", + }, + { + key : "Place of birth", + value : "Khambhat, Gujarat", + }, + { + key : "Complexion", + value : "Fair", + }, + { + key : "Weight", + value : "68 kg", + }, + { + key : "Height", + value : `5' 8"`, + }, + { + key : "Cast", + value : "Kadva Patel", + }, + { + key : "Sub Cast", + value : "42 Gam Kadva Patel", + }, + { + key : "Education", + value : "IT Engineer", + }, + { + key : "Profession", + value : "Android Developer at Openxcell Technolabs", + }, + { + key : "Father's Name", + value : "Joginbhai Vadilal Patel", + }, + { + key : "His Profession", + value : "Social Worker", + }, + { + key : "Mother's Name", + value : "Urmilaben Joginbhai Patel", + }, + { + key : "Her Profession", + value : "House Maker", + }, + { + key : "Brother", + value : "Meet Patel", + }, + { + key : "His Profession", + value : "Mechanical Engineer", + }, + { + key : "Native", + value : "Kapadwanj", + }, + { + key : "Mosal", + value : "Finav, Khambhat", + }, + { + key : "Address", + value : "1328, Mota Patelwada, beside Swaminarayan Temple, Kapadwanj, Kheda-387620", + }, + { + key : "Food Habbit", + value : "Veg", + } + ] + + for (var i = 0; i < myData.length; i++) { //generating my details html by using loop + myDetailHTML += `
${myData[i].key}
${myData[i].value}
`; + } + + detailsWrapper.innerHTML = myDetailHTML //adding the dynamic html as inner HTML of my details div + +}); + +//this function is used for showing my all photos +$(function() { + var imagesWrapper = document.getElementById("all-images"); //this is holding the parent container where my all photo's html will be inserted + + //this is the variable that hold my image name and my all images exist in assets folder + var myImageName = [ + '1.jpg', + '1.jpg', + '1.jpg', + '1.jpg', + '1.jpg', + '1.jpg', + ] + + var myImageHTML = ''; //variable that hold the html of my all photos + + for (var i = 0; i < myImageName.length; i++) {//generating html by of my all photos by using loop + myImageHTML += `
Profile Picture
`; + } + + imagesWrapper.innerHTML = myImageHTML //adding the dynamic html of my all photos as inner HTML of parent div +}); + + +//this function is used for open the image into popup +$(function() { + $('.pop-img').on('click', function() { + $('.imagepreview').attr('src', $(this).attr('src')); + $('#imagemodal').modal('show'); + }); +}); \ No newline at end of file diff --git a/style.css b/style.css new file mode 100644 index 0000000..ba1542f --- /dev/null +++ b/style.css @@ -0,0 +1,141 @@ +body { + /* background-color: #f8f9fa; */ + display: flex; + flex-direction: column; + justify-content: start; + margin-top: 2%; + gap: 5%; + align-items: center; + height: 100vh; + margin: 0; + padding: 0; + font-family: 'Roboto', sans-serif; + + /* background-image:url('./assets/rose-background.jpg'); + background-attachment:fixed; + background-repeat: no-repeat; + background-size: cover; */ + + background: linear-gradient(0deg, #868ee9c9 0%, #ffffff00 100%), no-repeat center / cover; + +} + +.header { + width: 80px; + height: auto; + margin-top: 10px; + position: relative; +} + +.header img { + width: 100%; + height: 100%; + object-fit: cover; + border-radius: 50%; +} + +.card-container { + width: 95%; + max-width: 600px; + height: 75%; + perspective: 1000px; + margin-top: -20px; +} + +.card { + width: 100%; + height: 100%; + border-radius: 20px; + transition: transform 0.6s; + transform-style: preserve-3d; + position: relative; +} + +.card.flip { + transform: rotateY(180deg); +} + +.card-front, +.card-back { + position: absolute; + width: 100%; + height: 100%; + -webkit-backface-visibility: hidden; + backface-visibility: hidden; + border-radius: 20px; + padding: 20px; + box-sizing: border-box; +} + +.card-front { + display: flex; + flex-direction: column; + align-items: center; + justify-content: space-between; + box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); +} + +.card-front img { + border-radius: 20px; + width: 100%; + height: 75%; + object-fit: cover; + cursor: pointer; +} + +.card-front .details { + text-align: center; + padding: 20px 0; +} + +.card-back { + color: #333; + transform: rotateY(180deg); + display: flex; + flex-direction: column; + align-items: flex-start; + justify-content: center; + padding: 20px; + box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); +} + +.card-back-img img { + border-radius: 20px; + width: 100%; + height: 75%; + object-fit: cover; + padding: 10px 0px; + cursor: pointer; +} + +.detail-list { + display: grid; + grid-template-columns: max-content auto; + grid-gap: 8px; +} + +hr{ + border-width: 5px; +} + +.cursor-pointer{ + cursor: pointer; +} + +.buttonFlipCard{ + color: darkslategray; + mask-image: linear-gradient(-75deg, rgba(0, 0, 0, 0.6) 30%, #000 50%, rgba(0, 0, 0, 0.6) 70%); + mask-size: 200%; + animation: shine 2s infinite; +} + +/* Optional: Remove vendor prefixes if browser compatibility is not a major concern */ +@keyframes shine { + from { + mask-position: 150%; + } + + to { + mask-position: -50%; + } +} \ No newline at end of file