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 modified README.md
Binary file not shown.
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 submissions/VivanGarg/portfolio/images/mypic4.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.
90 changes: 90 additions & 0 deletions submissions/VivanGarg/portfolio/portfolio.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
.wholebody{
display: flex;
justify-content: space-evenly;
}

.divleft{
padding-right: 1.5rem;
padding-left: 2rem;
padding-top: 2rem;
}

a:hover {
color: #ffb703;
}

.rightbody{
font-family: 'Poppins', sans-serif;
padding-top:1.5rem;
padding-left: 6rem;
padding-right: 6rem;
text-align: center;
margin-right: 3rem;
margin-left: 1.5rem;
}

.about{
font-size: 1.3rem;
text-align: center
}

h1{
font-size: 2.5rem;
}

.links{
color:aliceblue;
}

.Education{
font-size: 1.4rem;
text-align: left;
display: flex;
justify-content: space-between;
padding-left: 9rem;
}

.res{
position:relative;
top: -1rem;
}

.res1{
position: relative;
top: -2.75rem;
}

.res2{
position: relative;
top: 0.5rem;
}

.border{
box-shadow: 0 0 1rem rgb(255, 255, 255);
border-radius: 0.5rem;
}

#theme-buttons {
position: fixed;
top: 1rem;
left: 1rem;
display: flex;
gap: 0.5rem;
z-index: 1000;
}

.theme-btn {
padding: 0.5rem 1rem;
border: none;
border-radius: 0.5rem;
cursor: pointer;
font-weight: 600;
background-color: #333;
color: white;
transition: 0.3s;
}

.theme-btn:hover {
transform: scale(1.1);
background-color: #555;
}
91 changes: 91 additions & 0 deletions submissions/VivanGarg/portfolio/portfolio.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,91 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Vivan Garg's Portfolio</title>
<link rel="stylesheet" href="portfolio.css">
</head>

<body style=" color: white; font-family: Great Vibes , cursive;">
<div id="theme-buttons">
<button class="theme-btn" data-theme="dark">Black</button>
<button class="theme-btn" data-theme="light">Beige</button>
<button class="theme-btn" data-theme="blue">Blue</button>
</div>

<div style=" font-size: 2.5rem; display: flex; justify-content: center; padding-top: 2rem; padding-bottom: 2rem; padding-left: 7rem;">
Vivan Garg
</div>
<hr>

<div class="wholebody">
<div class="divleft">
<div class="border">
<div style="font-size: 1.5rem; padding-top: 4rem; padding-left:2rem; padding-right: 2rem;padding-bottom:4rem;">
<a class="links" href="https://github.com/VivanG">
<img src="images/mypic2.png.webp" alt="GitHub Icon" width=50rem;>
</a>
</div>
<br>
<div style="font-size: 1.5rem; padding-left:2rem; padding-right: 2rem; padding-bottom:4rem;">
<a class="links" href="https://www.linkedin.com/in/vivan-garg-4ba4ab391/">
<img src="images/mypic.png.png" alt="LinkedIn Icon" height=51rem width=50rem; >
</a>
</div>
<br>


<div style="font-size: 1.5rem; padding-left:1.5rem; padding-right: 2rem; padding-bottom:5rem;">
<button id="copy-email-btn" style="background: none; border: none; cursor: pointer;">
<img src="images/mypic3.webp" alt="Email Icon" height="45rem" width="55rem">
</button>

<div id="copy-msg" style="color: #ffbf00; font-size: 1rem; padding-top: 0.5rem; display: none;">
Email copied!
</div>
</div>
</div>
</div>

<div class="rightbody">
<div style="font-size: 1rem; font-weight: 500; padding-top: 1.5rem;">
<h1 style="font-size: 2rem;">About</h1>
</div>
<br>
<div class="about">
I am a first-year student at Thapar Institute of Engineering and Technology.
I am an aspiring web developer currently learning front-end technologies.
I enjoy experimenting with design and code to create simple digital experiences.
</div>
<br>

<div style="font-size: 1rem; font-weight: 500; padding-top: 1.5rem;">
<h1 style="font-size: 2rem;">Education</h1>
</div>
<br>

<div class="Education">
<div style="font-size: 1.5rem; padding-top: 1rem;">
<div style="padding-left: 6rem;">
<img src="images/mypic4.png" alt="School Logo Image" height=80rem width=80rem;>
</div>
<div class="res2">Delhi Public School Noida</div>
</div>

<div>
<div style="font-size: 1.5rem;">
<div style="padding-left: 10.5rem;">
<img class="res" src="images/mypic5.png" alt="College Logo Image" height=150rem width=150rem;>
</div>
</div>
<div class="res1" style="font-size: 1.5rem;">Thapar Institute of Engineering and Technology</div>
</div>
</div>
</div>
</div>

<script src="theme.js"></script>

</body>
</html>
41 changes: 41 additions & 0 deletions submissions/VivanGarg/portfolio/theme.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
document.addEventListener("DOMContentLoaded", () => {
const buttons = document.querySelectorAll(".theme-btn");

console.log("Theme JS loaded:", buttons.length, "buttons found");

buttons.forEach(btn => {
btn.addEventListener("click", () => {
const theme = btn.dataset.theme;
console.log("Clicked theme:", theme);

if (theme === "dark") {
document.documentElement.style.backgroundColor = "black";
document.documentElement.style.color = "#F3F4F6";
}

if (theme === "light") {
document.documentElement.style.backgroundColor = "#BFA98A";
document.documentElement.style.color = "black";
}

if (theme === "blue") {
document.documentElement.style.backgroundColor = "#001F3F";
document.documentElement.style.color = "#F6F6F6";
}
});
});

const copyBtn = document.getElementById("copy-email-btn");
const copyMsg = document.getElementById("copy-msg");

copyBtn.addEventListener("click", () => {
const email = "vivangarg124@gmail.com";

navigator.clipboard.writeText(email).then(() => {
copyMsg.style.display = "block";
setTimeout(() => {
copyMsg.style.display = "none";
}, 1500);
});
});
});
1 change: 1 addition & 0 deletions web-dev-wkshp2025
Submodule web-dev-wkshp2025 added at 3b103e