Skip to content

add back to top button #1721

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 71 commits into from
May 24, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
71 commits
Select commit Hold shift + click to select a range
f5f338a
add back to top button
thilobillerbeck Apr 1, 2025
743a40d
format
thilobillerbeck Apr 1, 2025
51472a8
Revert "flake.lock: Update (#1717)"
thilobillerbeck Apr 2, 2025
6633f34
Reapply "flake.lock: Update (#1717)"
thilobillerbeck Apr 2, 2025
b5478bc
Revert "fix landing image"
thilobillerbeck Apr 2, 2025
bfb521a
Revert "formatting"
thilobillerbeck Apr 2, 2025
e12c34a
Revert "nixcool announcement link"
thilobillerbeck Apr 2, 2025
6842894
Revert "nixcool: update home page (#1720)"
thilobillerbeck Apr 2, 2025
2343d5f
Disclose board member affiliations (#1722)
infinisil Apr 4, 2025
7040a12
Draft: Add "Seasonal Themes" and "Custom Banners" (#1719)
thilobillerbeck Apr 5, 2025
601900a
flake.lock: Update (#1724)
github-actions[bot] Apr 6, 2025
8ce6abc
update dependabot config
thilobillerbeck Apr 6, 2025
1301141
update ci, add zizmor to flake deps
thilobillerbeck Apr 6, 2025
2546590
add zizmor pre-commit hook
thilobillerbeck Apr 6, 2025
e457fda
chore(deps): bump the all group with 9 updates (#1725)
dependabot[bot] Apr 6, 2025
1b09ba7
pin github actions
thilobillerbeck Apr 6, 2025
a2cf379
turn dependabot npm back to weekly
thilobillerbeck Apr 6, 2025
752ce74
Update board responsibilities to match the constitution (#1723)
infinisil Apr 8, 2025
6e09760
teams/xen: sync with Nixpkgs' team list; minor improvements. (#1728)
SigmaSquadron Apr 9, 2025
c0e44c7
Reintroduce nix build functionality (#1727)
thilobillerbeck Apr 10, 2025
1a9004c
fix ci directories missing
thilobillerbeck Apr 10, 2025
d2cb2fa
fix ci pipeline
thilobillerbeck Apr 10, 2025
0c25390
add nixcon 2025 info
thilobillerbeck Apr 10, 2025
699d96b
add envirnoment variables to production build
thilobillerbeck Apr 10, 2025
22a25a0
tempfix for environment based builds
thilobillerbeck Apr 11, 2025
268785c
flake.lock: Update (#1729)
github-actions[bot] Apr 13, 2025
9cdd400
chore(deps-dev): bump the all group with 3 updates (#1730)
dependabot[bot] Apr 14, 2025
ce30591
Add myself to the infra team (#1731)
jfly Apr 17, 2025
376e4db
flake.lock: Update (#1732)
github-actions[bot] Apr 20, 2025
53c5513
chore(deps): bump cachix/install-nix-action from 31.1.0 to 31.2.0 in …
dependabot[bot] Apr 21, 2025
67696de
chore(deps): bump the all group with 10 updates (#1734)
dependabot[bot] Apr 21, 2025
2b9d32f
flake.lock: Update (#1735)
github-actions[bot] Apr 27, 2025
4b1f9a6
blog: add announcement about ongoing logo/branding work (#1737)
djacu Apr 28, 2025
0e78641
feature: remove headings from excerpts (#1739)
djacu Apr 28, 2025
1cab0b4
chore(deps): bump the all group with 8 updates (#1738)
dependabot[bot] Apr 28, 2025
3355924
blog: update branding work announcement (#1740)
djacu Apr 28, 2025
41c90ea
marketing team: update @djacu's title (#1741)
djacu Apr 29, 2025
5ae4cf5
Make Jeremy team lead of the formatting team (#1742)
infinisil Apr 29, 2025
a9a8250
Update URL for Bay Area Nix User Group (#1744)
softinio May 1, 2025
005e200
chore(deps): bump cachix/install-nix-action from 31.2.0 to 31.3.0 in …
dependabot[bot] May 1, 2025
5be7120
flake.lock: Update (#1745)
github-actions[bot] May 4, 2025
48e5254
add son 2025 banner
thilobillerbeck May 4, 2025
5846e80
format
thilobillerbeck May 4, 2025
1ae5fab
chore(deps): bump the all group with 9 updates (#1747)
dependabot[bot] May 5, 2025
e1ced82
rename malformed blog entries
thilobillerbeck May 10, 2025
0470d58
add the ability to specify an author in a blog post
thilobillerbeck May 10, 2025
1eb8904
apply formatting
thilobillerbeck May 10, 2025
540c2b3
Change license link to the right branch (#1751)
Devitzer May 11, 2025
d5b59e8
flake.lock: Update (#1750)
github-actions[bot] May 11, 2025
3103698
chore(deps): bump the all group with 7 updates (#1752)
dependabot[bot] May 12, 2025
2ab2abe
Make install command more secure (#1753)
synalice May 12, 2025
bf2aa33
Add Arian van Putten to the infra team (#1749)
Mic92 May 12, 2025
f099a94
add the ability to add a list of authors as well as their discourse
thilobillerbeck May 14, 2025
714b230
change footer heading color (#1754), improve footer layout
thilobillerbeck May 14, 2025
78234d9
formatting
thilobillerbeck May 14, 2025
4aca43e
adjust footer spacing and make socials react to hover
thilobillerbeck May 14, 2025
f490022
fix announcement banner not stretching properly
thilobillerbeck May 14, 2025
29e3e39
increase contrast and interactivity in download section
thilobillerbeck May 14, 2025
8b1768a
increase footer link padding on mobile
thilobillerbeck May 14, 2025
04167a1
format
thilobillerbeck May 14, 2025
e92632c
flake.lock: Update (#1755)
github-actions[bot] May 18, 2025
357dedc
chore(deps): bump the all group with 9 updates (#1756)
dependabot[bot] May 19, 2025
95e2d83
chore(deps): bump DeterminateSystems/update-flake-lock from 24 to 25 …
dependabot[bot] May 19, 2025
71177e9
content: update logos to new branding (#1758)
djacu May 23, 2025
2f271f4
blog: announce 25.05 release (#1759)
leona-ya May 23, 2025
366e0e3
blog: correct release date for NixOS 25.05 (#1760)
leona-ya May 23, 2025
0c02894
flake.lock: Update (#1761)
github-actions[bot] May 23, 2025
1cc1d55
make arrow stick to side
thilobillerbeck May 24, 2025
16064eb
fix back to top on mobile
thilobillerbeck May 24, 2025
c99469b
formatting
thilobillerbeck May 24, 2025
813ccbc
Merge branch 'main' into back-to-top
thilobillerbeck May 24, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions core/src/components/Footer.astro
Original file line number Diff line number Diff line change
Expand Up @@ -92,3 +92,14 @@ const footerMenu = await getEntry('menus', 'footer');
</Container>
</div>
</footer>
<div class="fixed right-0 bottom-0 left-0 z-50">
<Container class="relative">
<a
href="#"
id="scroll-to-top"
class="bg-nix-blue-darker hover:bg-nix-blue-dark absolute right-4 bottom-4 z-50 rounded-xl text-white drop-shadow-md transition-all duration-100 md:-right-14 md:bottom-8"
>
<Icon class="h-14 w-14 p-1" name="mdi:keyboard-arrow-up" />
</a>
</Container>
</div>
1 change: 1 addition & 0 deletions core/src/layouts/Layout.astro
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ const headFeedLinks = blogMenu.data.map((e) => {
import '@fontsource-variable/overpass';
import '@fontsource-variable/fira-code';
import '@fontsource-variable/roboto-flex/wdth.css';
import '@/lib/client/scrollToTopHandler.js';
</script>

<style>
Expand Down
42 changes: 42 additions & 0 deletions core/src/lib/client/scrollToTopHandler.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
const scrollTop = document.getElementById('scroll-to-top');
scrollTop.classList.add('opacity-0');

document.addEventListener('scroll', () => {
const scrollPosition = window.scrollY;
const scrollPositionBottom = scrollPosition + window.innerHeight;
if (scrollPositionBottom > document.body.offsetHeight - 10) {
scrollTop.classList.remove(
'bottom-4',
'md:bottom-8',
'md:-right-14',
'right-4',
'bg-nix-blue-darker',
);
scrollTop.classList.add(
'md:bottom-4',
'right-1/2',
'translate-x-1/2',
'bottom-0',
);
} else {
scrollTop.classList.remove(
'md:bottom-4',
'right-1/2',
'translate-x-1/2',
'bottom-0',
);
scrollTop.classList.add(
'bottom-4',
'md:bottom-8',
'md:-right-14',
'right-4',
'bg-nix-blue-darker',
);
}

if (scrollPosition > 100) {
scrollTop.classList.remove('opacity-0');
} else {
scrollTop.classList.add('opacity-0');
}
});
5 changes: 4 additions & 1 deletion eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,10 @@ export default defineConfig([
"core/*.{js,mjs,cjs,ts}",
"core/src/**/*.{js,mjs,cjs,ts}",
], languageOptions: { globals: globals.node } },
{ files: ["core/public/**/*.{js,mjs,cjs,ts}"], languageOptions: { globals: globals.browser } },
{ files: [
"core/public/**/*.{js,mjs,cjs,ts}",
"core/src/lib/client/**/*.{js,mjs,cjs,ts}",
], languageOptions: { globals: globals.browser } },
{ files: ["**/*.{js,mjs,cjs,ts}"], plugins: { js }, extends: ["js/recommended"] },
tseslint.configs.base,
eslintPluginAstro.configs.recommended,
Expand Down