Skip to content
Open
Show file tree
Hide file tree
Changes from all 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
Binary file added images/giphy.gif
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/images.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/img/1zhscdp.gif
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/img/5NGt45P.gif
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/img/5eCMGRB.gif
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/img/RYat7f8.gif
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/img/RwIH4eU.gif
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/img/Va7usju.gif
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/img/bLMIgO9.gif
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/img/background.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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/img/heart.gif
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/img/rXV4LBM.gif
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/img/uyHAEIB.gif
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/img/w4ApPlG.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
47 changes: 45 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
@@ -1,11 +1,54 @@
<!DOCTYPE html>
<html lang="en">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="https://fonts.google.com/specimen/Raleway?selection.family=Raleway">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<link rel="stylesheet" type="text/css" href="style/index.css">

<script src="js/script.js"></script>
<title>Tesla</title>
</head>
<body>

<header>
<div class="home">
<h1>Nicola Tesla</h1>
<nav>
<a href="#home">Home</a>
<a href="about.html">About</a>
<a href="contact.html">Contact</a>
<a href="projects.html">Projects</a>
</nav>
</div>
</header>
<section class="about">
<div class="container-one"></div>
<div class="container-two">
<h2>The Future</h2>
<div class="button">
<button onclick="myFunction()">Click Me</button>
<div id="myDIV">
<p class="myDiv"> Nikola Tesla was a Serbian-American inventor, electrical engineer, mechanical engineer, and futurist who is best known for his contributions to the design of the modern alternating current electricity circuit system.In the era of 1890, Nikola Tesla produced wireless energy and radio frequency communications. He had a plan to electrify the world with his famous Tesla Coil. It was disrupted by powers that were in control of the monetary system and asset holders. Mr. tesla was a humanitarian and believed science should be focused on making positive progression with mankind and the dwelling inhabitants of the planet.</p>
</div>
</div>
</section>
<section class="projects">
<div class="buttons">
<div class="button one"><button onclick="myFunction()">Click Me</button></div>
<div class="button two"><button onclick="myFunction()">Click Me</button></div>
<div class="button three"><button onclick="myFunction()">Click Me</button></div>
<div class="button four"><button onclick="myFunction()">Click Me</button></div>
<div class="button five"><button onclick="myFunction()">Click Me</button></div>
<div class="button six"><button onclick="myFunction()">Click Me</button></div>
<div class="button seven"><button onclick="myFunction()">Click Me</button></div>
<div class="button eight"><button onclick="myFunction()">Click Me</button></div>
</div>
</section>
</body>
</html>
<footer>
<div class="lower-button"><button onclick="playMusic()">Click Me</button>

</div>
</html>
22 changes: 22 additions & 0 deletions js/script.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@

function myFunction() {
let x = document.getElementById("myDIV");
if (x.style.display === "none") {
x.style.display = "block";
} else {
x.style.display = "none";
}
}
//function playMusic() {
//let x = document.getElementById("audio");
//if (x.style.play === "play") {
//x.style.pause = "pause";
//} else {
// x.style.play = "play";
//}
//}
function playMusic() {
let audio = document.getElementById("audio");
audio.play();

}
1 change: 1 addition & 0 deletions new.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
New Text
105 changes: 104 additions & 1 deletion style/index.css
Original file line number Diff line number Diff line change
@@ -1 +1,104 @@
/* Add CSS styling here */
/*CSS Reset*/
*{
box-sizing: border-box;
padding:0;
margin:0;
max-width:100%;
/* border:1px solid grey; */
}
/*General Styles*/
html{
font-size:62.5%;
}

body{
font-size:2rem;
line-height:1.8;
font-family: 'Source Sans Pro', sans-serif;
color:#4d4d4d;
background-color:#a35a5a;
/* background-color: red; */
}
a, button{
font-size:2rem;
font-family: 'Source Sans Pro', sans-serif;
background-color: aqua;
color:#4d4d4d;
}
h1, h2, h3{
font-family: 'Oxygen', sans-serif;
letter-spacing: 3px;
color:#4d4d4d;
/* margin:4% 0; */
text-align:center;
font-size:4.8rem;
}

h1{
color:#4d4d4d;
font-size:6rem;
}
a{
text-decoration:none;
letter-spacing:2px;
}
section{
padding:4% 0;
}
/*Header*/
header {
background-image: url(/images/images.jpg);
background-size:cover;
background-repeat: no-repeat;
}
h1 {
margin: 0 2%;
}
nav a {
color: aqua;
background-color: #4d4d4d;
padding: 5px;
border: none;
margin: 0 2%;
}
nav a:hover {
color: crimson;
background-color: aqua ;
transition:2s;
}
.about {
display: flex;
}
.container-one {
background-image: url(/images/giphy.gif);
background-repeat: no-repeat;
border-radius: 10px;
width:50%;
}
.container-two {
width:50%;
padding: 3%;
}
.container-two .p {
display: flex;
flex-direction: flex-wrap;
}
.projects .buttons {
display: flex;
flex-wrap: wrap;
justify-content: space-evenly;
justify-content: center;
}

.projects .button {
width: 20%;
height: 25vh;
background-image: url(/images/img/5NGt45P.gif);
margin: 1% 1%;
border-radius: 10px;
display: flex;
justify-content: center;
align-items: center;
}