Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
HARIESH-SR committed Sep 9, 2023
1 parent b2a95a7 commit 4a0e8de
Show file tree
Hide file tree
Showing 5 changed files with 354 additions and 0 deletions.
Binary file modified README.md
Binary file not shown.
113 changes: 113 additions & 0 deletions cgpa-calculator.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,113 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>CGPA Calculator</title>
<link rel="stylesheet" href="css/cgpa-calculator.css">
</head>
<body>
<div class="container">
<h1>SRM CGPA Calculator</h1>

<div>
<label for="regulation">Select Regulation:</label>
<select id="regulation">
<option value="2018">2018</option>
<option value="2021">2021</option>
</select>
</div>

<div>
<label for="course">Select Course:</label>
<select id="course">
<!-- The course options will be dynamically filled based on the selected regulation -->
</select>
</div>

<div class="semester-input">
<label for="semester1">Semester 1 GPA:</label>
<input type="number" id="semester1" step="0.01" min="0" max="4.0" required>
</div>

<div id="additional-semesters">
<!-- Additional semester inputs will be added here -->
</div>

<button onclick="addSemester()">Add Another Semester</button>
<button onclick="removeSemester()">Remove Last Semester</button>
<button onclick="calculateCGPA()">Calculate CGPA</button>

<div class="result">
<p>Your CGPA: <span id="cgpa">N/A</span></p>
</div>
</div>

<footer>
<div class="footer-content">
<div class="footer-text">
Developed by
<a href="https://www.linkedin.com/in/sai23/" target="_blank">Sai Narayana</a>
and
<a href="https://www.linkedin.com/in/hariesh-s-r/" target="_blank">Hariesh</a>
</div>
</div>
</footer>

<style>
footer {
background-color: #333;
color: #fff;
padding: 10px 0; /* Reduced height by adjusting padding */
position: fixed;
bottom: 0;
width: 100%;
box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
transition: all 0.3s;
}
.footer-content {
display: flex;
align-items: center;
justify-content: space-between;
max-width: 1200px;
margin: 0 auto;
padding: 0 20px;
}
.footer-text {
font-size: 16px;
flex: 1;
text-align: center;
}
.footer-text a {
font-weight: 600;
cursor: pointer;
transition: color 0.3s;
color: #fff;
text-decoration: none; /* Removes underline from links */
}
.footer-text a:hover {
color: #b8b8b8;
}
.social-icons {
display: flex;
align-items: center;
}
.social-icons a {
margin-left: 10px;
font-size: 20px;
color: #fff;
transition: color 0.3s;
}
.social-icons a:hover {
color: #0077b5;
}
footer:hover {
transform: translateY(-10px);
box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.2);
}
</style>


<script src="js/cgpa-calculator.js"></script>
</body>
</html>
106 changes: 106 additions & 0 deletions gpa-calculator.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,106 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Select Details</title>
<link rel="stylesheet" href="css/gpa-calculator.css">
</head>
<style>
body {
background-image: url('images/bg.jpg');
background-repeat: no-repeat;
background-position: center center;
background-size: cover;
background-attachment: fixed;
}

</style>

<body>
<div class="bg"></div>
<div class="container">
<label for="regulation">Select Regulation:</label>
<select id="regulation" onchange="updateCourses()">
<option value="2018">2018</option>
<option value="2021">2021</option>
<!-- Add other regulations if needed -->
</select>

<label for="course">Select Course:</label>
<select id="course" onchange="updateSemesters()"></select>

<label for="semester">Select Semester:</label>
<select id="semester"></select>

<button onclick="goToSubjectsPage()">Next</button>
</div>

<footer>
<div class="footer-content">
<div class="footer-text">
Developed by
<a href="https://www.linkedin.com/in/sai23/" target="_blank">Sai Narayana</a>
and
<a href="https://www.linkedin.com/in/hariesh-s-r/" target="_blank">Hariesh</a>
</div>
</div>
</footer>

<style>
footer {
background-color: #333;
color: #fff;
padding: 10px 0; /* Reduced height by adjusting padding */
position: fixed;
bottom: 0;
width: 100%;
box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
transition: all 0.3s;
}
.footer-content {
display: flex;
align-items: center;
justify-content: space-between;
max-width: 1200px;
margin: 0 auto;
padding: 0 20px;
}
.footer-text {
font-size: 16px;
flex: 1;
text-align: center;
}
.footer-text a {
font-weight: 600;
cursor: pointer;
transition: color 0.3s;
color: #fff;
text-decoration: none; /* Removes underline from links */
}
.footer-text a:hover {
color: #b8b8b8;
}
.social-icons {
display: flex;
align-items: center;
}
.social-icons a {
margin-left: 10px;
font-size: 20px;
color: #fff;
transition: color 0.3s;
}
.social-icons a:hover {
color: #0077b5;
}
footer:hover {
transform: translateY(-10px);
box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.2);
}
</style>


