Skip to content

Commit

Permalink
feat: added type to button tag
Browse files Browse the repository at this point in the history
  • Loading branch information
JCU25 committed Aug 14, 2024
1 parent 8de2fb7 commit 8fa012c
Showing 1 changed file with 6 additions and 11 deletions.
17 changes: 6 additions & 11 deletions src/components/ProjectCardv2.astro
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ const {
} = Astro.props;
---

<button id={`${id}-modal-button`}>
<button type="button" id={`${id}-modal-button`}>
<div class="card">
<div>
<div class="proj-card-icon-div">
Expand Down Expand Up @@ -107,7 +107,7 @@ const {
project_link == "" && (
<header class="modal-header">
<h1 class="modal-header">{project_name}</h1>
<button class="modal-close" onclick={`closeModal('${id}')`}>
<button type="button" id={`${id}-modal-close`} class="modal-close">
&times;
</button>
</header>
Expand All @@ -128,7 +128,7 @@ const {
/>
</a>
</div>
<button class="modal-close" onclick={`closeModal('${id}')`}>
<button type="button" id={`${id}-modal-close`} class="modal-close">
&times;
</button>
</header>
Expand All @@ -149,7 +149,7 @@ const {
/>
</a>
</div>
<button id={`${id}-modal-close`} class="modal-close">
<button type="button" id={`${id}-modal-close`} class="modal-close">
&times;
</button>
</header>
Expand Down Expand Up @@ -206,7 +206,6 @@ const {

<!-- <script type="text/javascript" src="../src/js/modal.js"></script> -->


<script define:vars={{ id }}>
console.log(id);
function openModal(id) {
Expand All @@ -232,11 +231,9 @@ const {

document
.getElementById(`${id}-modal-close`)
.addEventListener("click", () => closeModal(id))

.addEventListener("click", () => closeModal(id));
</script>


<style>
button {
border: none;
Expand All @@ -261,12 +258,10 @@ const {
background-color: rgba(0, 0, 0, 0.4);
display: none;


p {
margin-top: 20px;
}


a {
display: flex;
align-items: center;
Expand Down Expand Up @@ -521,7 +516,7 @@ const {
.timeline {
font-size: 13px;
}

.modal {
.modal-content {
width: 85%;
Expand Down

0 comments on commit 8fa012c

Please sign in to comment.