diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 0000000..7a9dfa0 --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,15 @@ +{ + // Use IntelliSense to learn about possible attributes. + // Hover to view descriptions of existing attributes. + // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 + "version": "0.2.0", + "configurations": [ + { + "type": "pwa-chrome", + "request": "launch", + "name": "Launch Chrome against localhost", + "url": "http://localhost:8080", + "webRoot": "${workspaceFolder}" + } + ] +} \ No newline at end of file diff --git a/home.html b/home.html new file mode 100644 index 0000000..5a494aa --- /dev/null +++ b/home.html @@ -0,0 +1,283 @@ + + + + + + + + + + + mithra's photos + + + + +
+

gallery

+

some of my photos --- click to enlarge!

+
+ +
+
+ + + + + + + +
+
+ + + + + + + +
+
+ + + + + + + + +
+
+ + + + + + + +
+
+ + + diff --git a/images/acadiaCliff.jpg b/images/acadiaCliff.jpg new file mode 100644 index 0000000..6ba4713 Binary files /dev/null and b/images/acadiaCliff.jpg differ diff --git a/images/anotherSeason.jpg b/images/anotherSeason.jpg new file mode 100644 index 0000000..926ad55 Binary files /dev/null and b/images/anotherSeason.jpg differ diff --git a/images/blueberries.jpg b/images/blueberries.jpg new file mode 100644 index 0000000..a413726 Binary files /dev/null and b/images/blueberries.jpg differ diff --git a/images/contentMan.jpg b/images/contentMan.jpg new file mode 100644 index 0000000..833aeb8 Binary files /dev/null and b/images/contentMan.jpg differ diff --git a/images/delcastle.JPG b/images/delcastle.JPG new file mode 100644 index 0000000..cd7764a Binary files /dev/null and b/images/delcastle.JPG differ diff --git a/images/firework.JPG b/images/firework.JPG new file mode 100644 index 0000000..815b49f Binary files /dev/null and b/images/firework.JPG differ diff --git a/images/girl'sSunset.jpg b/images/girl'sSunset.jpg new file mode 100644 index 0000000..c2e4f87 Binary files /dev/null and b/images/girl'sSunset.jpg differ diff --git a/images/girl.jpeg b/images/girl.jpeg new file mode 100644 index 0000000..ea6848b Binary files /dev/null and b/images/girl.jpeg differ diff --git a/images/greyscaleMahal.jpg b/images/greyscaleMahal.jpg new file mode 100644 index 0000000..d332b20 Binary files /dev/null and b/images/greyscaleMahal.jpg differ diff --git a/images/hawaMahal.jpg b/images/hawaMahal.jpg new file mode 100644 index 0000000..19bfe93 Binary files /dev/null and b/images/hawaMahal.jpg differ diff --git a/images/indiaGate.jpg b/images/indiaGate.jpg new file mode 100644 index 0000000..e19eebd Binary files /dev/null and b/images/indiaGate.jpg differ diff --git a/images/innocence.jpg b/images/innocence.jpg new file mode 100644 index 0000000..b685697 Binary files /dev/null and b/images/innocence.jpg differ diff --git a/images/insideTrain.jpg b/images/insideTrain.jpg new file mode 100644 index 0000000..dfff5d2 Binary files /dev/null and b/images/insideTrain.jpg differ diff --git a/images/islands.jpg b/images/islands.jpg new file mode 100644 index 0000000..2a8920b Binary files /dev/null and b/images/islands.jpg differ diff --git a/images/islandsFar.jpg b/images/islandsFar.jpg new file mode 100644 index 0000000..a8ada58 Binary files /dev/null and b/images/islandsFar.jpg differ diff --git a/images/linkedin-white-icon-4.jpg.png b/images/linkedin-white-icon-4.jpg.png new file mode 100644 index 0000000..22893ee Binary files /dev/null and b/images/linkedin-white-icon-4.jpg.png differ diff --git a/images/mithraprofile.jpg b/images/mithraprofile.jpg new file mode 100644 index 0000000..02b298d Binary files /dev/null and b/images/mithraprofile.jpg differ diff --git a/images/myWorld.jpg b/images/myWorld.jpg new file mode 100644 index 0000000..d605360 Binary files /dev/null and b/images/myWorld.jpg differ diff --git a/images/nyc.jpg b/images/nyc.jpg new file mode 100644 index 0000000..df27568 Binary files /dev/null and b/images/nyc.jpg differ diff --git a/images/ourWindow.jpg b/images/ourWindow.jpg new file mode 100644 index 0000000..4d31e53 Binary files /dev/null and b/images/ourWindow.jpg differ diff --git a/images/philly.jpg b/images/philly.jpg new file mode 100644 index 0000000..ef1a7c1 Binary files /dev/null and b/images/philly.jpg differ diff --git a/images/phoneEatsFirst.jpg b/images/phoneEatsFirst.jpg new file mode 100644 index 0000000..0db89f3 Binary files /dev/null and b/images/phoneEatsFirst.jpg differ diff --git a/images/prayag.jpg b/images/prayag.jpg new file mode 100644 index 0000000..9289f1a Binary files /dev/null and b/images/prayag.jpg differ diff --git a/images/railroad.jpg b/images/railroad.jpg new file mode 100644 index 0000000..87d05bf Binary files /dev/null and b/images/railroad.jpg differ diff --git a/images/reflection.jpg b/images/reflection.jpg new file mode 100644 index 0000000..2ddce3e Binary files /dev/null and b/images/reflection.jpg differ diff --git a/images/reservoir.jpg b/images/reservoir.jpg new file mode 100644 index 0000000..71a14ae Binary files /dev/null and b/images/reservoir.jpg differ diff --git a/images/rocksOnRocks.jpg b/images/rocksOnRocks.jpg new file mode 100644 index 0000000..c088854 Binary files /dev/null and b/images/rocksOnRocks.jpg differ diff --git a/images/soloTree.jpg b/images/soloTree.jpg new file mode 100644 index 0000000..978e387 Binary files /dev/null and b/images/soloTree.jpg differ diff --git a/images/tajDistance.JPG b/images/tajDistance.JPG new file mode 100644 index 0000000..217cbac Binary files /dev/null and b/images/tajDistance.JPG differ diff --git a/images/tajMahal.JPG b/images/tajMahal.JPG new file mode 100644 index 0000000..7bde6b1 Binary files /dev/null and b/images/tajMahal.JPG differ diff --git a/images/theGates.jpg b/images/theGates.jpg new file mode 100644 index 0000000..b215879 Binary files /dev/null and b/images/theGates.jpg differ diff --git a/images/theirWindow.jpg b/images/theirWindow.jpg new file mode 100644 index 0000000..02111c0 Binary files /dev/null and b/images/theirWindow.jpg differ diff --git a/images/threeGirls.jpg b/images/threeGirls.jpg new file mode 100644 index 0000000..9f3bdd4 Binary files /dev/null and b/images/threeGirls.jpg differ diff --git a/images/throughTrees.jpg b/images/throughTrees.jpg new file mode 100644 index 0000000..6b9a79f Binary files /dev/null and b/images/throughTrees.jpg differ diff --git a/images/viewFromAfar.jpg b/images/viewFromAfar.jpg new file mode 100644 index 0000000..e6a3412 Binary files /dev/null and b/images/viewFromAfar.jpg differ diff --git a/index.html b/index.html new file mode 100644 index 0000000..b38a2a3 --- /dev/null +++ b/index.html @@ -0,0 +1,81 @@ + + + + + + + + + + + + + mithra sankar + + + + + + +
+ +
+ + +
+ +
+

+ hi! + my name is mithra sankar and I am an incoming honors computer science major at the university of delaware. + I enjoy documenting my life and capturing moments and experiences through images. though +

+

+ to learn about me + my experience, refer to "more about me" on the left! +

+
+ + + + \ No newline at end of file diff --git a/script.js b/script.js new file mode 100644 index 0000000..38dc220 --- /dev/null +++ b/script.js @@ -0,0 +1,52 @@ +/*--------contact*/ + +let submitButton = document.querySelector("#submit-button"); + +function clickListener(event) { + event.preventDefault(); + + let emailInput = document.querySelector("#email"); + let messageInput = document.querySelector("#message"); + + let emailText = emailInput.value; + let messageText = messageInput.value; + + console.log("email: ", emailText, "message: ", messageText); +} + +submitButton.addEventListener("click", clickListener); + +/*--------lightbox*/ + +var slideIndex = 1; +showSlide(slideIndex); + +function openLightbox() { + document.getElementById("Lightbox").style.display = "block"; +} + +function closeLightbox() { + document.getElementById("Lightbox").style.display = "none"; +} + +function toSlide(n) { + showSlide((slideIndex = n)); +} + +function showSlide(n) { + const slides = document.getElementsByClassName("slide"); + let modalPreviews = document.getElementsByClassName("modal-preview"); + + for (let i = 0; i < slides.length; i++) { + slides[i].style.display = "none"; + } + for (let i = 0; i < modalPreviews.length; i++) { + modalPreviews[i].className = modalPreviews[i].className.replace( + " active", + "" + ); + } + + slides[slideIndex - 1].style.display = "block"; + modalPreviews[slideIndex - 1].className += " active"; +} diff --git a/styles.css b/styles.css new file mode 100644 index 0000000..5062f83 --- /dev/null +++ b/styles.css @@ -0,0 +1,260 @@ +* { + font-family: "Calluna", serif; + margin: 0px; + padding: 0px; + color: #881c1c; + text-decoration: none; +} + +a { + -webkit-transition: 0.5s linear all; + transition: 0.5s linear all; +} + +.nav { + font-weight: bold; + float: right; + position: relative; + margin-top: 6px; +} + +.nav a { + color: #efac7c; + font-size: 22px; + text-decoration: none; + line-height: 30px; + text-align: center; + margin-right: 10px; +} + +#header { + background-color: #681515; + overflow: hidden; + font-weight: bold; + padding-top: 1px; + padding: 20px 10px; + display: flex; + justify-content: space-between; +} + +/* index.html */ + +.picture img { + border-radius: 50%; + margin-top: 10px; + margin-bottom: 13px; + display: block; +} + +.intro { + margin-top: 40px; + font-size: 27px; + z-index: 0; + padding: 5%; + margin: 10%; +} +.intro p { + font-weight: medium; +} + +.title { + font-weight: bold; + font-size: 30px; + margin-left: 14px; + color: #efac7c; +} + +li { + display: inline-block; +} + +li a:hover { + background-color: #efac7c; + color: #881c1c; +} + +body { + background-color: #efac7c; + color: #681515; +} + +.flexContainer { + display: flex; + text-align: justify; + margin-left: 14px; +} + +.contact a { + color: #681515; + font-size: 24px; + float: left; + text-decoration: none; + margin-left: 14px; + font-weight: 510; +} + +#footer { + background-color: #681515; + padding-top: 1px; + padding: 10px 10px; + overflow: hidden; + font-size: 16px; + display: flex; + bottom: 0; + position: fixed; + margin-left: 14px; + display: flex; + justify-content: space-between; +} + +#footer h2, +h3, +h4 { + color: #efac7c; +} + +#submit-button { + background-color: #681515; + font-family: "Calluna", serif; + margin: 0px; + padding: 0px; + color: #efac7c; + font-weight: bold; + font-size: 14px; + border: none; + outline: none; +} + +td { + padding: 10px; +} + +/* home.html */ + +.row { + display: flex; + flex-wrap: wrap; + padding: 0, 2px; + margin-top: 4px; +} + +/* four equal columns */ +.column { + flex: 25%; + max-width: 25%; + padding: 0, 2px; +} + +.column img { + margin-top: 1px; + vertical-align: middle; + width: 100%; +} + +/* two column-layout instead of four columns */ +@media screen and (max-width: 800px) { + .column { + flex: 50%; + max-width: 50%; + } +} + +/* stack */ +@media screen and (max-width: 600px) { + .column { + flex: 100%; + max-width: 100%; + } +} + +.homeTitle { + text-align: center; + font-size: 30px; + font-weight: bold; + margin-top: 8px; +} + +.homeTitle h2 { + font-size: 18px; + font-weight: 500; +} + +/* lightbox */ + +html { + box-sizing: border-box; +} + +*, +*:before, +*:after { + box-sizing: inherit; +} + +.preview { + width: 100%; +} + +.modal { + display: none; + position: fixed; + z-index: 1; + padding: 10px 62px 0px 62px; + left: 0; + top: 0; + width: 100%; + height: 100%; + overflow: auto; + background-color: black; +} + +.modal-content { + position: relative; + display: flex; + justify-content: center; + margin: auto; + padding: 0 0 0 0; + width: 85%; +} + +.slide { + display: none; +} + +.image-slide { + width: 100%; +} + +.modal-preview { + width: 100%; +} + +img.preview { + opacity: 0.82; +} + +img.active, +.preview:hover, +.modal-preview:hover { + opacity: 1; +} + +img.hover-shadow { + transition: 0.3s; +} + +.close { + color: white; + position: absolute; + top: 10px; + right: 25px; + font-size: 35px; + font-weight: bold; +} + +.close:hover, +.close:focus { + color: #999; + text-decoration: none; + cursor: pointer; +}