hyprland-website/src/routes/InstallSlice.svelte

70 lines
2.4 KiB
Svelte
Raw Normal View History

2023-08-05 20:33:07 +02:00
<script>
import { animateIn } from '$lib/Helper.mjs'
import archLogo from '$lib/images/logos/arch.svg'
import nixLogo from '$lib/images/logos/nixos.svg'
import bsdLogo from '$lib/images/logos/freebsd.svg'
import suseLogo from '$lib/images/logos/opensuse.svg'
import LinkOutIcon from '~icons/akar-icons/link-out'
import InstallButton from './InstallButton.svelte'
import Button from '$lib/components/Button.svelte'
2023-08-07 19:59:22 +02:00
import Title from '$lib/components/Title.svelte'
2023-11-13 21:40:55 +01:00
import amongus from '$lib/images/amongus/green.webp'
2023-08-05 20:33:07 +02:00
</script>
2023-08-17 16:45:47 +02:00
<section class="pb-6">
2023-08-07 19:59:22 +02:00
<Title class="mb-8">
<span slot="title">Install now</span><span slot="subtitle"> For your favourite distro </span>
</Title>
2023-08-05 20:33:07 +02:00
2023-09-13 14:27:13 +02:00
<div class="flex flex-col items-center gap-12 md:gap-6" use:animateIn={{ slide: 24, fade: 0 }}>
2023-08-17 16:45:47 +02:00
<div
2023-11-14 10:19:22 +01:00
class="links_ flex flex-col gap-12 md:gap-6 md:rounded-3xl md:bg-gradient-to-tr md:from-blue-500/40 md:to-transparent md:p-8 md:shadow-xl md:outline md:outline-1 md:outline-blue-500"
2023-08-05 20:33:07 +02:00
>
2023-08-17 16:45:47 +02:00
<InstallButton name="Arch" command="pacman -S hyprland" image={archLogo}
><div slot="extra">
AUR git version: <a
2023-11-14 10:19:22 +01:00
class=" "
2023-08-17 16:45:47 +02:00
target="_blank"
2023-09-03 18:00:52 +02:00
href="https://aur.archlinux.org/packages/hyprland-git/">hyprland-git</a
2023-08-17 16:45:47 +02:00
>
</div></InstallButton
>
2023-11-14 10:19:22 +01:00
<InstallButton name="NixOS" command="programs.hyprland.enable = true " image={nixLogo}
><div slot="extra">
<a href="https://wiki.hyprland.org/Nix/" target="_blank"
>See more details and git version</a
>
</div>
</InstallButton>
2023-08-17 16:45:47 +02:00
<InstallButton name="FreeBSD" command="pkg install hyprland" image={bsdLogo} />
2023-09-13 14:27:13 +02:00
<InstallButton name="openSUSE" command="zypper in hyprland" image={suseLogo}
2023-11-13 21:40:55 +01:00
><div slot="extra">or install “hyprland” via YaST2 Software.</div>
<img
2023-11-14 10:19:22 +01:00
class=" absolute inset-0 -z-10 translate-y-1 rotate-0 scale-90 opacity-0 transition-all duration-700 [transition-delay:2s] group-hover:-translate-x-3 group-hover:-translate-y-0 group-hover:-rotate-12 group-hover:scale-100 group-hover:opacity-90"
2023-11-13 21:40:55 +01:00
src={amongus}
slot="imageExtra"
alt=""
srcset=""
/>
</InstallButton>
2023-08-17 16:45:47 +02:00
</div>
2023-08-05 20:33:07 +02:00
2023-08-17 16:45:47 +02:00
<a
target="_blank"
href="https://wiki.hyprland.org/Getting-Started/Installation/#packages"
class="mt-10"
>
2023-09-21 15:38:11 +02:00
<Button size="lg" type="fancyOutline">Other options</Button>
2023-08-05 20:33:07 +02:00
</a>
</div>
</section>
2023-11-14 10:19:22 +01:00
<style lang="postcss">
.links_ {
a {
@apply font-medium hover:text-white hover:underline;
}
}
</style>