aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/app.html1
-rw-r--r--src/routes/+page.svelte6
2 files changed, 7 insertions, 0 deletions
diff --git a/src/app.html b/src/app.html
index 77a5ff5..ffc7b4c 100644
--- a/src/app.html
+++ b/src/app.html
@@ -5,6 +5,7 @@
<link rel="icon" href="%sveltekit.assets%/favicon.png" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
%sveltekit.head%
+ <title>Is the year a perfect square?</title>
</head>
<body data-sveltekit-preload-data="hover">
<div style="display: contents">%sveltekit.body%</div>
diff --git a/src/routes/+page.svelte b/src/routes/+page.svelte
index 3519725..3b2ef88 100644
--- a/src/routes/+page.svelte
+++ b/src/routes/+page.svelte
@@ -21,6 +21,7 @@
</script>
<div id="container">
+ <h1>Is the year a perfect square?</h1>
{#if isPerfectSquare}
<div id="answer">Yes.</div>
<strong>{sqrt}</strong><sup>2</sup> = {year}.
@@ -38,6 +39,11 @@
text-align: center;
font-size: 2rem;
}
+ h1 {
+ font-size: inherit;
+ margin: 0;
+ font-weight: normal;
+ }
#answer {
font-size: 5em;
margin: 0;