mirror of
https://github.com/xHyroM/website.git
synced 2024-11-22 06:51:05 +01:00
build: prettier
This commit is contained in:
parent
c79bd6ccae
commit
8a5009eeaf
10 changed files with 170 additions and 173 deletions
|
@ -1,5 +1,8 @@
|
||||||
module.exports = {
|
module.exports = {
|
||||||
plugins: [require.resolve("prettier-plugin-astro")],
|
plugins: [
|
||||||
|
require.resolve("prettier-plugin-astro"),
|
||||||
|
require.resolve("prettier-plugin-tailwindcss"),
|
||||||
|
],
|
||||||
overrides: [
|
overrides: [
|
||||||
{
|
{
|
||||||
files: "*.astro",
|
files: "*.astro",
|
||||||
|
|
|
@ -1,8 +1,9 @@
|
||||||
<script>
|
<script>
|
||||||
import { Fireworks } from "fireworks-js";
|
import { Fireworks } from "fireworks-js";
|
||||||
|
|
||||||
export const fireworksContainer =
|
export const fireworksContainer = document.querySelector<HTMLDivElement>(
|
||||||
document.querySelector<HTMLDivElement>(".fireworks-container")!;
|
".fireworks-container"
|
||||||
|
)!;
|
||||||
|
|
||||||
const fireworks = new Fireworks(fireworksContainer, {
|
const fireworks = new Fireworks(fireworksContainer, {
|
||||||
rocketsPoint: {
|
rocketsPoint: {
|
||||||
|
|
|
@ -22,9 +22,7 @@ const navItems = [
|
||||||
---
|
---
|
||||||
|
|
||||||
<header class="h-16 border-b-[1px] border-neutral-800 text-xl text-white">
|
<header class="h-16 border-b-[1px] border-neutral-800 text-xl text-white">
|
||||||
<Container
|
<Container class="flex justify-around md:justify-between items-center h-full">
|
||||||
class="flex justify-around md:justify-between items-center h-full"
|
|
||||||
>
|
|
||||||
<a class="text-2xl font-extrabold" href="/">xHyroM</a>
|
<a class="text-2xl font-extrabold" href="/">xHyroM</a>
|
||||||
<nav>
|
<nav>
|
||||||
<ul
|
<ul
|
||||||
|
@ -33,10 +31,7 @@ const navItems = [
|
||||||
{
|
{
|
||||||
navItems.map((item) => (
|
navItems.map((item) => (
|
||||||
<li class=" transition-all hover:-translate-y-[2px]">
|
<li class=" transition-all hover:-translate-y-[2px]">
|
||||||
<a
|
<a href={item.link} class="hover:text-hyroGold text-neutral-300">
|
||||||
href={item.link}
|
|
||||||
class="hover:text-hyroGold text-neutral-300"
|
|
||||||
>
|
|
||||||
{item.name}
|
{item.name}
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
|
|
|
@ -30,7 +30,7 @@ const Head = head || DefaultHead;
|
||||||
<script>
|
<script>
|
||||||
import "../scripts/menu.js";
|
import "../scripts/menu.js";
|
||||||
</script>
|
</script>
|
||||||
</body><style is:global>
|
<style is:global>
|
||||||
::-webkit-scrollbar {
|
::-webkit-scrollbar {
|
||||||
width: 16px;
|
width: 16px;
|
||||||
}
|
}
|
||||||
|
@ -42,4 +42,5 @@ const Head = head || DefaultHead;
|
||||||
background-color: #aaaaaa;
|
background-color: #aaaaaa;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
|
@ -18,12 +18,12 @@ const {
|
||||||
|
|
||||||
<Layout head={PostHead} title={title} date={date}>
|
<Layout head={PostHead} title={title} date={date}>
|
||||||
<Navbar />
|
<Navbar />
|
||||||
<h1 class="text-white text-5xl w-full text-center py-32 font-extrabold">
|
<h1 class="w-full py-32 text-center text-5xl font-extrabold text-white">
|
||||||
{title}
|
{title}
|
||||||
</h1>
|
</h1>
|
||||||
|
|
||||||
<Container>
|
<Container>
|
||||||
<main class="text-white text-2xl prose">
|
<main class="prose text-2xl text-white">
|
||||||
<article>
|
<article>
|
||||||
<slot />
|
<slot />
|
||||||
</article>
|
</article>
|
||||||
|
|
|
@ -13,32 +13,29 @@ import Layout from "../layouts/Layout.astro";
|
||||||
<Container>
|
<Container>
|
||||||
<main class="text-2xl text-white">
|
<main class="text-2xl text-white">
|
||||||
<p class="mb-4">
|
<p class="mb-4">
|
||||||
We're sorry, but it looks like the page you were trying to visit
|
We're sorry, but it looks like the page you were trying to visit has
|
||||||
has been misplaced. It's not entirely clear where it's gone, but
|
been misplaced. It's not entirely clear where it's gone, but we suspect
|
||||||
we suspect it may have gotten lost in the vast expanse of the
|
it may have gotten lost in the vast expanse of the internet.
|
||||||
internet.
|
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<p class="mb-4">
|
<p class="mb-4">
|
||||||
We've searched high and low, but alas, we can't seem to find it.
|
We've searched high and low, but alas, we can't seem to find it. It's
|
||||||
It's possible that it's hiding behind a particularly stubborn
|
possible that it's hiding behind a particularly stubborn firewall, or
|
||||||
firewall, or maybe it's taking a much-needed vacation on a
|
maybe it's taking a much-needed vacation on a remote server farm.
|
||||||
remote server farm.
|
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<p class="mb-4">
|
<p class="mb-4">
|
||||||
Despite our best efforts, we just can't seem to locate the page
|
Despite our best efforts, we just can't seem to locate the page you were
|
||||||
you were looking for. We apologize for any inconvenience this
|
looking for. We apologize for any inconvenience this may have caused.
|
||||||
may have caused.
|
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<p class="mb-4">
|
<p class="mb-4">
|
||||||
In the meantime, why not take a look around our <a
|
In the meantime, why not take a look around our <a
|
||||||
class="text-hyroGold"
|
class="text-hyroGold"
|
||||||
href="/">homepage</a
|
href="/">homepage</a
|
||||||
> and see if you can find something else that piques your interest?
|
> and see if you can find something else that piques your interest? Who knows,
|
||||||
Who knows, you might just stumble upon something even better than
|
you might just stumble upon something even better than what you were originally
|
||||||
what you were originally looking for.
|
looking for.
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<p>Thanks for stopping by, and we hope to see you again soon!</p>
|
<p>Thanks for stopping by, and we hope to see you again soon!</p>
|
||||||
|
|
Loading…
Reference in a new issue