Skip to content

Commit

Permalink
add copyright
Browse files Browse the repository at this point in the history
  • Loading branch information
Vanawy committed Feb 27, 2024
1 parent 94bc367 commit 6ac51ad
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 9 deletions.
2 changes: 2 additions & 0 deletions index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@
}

.copyright {
padding-top: 10px;
display: block;
text-align: center;
color: #bbb;
cursor: pointer;
Expand Down
22 changes: 13 additions & 9 deletions src/calculator.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
use std::ops::Range;
use yew::prelude::*;
use crate::button::{Button, ButtonAction};
const WEBSITE_URL: &str = "https://vanawy.dev";

pub struct Calculator {
sum: u64,
Expand Down Expand Up @@ -86,16 +87,19 @@ impl Component for Calculator {
}).collect::<Html>();

html! {
<sl-card id="main">
<p id="scores">{scores}</p>
<sl-divider></sl-divider>
<p id="description">{summary}</p>
<p id="average" style="font-size: var(--sl-font-size-2x-large)">{avg}</p>
<div>
<sl-card id="main">
<p id="scores">{scores}</p>
<sl-divider></sl-divider>
<p id="description">{summary}</p>
<p id="average" style="font-size: var(--sl-font-size-2x-large)">{avg}</p>

<div id="buttons" style="text-align: center;">
{ buttons }
</div>
</sl-card>
<div id="buttons" style="text-align: center;">
{ buttons }
</div>
</sl-card>
<a href={ WEBSITE_URL } class="copyright">{ WEBSITE_URL }</a>
</div>
}
}
}

0 comments on commit 6ac51ad

Please sign in to comment.