Skip to content

Commit

Permalink
Initial commit with portfolio files
Browse files Browse the repository at this point in the history
  • Loading branch information
Francescko Demaj committed Jul 30, 2024
1 parent 664c929 commit 2ea62d7
Show file tree
Hide file tree
Showing 5 changed files with 48 additions and 0 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
8 changes: 8 additions & 0 deletions script.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
document.querySelectorAll('nav ul li a').forEach(anchor => {
anchor.addEventListener('click', function(e) {
e.preventDefault();
document.querySelector(this.getAttribute('href')).scrollIntoView({
behavior: 'smooth'
});
});
});
40 changes: 40 additions & 0 deletions style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
body {
font-family: Arial, sans-serif;
line-height: 1.6;
margin: 0;
padding: 0;
}

header {
background: #333;
color: #fff;
padding: 1em 0;
text-align: center;
}

nav ul {
list-style: none;
padding: 0;
}

nav ul li {
display: inline;
margin: 0 10px;
}

nav ul li a {
color: #fff;
text-decoration: none;
}

section {
padding: 2em 0;
border-bottom: 1px solid #ccc;
}

footer {
background: #333;
color: #fff;
text-align: center;
padding: 1em 0;
}

0 comments on commit 2ea62d7

Please sign in to comment.