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

Mithra's Website #9

Open
wants to merge 7 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 5 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
15 changes: 15 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -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}"
}
]
}
176 changes: 176 additions & 0 deletions home.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,176 @@

<!DOCTYPE html>
<html lang = "en-US">
<head>
<link rel="stylesheet" href= "styles.css"/>
<script src="script.js"></script>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css">
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1" />


<title>
mithra's photos
</title>

<div id= "header">
<h1 class="title">
mithra sankar
</h1>
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove spacing between divs.


<div class="nav">
<nav>
<ul>
<li><a href="home.html"> home</a></li>
<li><a href="index.html"> about me</a></li>
</ul>
</nav>
</div>
</div>


</head>
<body>
<div class="homeTitle">
<h1> gallery </h1>
<h2> some of my photos ---</h2>
</div>


<div class="row">
<div class="column">
<img src="images/indiaGate.jpg" onclick="openLightbox();toSlide(1)" class="hover-shadow preview">
<img src="images/reflection.jpg" onclick="openLightbox();toSlide(5)" class="hover-shadow preview" >
<img src="images/prayag.jpg" onclick="openLightbox();toSlide(9)" class="hover-shadow preview">
<img src="images/rocksOnRocks.jpg" onclick="openLightbox();toSlide(13)" class="hover-shadow preview">
<img src="images/insideTrain.jpg" onclick="openLightbox();toSlide(17)" class="hover-shadow preview">
<img src="images/soloTree.jpg" onclick="openLightbox();toSlide(21)" class="hover-shadow preview">
<img src="images/anotherSeason.jpg" onclick="openLightbox();toSlide(25)" class="hover-shadow preview">
</div>
<div class="column">
<img src="images/blueberries.jpg" onclick="openLightbox();toSlide(2)" class="hover-shadow preview">
<img src="images/myWorld.jpg" onclick="openLightbox();toSlide(6)" class="hover-shadow preview">
<img src="images/greyscaleMahal.jpg" onclick="openLightbox();toSlide(10)" class="hover-shadow preview">
<img src="images/islandsFar.jpg" onclick="openLightbox();toSlide(14)" class="hover-shadow preview">
<img src="images/reservoir.jpg" onclick="openLightbox();toSlide(18)" class="hover-shadow preview">
<img src="images/theGates.jpg" onclick="openLightbox();toSlide(22)" class="hover-shadow preview">
<img src="images/firework.JPG" onclick="openLightbox();toSlide(26)" class="hover-shadow preview">

</div>
<div class="column">
<img src="images/nyc.jpg" onclick="openLightbox();toSlide(3)" class="hover-shadow preview">
<img src="images/viewFromAfar.jpg" onclick="openLightbox();toSlide(7)" class="hover-shadow preview">
<img src="images/philly.jpg" onclick="openLightbox();toSlide(11)" class="hover-shadow preview">
<img src="images/hawaMahal.jpg" onclick="openLightbox();toSlide(15)" class="hover-shadow preview">
<img src="images/phoneEatsFirst.jpg" onclick="openLightbox();toSlide(19)" class="hover-shadow preview">
<img src="images/girl'sSunset.jpg" onclick="openLightbox();toSlide(23)" class="hover-shadow preview">
<img src="images/delcastle.JPG" onclick="openLightbox();toSlide(27)" class="hover-shadow preview">
<img src="images/islands.jpg" onclick="openLightbox();toSlide(29)" class="hover-shadow preview">
</div>
<div class="column">
<img src="images/tajDistance.JPG" onclick="openLightbox();toSlide(4)" class="hover-shadow preview">
<img src="images/innocence.jpg" onclick="openLightbox();toSlide(8)" class="hover-shadow preview">
<img src="images/railroad.jpg" onclick="openLightbox();toSlide(12)" class="hover-shadow preview">
<img src="images/threeGirls.jpg" onclick="openLightbox();toSlide(16)" class="hover-shadow preview">
<img src="images/theirWindow.jpg" onclick="openLightbox();toSlide(20)" class="hover-shadow preview">
<img src="images/ourWindow.jpg" onclick="openLightbox();toSlide(24)" class="hover-shadow preview">
<img src="images/contentMan.jpg" onclick="openLightbox();toSlide(28)" class="hover-shadow preview">

</div>
</div>
<div id="Lightbox" class="modal">

