Skip to content

Commit

Permalink
front: scroll to end of page
Browse files Browse the repository at this point in the history
  • Loading branch information
tbmc committed May 17, 2024
1 parent 6696b98 commit 1bd9d5b
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 17 deletions.
38 changes: 21 additions & 17 deletions web-app/src/app.html
Original file line number Diff line number Diff line change
@@ -1,20 +1,24 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<link rel="icon" href="%sveltekit.assets%/favicon.png" />
<meta name="viewport" content="width=device-width" />
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@picocss/pico@1/css/pico.min.css"/>
%sveltekit.head%

<style>
:root {
--primary-background: #030E2F;
--primary-color: #63C37B;
}
</style>
</head>
<body data-sveltekit-preload-data="hover">
<div style="display: contents">%sveltekit.body%</div>
</body>
<head>
<meta charset="utf-8" />
<link rel="icon" href="%sveltekit.assets%/favicon.png" />
<meta name="viewport" content="width=device-width" />
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@picocss/pico@1/css/pico.min.css" />
%sveltekit.head%

<style>
:root {
--primary-background: #030e2f;
--primary-color: #63c37b;
}

html {
scroll-behavior: smooth;
}
</style>
</head>
<body data-sveltekit-preload-data="hover">
<div style="display: contents">%sveltekit.body%</div>
</body>
</html>
4 changes: 4 additions & 0 deletions web-app/src/lib/GenerateUrl/LoginForm.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,10 @@
dataParamsStore.set(data);
disableSaveLoginStore.set(disableSaveLogin);
twoText.animate();
setTimeout(() => {
window.scrollTo(0, document.body.scrollHeight);
}, 500);
}
clicked();
Expand Down

0 comments on commit 1bd9d5b

Please sign in to comment.