Skip to content

Commit

Permalink
improved features
Browse files Browse the repository at this point in the history
  • Loading branch information
AXC-Git committed Jul 31, 2024
1 parent 073568e commit c3cee78
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 6 deletions.
14 changes: 13 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,13 @@
# Portfolio-new
# Portfolio

Welcome to my Portfolio website! This project showcases my skills in web development and design.

## Live Link

Check out the live version of my portfolio [here](https://axc-git.github.io/Portfolio-new/).

## Features

- **Responsive Design**: The website is designed to be responsive and works well on various screen sizes.
- **Dark Mode Toggle**: A dark mode feature is included, allowing users to switch between light and dark themes.
- **Interactive Elements**: The website includes interactive elements such as buttons and icons.
5 changes: 2 additions & 3 deletions index.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<!DOCTYPE html>
<html>

<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
Expand Down Expand Up @@ -31,7 +30,7 @@ <h2><a href="#home">Portfolio</a></h2>
<section id="home">
<div class="left">
<span>Hello</span>
<h3>Web Design</h3>
<h3>World</h3>
<span class="des">Developing And Designing Website.</span>
<button><a href="#skills">View My Skills</a></button>
</div>
Expand Down
20 changes: 20 additions & 0 deletions script.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,24 @@ window.addEventListener('scroll', () => {
}
})

document.addEventListener('DOMContentLoaded', function() {
const toggle = document.querySelector('.switchcircle');
const body = document.body;
const icon = document.querySelector('.switchcircle ion-icon');
let isDarkMode = false;

toggle.addEventListener('click', function() {
if (isDarkMode) {
// Switch to light mode
body.style.backgroundColor = 'white';
body.style.color = 'black';
icon.setAttribute('name', 'moon-outline');
} else {
// Switch to dark mode
body.style.backgroundColor = 'black';
body.style.color = 'white';
icon.setAttribute('name', 'sunny-outline');
}
isDarkMode = !isDarkMode;
});
});
4 changes: 2 additions & 2 deletions style.css
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,11 @@ header {

}

/* header h2 {
/* header h2 {
font-size: 40px;
color: #1f67db;
text-transform: uppercase;
} */
}*/

header h2 a{
font-size: 40px;
Expand Down

0 comments on commit c3cee78

Please sign in to comment.