Skip to content

Commit

Permalink
feat: add footer
Browse files Browse the repository at this point in the history
  • Loading branch information
Pranav2612000 committed May 12, 2024
1 parent 5ae88a7 commit 04ec3e8
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 1 deletion.
5 changes: 5 additions & 0 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,11 @@ document.querySelector("#app").innerHTML = `
<button id="addData">Send Data</button>
</div>
</div>
<div id="footer">
<div> <a href="https://github.com/Pranav2612000/raft" target="_blank">View Source</a></div>
<div>
Made by <a href="https://vasusharma7.github.io" target="_blank">Vasu Sharma</a> and <a href="https://pranavjoglekarcodes.web.app" target="_blank">Pranav Joglekar</a></div>
</div>
`;

const NUM_NODES = 5; // Default number of nodes at the start
Expand Down
21 changes: 20 additions & 1 deletion style.css
Original file line number Diff line number Diff line change
Expand Up @@ -113,14 +113,33 @@ button:focus-visible {
flex-wrap: wrap;
gap: 0.5rem;
}

#footer {
display: flex;
justify-content: space-between;

padding-inline: 1rem;

position: absolute;
bottom: 0px;
left: 0px;

width: calc(100vw - 2rem);

background-color: #f5ebeb;
}

@media (max-width: 512px){

#operations {
flex-direction: column;
align-items: center;
justify-content: center;
gap: 1rem;
}
}
#footer {
flex-direction: column;
}
}
#board {
position: relative;
Expand Down

0 comments on commit 04ec3e8

Please sign in to comment.