Skip to content

Commit

Permalink
YagYzPortfolio
Browse files Browse the repository at this point in the history
  • Loading branch information
YagYz committed Jan 23, 2024
0 parents commit a660600
Show file tree
Hide file tree
Showing 5 changed files with 538 additions and 0 deletions.
Binary file added images/header.png
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/ylogogecici.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
129 changes: 129 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,129 @@
<!DOCTYPE html>
<html lang="en">

<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/remixicon/3.5.0/remixicon.min.css">
<link rel="stylesheet" href="style.css">
<title>YagYz Portfolio</title>
</head>

<body>

<nav>
<div class="nav-logo">
<a href="#">
<img src="images/ylogogecici.jpg">
</a>
</div>

<ul class="nav-links">
<li class="link"><a href="#">Home</a></li>
<li id="link1" class="link"><a href="#">Features</a></li>
<li id="link3" class="link"><a href="#">About</a></li>
</ul>
<button class="btn">Hire Me</button>
</nav>

<header class="container">
<div class="content">
<span class="blur"></span>
<span class="blur"></span>
<h4>CREATE YOUR SITE LIKE A PRO</h4>
<H1>Hi, I'm <span>YagYz</span>, Web Developer</H1>
<p>
Lorem ipsum, dolor sit amet consectetur adipisicing elit. Repellendus rem eos aliquid quo rerum
temporibus ipsum distinctio numquam ut omnis placeat, nam sint atque quos dolorem laborum? Rerum, esse
dolorem.
</p>
<button class="btn">Get Started</button>
</div>
<div class="image">
<img src="images/header.png">
</div>
</header>

<section class="container">
<h2 class="header">OUR FEATURES</h2>
<div class="features">
<div class="card">
<span><i class="ri-money-dollar-box-line"></i></span>
<h4>Free Tutorials</h4>
<p>
My tutorials in my channel "AsmrProg" are free and you don't need to pay anything.
</p>
<a href="#">Join Now <i class="ri-arrow-right-line"></i></a>
</div>
<div class="card">
<span><i class="ri-bug-line"></i></span>
<h4>Fix Your Bugs</h4>
<p>
You have any problem in your codes? Tell me, i will help you fix it.
</p>
<a href="#">Join Now <i class="ri-arrow-right-line"></i></a>
</div>
<div class="card">
<span><i class="ri-history-line"></i></span>
<h4>On Time Videos</h4>
<p>
We have video each 4 days, So check channel every 4 days to watch it!
</p>
<a href="#">Join Now <i class="ri-arrow-right-line"></i></a>
</div>
<div class="card">
<span><i class="ri-shake-hands-line"></i></span>
<h4>Cooperation</h4>
<p>
You want we worrk together? Write email to us, we will read it.
</p>
<a href="#">Join Now <i class="ri-arrow-right-line"></i></a>
</div>
</div>
</section>

<footer class="container">
<span class="blur"></span>
<span class="blur"></span>
<div class="column">
<div class="logo">
<img src="images/ylogogecici.jpg">
</div>
<p>
Personel Web And Game Developer.
</p>
<div class="socials">
<a href="#"><i class="ri-youtube-line"></i></a>
<a href="#"><i class="ri-instagram-line"></i></a>
<a href="#"><i class="ri-twitter-line"></i></a>
</div>
</div>
<div class="column">
<h4>Company</h4>
<a href="#">Business</a>
<a href="#">Partnership</a>
<a href="#">Network</a>
</div>
<div class="column">
<h4>About Us</h4>
<a href="#">Blogs</a>
<a href="#">Channels</a>
<a href="#">Sponsors</a>
</div>
<div class="column">
<h4>Contact</h4>
<a href="#">Contact Us</a>
<a href="#">Privicy Policy</a>
<a href="#">Terms & Conditions</a>
</div>
</footer>

<div class="copyright">
Copyright © 2023 YagYz Devolopment. All Rights Reserved.
</div>


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

</html>
26 changes: 26 additions & 0 deletions script.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
function scrollToElement(elementSelector, instance = 0) {
// Select all elements that match the given selector
const elements = document.querySelectorAll(elementSelector);
// Check if there are elements matching the selector and if the requested instance exists
if (elements.length > instance) {
// Scroll to the specified instance of the element
elements[instance].scrollIntoView({ behavior: 'smooth' });
}
}

const link1 = document.getElementById("link1");
const link2 = document.getElementById("link2");
const link3 = document.getElementById("link3");

link1.addEventListener('click', () => {
scrollToElement('.header');
});

link2.addEventListener('click', () => {
// Scroll to the second element with "header" class
scrollToElement('.header', 1);
});

link3.addEventListener('click', () => {
scrollToElement('.column');
});
Loading

0 comments on commit a660600

Please sign in to comment.