<span class="close pointer" onclick="closeLightbox()">&times;</span>
<div class="modal-content">
<div class="slide">
<img src="images/indiaGate.jpg" class="image-slide">
</div>
<div class="slide">
<img src="images/blueberries.jpg" class="image-slide">
</div>
<div class="slide">
<img src="images/nyc.jpg"class="image-slide">
</div>
<div class="slide">
<img src="images/tajDistance.JPG" class="image-slide">
</div>
<div class="slide">
<img src="images/reflection.jpg" class="image-slide">
</div>
<div class="slide">
<img src="images/myWorld.jpg"class="image-slide">
</div>
<div class="slide">
<img src="images/viewFromAfar.jpg"class="image-slide">
</div>
<div class="slide">
<img src="images/innocence.jpg"class="image-slide">
</div>
<div class="slide">
<img src="images/prayag.jpg"class="image-slide">
</div>
<div class="slide">
<img src="images/greyscaleMahal.jpg" class="image-slide">
</div>
<div class="slide">
<img src="images/philly.jpg"class="image-slide">
</div>
<div class="slide">
<img src="images/railroad.jpg"class="image-slide">
</div>
<div class="slide">
<img src="images/rocksOnRocks.jpg" class="image-slide">
</div>
<div class="slide">
<img src="images/islandsFar.jpg" class="image-slide">
</div>
<div class="slide">
<img src="images/hawaMahal.jpg"class="image-slide">
</div>
<div class="slide">
<img src="images/threeGirls.jpg" class="image-slide">
</div>
<div class="slide">
<img src="images/insideTrain.jpg"class="image-slide">
</div>
<div class="slide">
<img src="images/reservoir.jpg"class="image-slide">
</div>
<div class="slide">
<img src="images/phoneEatsFirst.jpg"class="image-slide">
</div>
<div class="slide">
<img src="images/theirWindow.jpg" class="image-slide">
</div>
<div class="slide">
<img src="images/soloTree.jpg"class="image-slide">
</div>
<div class="slide">
<img src="images/theGates.jpg"class="image-slide">
</div>
<div class="slide">
<img src="images/girl'sSunset.jpg"class="image-slide">
</div>
<div class="slide">
<img src="images/ourWindow.jpg" class="image-slide">
</div>
<div class="slide">
<img src="images/anotherSeason.jpg"class="image-slide">
</div>
<div class="slide">
<img src="images/firework.JPG"class="image-slide">
</div>
<div class="slide">
<img src="images/delcastle.JPG"class="image-slide">
</div>
<div class="slide">
<img src="images/contentMan.jpg"class="image-slide">
</div>
<div class="slide">
<img src="images/islands.jpg" class="image-slide">
</div>

</div>
</div>
</div>
Binary file added images/acadiaCliff.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/anotherSeason.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/blueberries.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/contentMan.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/delcastle.JPG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/firework.JPG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/girl'sSunset.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/girl.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/greyscaleMahal.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/hawaMahal.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/indiaGate.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/innocence.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/insideTrain.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/islands.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/islandsFar.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/mithraprofile.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/myWorld.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/nyc.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/ourWindow.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/philly.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/phoneEatsFirst.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/prayag.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/railroad.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/reflection.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/reservoir.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/rocksOnRocks.jpg
Binary file added images/soloTree.jpg
Binary file added images/tajDistance.JPG
Binary file added images/tajMahal.JPG
Binary file added images/theGates.jpg
Binary file added images/theirWindow.jpg
Binary file added images/threeGirls.jpg
Binary file added images/throughTrees.jpg
Binary file added images/viewFromAfar.jpg
86 changes: 86 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
<html lang = "en-US">

<head>
<link rel="stylesheet" href= "styles.css"/>
<script src="script.js"></script>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css">
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1" />


<title>
mithra sankar
</title>

<div id= "header">
<h1 class="title">
mithra sankar
</h1>

<div class="nav">
<nav>
<ul>
<li><a href="home.html"> home</a></li>
<li><a href="index.html"> about me</a></li>
</ul>
</nav>
</div>
</div>
</head>

<body>

<div class="flexContainer">
<style>
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Move this styling to your styles.css file.

img {
border-radius: 50%;
margin-top: 10px;
margin-bottom: 13px;
display: block;
}
</style>
<div class="picture">
<img
src= images/mithraprofile.jpg width="370px"/>
<div class = contact >
<p>
<a href= "https://www.linkedin.com/in/mithrasankar"> <p>more about me --</p> @mithrasankar </a>
</p>
</div>
</div>


<div class="intro">
<p>
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
</p>
<p>
to learn about me + my experience, refer to "more about me" on the left!
</p>
</div>

<div class="footer">
<form action="#">
<h2>contact me</h2>
<label for="email">
<h3>your email: </h3>
<input type="email" id="email" placeholder="[email protected]" />
</label>
<label for="message">
<h4>your message:</h4>
<textarea id="message" placeholder="enter any questions here... "></textarea>
</label>
<div class="submit-button-wrapper">
<input type="submit" value="Send Message" id="submit-button"/>
</div>
</form>
</div>



</body>

</html>
50 changes: 50 additions & 0 deletions script.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
/*--------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';
}
Loading