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

New Homepage #7

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
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
174 changes: 174 additions & 0 deletions home.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,174 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>GPA calculator</title>
<link
rel="stylesheet"
href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css"
integrity="sha384-JcKb8q3iqJ61gNV9KGb8thSsNjpSL0n8PARn9HuZOnIxN0hoP+VmmDGMN5t9UJ0Z"
crossorigin="anonymous"
/>
<style>
.hide {
display: none;
}
.modal-body {
display: flex;
flex-direction: column;
}
</style>
</head>
<body class="bg-secondary">
<nav class="navbar navbar-light bg-light">
<a class="navbar-brand">GPA Calculator</a>
<div class="my-2 my-sm-0">
<button
onclick="location.href = 'index.html';"
id="myButton"
class="btn btn-outline-success"
>
Calculator
</button>
<button
class="btn btn-outline-info"
data-toggle="modal"
data-target="#About"
>
About
</button>
</div>
</nav>
<div class="modal-body">
<style>
p {
text-align:center;
color: white;
}
h1 {
text-align: center;
color: white;
font-size: 50px;
padding-top: 40px;
}
h3 {
text-align: center;
color: white;
font-size: 35px;
padding-top: 40px;
}
h4 {
text-align: center;
color: white;
font-size: 45px;
padding-top: 40px;
}
</style>
<h1>Welcome - GPA Calculator</h1>

<h3>Made for Sathyabama Students</h3>
<br>
<h4>How to Use:</h4>
<br>
<p>If Total Marks for given subject is 100, Enter the Obtained Marks

<br>If Total Marks for given subject is 50, Follow below steps

<br>If Obtained Marks are 42 out of 50(Total Mark)

<br>Then multiply both Obtained Marks and Total marks with 2

<br>To get 84 out of 100
<br>Then enter 84 in the "Obtained Marks" Field

</p>
</div>
</div>
</div>
</div>
<br>

<div class="container">
<div class="center">
<button
onclick="location.href = 'index.html';"
id="myButton"
class="button btn-outline-success"
>
Go to Calculator
</button>
</div>
</div>
<style>


.center {
display: flex;
justify-content: center;
font-size: 25px;

}
</style>
<div
class="modal fade"
id="About"
tabindex="-1"
aria-labelledby="AboutModal"
aria-hidden="true"
>
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="About">About</h5>
<button
type="button"
class="close"
data-dismiss="modal"
aria-label="Close"
>
<span aria-hidden="true">&times;</span>
</button>
</div>
<div class="modal-body">
<a
class="link"
href="https://www.linkedin.com/in/sandeep-v-4b01551a4/"
target="_blank"
>LinkedIn</a
>
<a
class="link"
href="https://github.com/sandeep-v1404"
target="_blank"
>GitHub</a
>
<a
class="link"
href="https://www.instagram.com/sandy._.the_ace/"
target="_blank"
>Instagram</a
>
<p>© 2020 Sandeep V @coding.tech</p>
</div>
</div>
</div>
</div>
</body>
<script src="main.js"></script>
<script
src="https://code.jquery.com/jquery-3.5.1.slim.min.js"
integrity="sha384-DfXdz2htPH0lsSSs5nCTpuj/zy4C+OGpamoFVy38MVBnE+IbbVYUew+OrCXaRkfj"
crossorigin="anonymous"
></script>
<script
src="https://cdn.jsdelivr.net/npm/[email protected]/dist/umd/popper.min.js"
integrity="sha384-9/reFTGAW83EW2RDu2S0VKaIzap3H66lZH81PoYlFhbGU+6BZp6G7niu735Sk7lN"
crossorigin="anonymous"
></script>
<script
src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js"
integrity="sha384-B4gt1jrGC7Jh4AgTPSdUtOBvfO8shuf57BaghqFfPlYxofvL8/KUEfYiJOMMV+rV"
crossorigin="anonymous"
></script>
</html>
7 changes: 7 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,13 @@
<nav class="navbar navbar-light bg-light">
<a class="navbar-brand">GPA Calculator</a>
<div class="my-2 my-sm-0">
<button
onclick="location.href = 'home.html';"
class="btn btn-outline-success"
data-toggle="modal"
>
Home
</button>
<button
class="btn btn-outline-success"
data-toggle="modal"
Expand Down