<script src="js/gpa-calculator.js"></script>
</body>
</html>
106 changes: 106 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,106 @@
<html lang="en">

<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>GPA | CGPA Calculator</title>
<link rel="stylesheet" href="css/main.css">
<style>
.background-container {
background-image: url("https://images.unsplash.com/photo-1442606383395-175ee96ed967?q=80&fm=jpg&s=5c8c74be9bc91b47c79a1aaf92264be5");
background-size: cover;
background-repeat: no-repeat;
padding: 20px; /* Add padding to keep content away from edges */
}
</style>
</head>

<body>
<div class="background-container">

<!-- Sidebar Menu -->
<div id="sideMenu" class="sidebar">
<a href="javascript:void(0)" class="closebtn" onclick="closeMenu()">&times;</a>
<a href="index.html">Home</a>
<a href="gpa-calculator.html">GPA Calculator</a>
<a href="cgpa-calculator.html">CGPA Calculator</a>
<a href="about.html">About</a>
<a href="contact.html">Contact</a>
</div>

<!-- Menu Button -->
<span class="menuicon" onclick="openMenu()">&#9776; </span>

<!-- Main Content -->
<div class="container">
<!-- Hero Section -->
<section class="hero">
<div class="hero-content">

</div>
</section>

<!-- Features -->
<section class="features">
<h2>Why Use Our Calculators?</h2>
<div class="feature-box-container">
<div class="feature-box">
<h3>Accurate & Reliable</h3>
<p>We use the official grading criteria of SRM IST to ensure accurate GPA & CGPA results.</p>
</div>
<div class="feature-box">
<h3>Easy to Use</h3>
<p>With an intuitive design, you can calculate your GPA & CGPA in a few easy steps without even knowing the credit details.</p>
</div>
<div class="feature-box">
<h3>Plan Ahead</h3>
<p>Get insights into your academic progress and set goals for your future semesters.</p>
</div>
</div>
</section>

<!-- Call to Action -->
<section class="cta">
<h2>Ready to Start?</h2>
<p>Calculate your GPA or CGPA now and take a step towards academic success!</p>
<div class="links">
<a href="gpa-calculator.html" class="calculate-button">Calculate GPA</a>
<a href="cgpa-calculator.html" class="calculate-button">Calculate CGPA</a>
</div>
</section>

<!-- Testimonials -->
<section class="testimonials">
<h2>What Students Are Saying</h2>
<div class="testimonial">
<p>"This tool has been a game-changer for me. It's so easy to track my progress!"</p>
<cite>- Sivabalan, 3rd Year AI-ML</cite>
</div>
<div class="testimonial">
<p>"I love how simple it is. It has helped me set my academic goals."</p>
<cite>- Guru V, 3rd Year ECE</cite>
</div>
</section>

<!-- Footer -->
<footer>
<p>&copy; 2023 Designed by Sai Narayana & Hariesh</p>
</footer>
</div>

<!-- JavaScript for the sidebar menu -->
<script>
function openMenu() {
document.getElementById("sideMenu").style.width = "250px";
}

function closeMenu() {
document.getElementById("sideMenu").style.width = "0";
}
</script>

</div>

</body>

</html>
29 changes: 29 additions & 0 deletions subjects.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<!DOCTYPE html>
<html lang="en">
<head>
<style>
body {
background-image: url("bg.jpg");
background-color: #cccccc;
background-repeat: no-repeat;
background-attachment: fixed;
background-size: cover;
}
</style>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Select Grades</title>
<link rel="stylesheet" href="css/gpa-calculator.css">
</head>
<body>
<div class="bg"></div>
<div class="container" id="subjectsContainer">
<!-- Subjects and grade dropdowns will be dynamically populated here -->
</div>

<button onclick="calculateGPA()">Calculate GPA</button>
<div id="result"></div>

<script src="js/gpa-calculator.js"></script>
</body>
</html>

0 comments on commit 4a0e8de

Please sign in to comment.