Skip to content

Commit a7c7681

Browse files
committed
ContentUpdate: link styling and footer changes
1 parent 946c467 commit a7c7681

File tree

6 files changed

+27
-31
lines changed

6 files changed

+27
-31
lines changed

src/components/Button.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ const {
2121
target={external ? "_blank" : "_self"}
2222
class:list={[
2323
type == "main" ? "btn-main-outline" : "btn-white-outline",
24-
"flex flex-row gap-1.5 justify-between",
24+
"flex flex-row gap-1.5 justify-between no-underline",
2525
className,
2626
]}
2727
>

src/components/Footer.astro

Lines changed: 17 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,21 @@
22
const today = new Date();
33
---
44

5-
<footer class="p-10 bg-neutral-200">
6-
<p class="font-bold">
7-
&copy; {today.getFullYear()} WolvHaven. All rights reserved.
8-
</p>
9-
<p class="text-sm text-gray-500">
10-
This website is related to WolvHaven – a server within the popular game
11-
'Minecraft'. Content in the website is mostly for roleplaying/information
12-
purposes and should not be confused with real-life events or organizations.<br
13-
/>Any content that bears resemblance to real-life individuals or
14-
organizations is purely coincidental.
15-
</p>
5+
<footer class="p-10 bg-gray-100 border-t">
6+
<h4>&copy; {today.getFullYear()} WolvHaven &mdash; All rights reserved</h4>
7+
<div class="max-w-3xl text-sm text-gray-500">
8+
<p>
9+
This website is for WolvHaven, a privately-run Minecraft server.
10+
</p>
11+
<p>
12+
Content in this website is for roleplaying/information purposes and
13+
should not be confused with real-life events or organizations. Any content
14+
that bears resemblance to real-life individuals or organizations is
15+
coincidental.
16+
</p>
17+
<p>
18+
Disclaimer: The WolvHaven server is not an official Minecraft server, and is not
19+
approved, associated, or affiliated with Mojang or Microsoft.
20+
</p>
21+
</div>
1622
</footer>

src/components/Messages.astro

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -60,14 +60,7 @@ const { messages = [] } = Astro.props;
6060
href={msg.link}
6161
>
6262
{msg.linkText ?? "More info"}
63-
<Icon
64-
class="inline-block -mt-1"
65-
name={
66-
msg.externalLink
67-
? "fa7-solid:external-link-alt"
68-
: "fa7-solid:arrow-right"
69-
}
70-
/>
63+
<span class="my-auto" set:html={msg.externalLink ? "&#8599;" : "&#8594;"} />
7164
</a>
7265
)}
7366
</p>
@@ -95,14 +88,7 @@ const { messages = [] } = Astro.props;
9588
href={messages[0].link}
9689
>
9790
{messages[0].linkText ?? "More info"}
98-
<Icon
99-
class="inline-block -mt-1"
100-
name={
101-
messages[0].externalLink
102-
? "fa7-solid:external-link-alt"
103-
: "fa7-solid:arrow-right"
104-
}
105-
/>
91+
<span class="my-auto" set:html={messages[0].externalLink ? "&#8599;" : "&#8594;"} />
10692
</a>
10793
)}
10894
</p>

src/pages/news/index.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ const mdToText = function(markdown) {
2727
</div>
2828
</div>
2929
<div class="w-full lg:w-2/3 px-0 lg:px-5 py-5">
30-
<a class="text-black" href={`/news/${post.slug}/`}><h3>{post.data.title}</h3></a>
30+
<a class="text-black no-underline" href={`/news/${post.slug}/`}><h3>{post.data.title}</h3></a>
3131
<p><FormattedDate date={post.data.pubDate} /></p>
3232
{
3333
post.data.description && <p>{post.data.description}</p>

src/pages/ranks.astro

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,8 +130,7 @@ import BaseLayout from "../layouts/BaseLayout.astro";
130130
<section>
131131
<h2>Staff Ranks</h2>
132132
<p>
133-
<a href="/staff" target="_blank">Click here </a>for more information on
134-
server staff.
133+
For more information on server staff, visit the <a href="/staff">Staff page</a>.
135134
</p>
136135
<div class="grid grid-cols-1 lg:grid-cols-2 gap-3">
137136
<!-- Helper -->

src/styles/global.css

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,11 @@
3737
a {
3838
@apply text-main-50;
3939
}
40+
41+
main a{
42+
@apply underline underline-offset-6;
43+
}
44+
4045
a:hover {
4146
@apply text-main-100;
4247
}

0 commit comments

Comments
 (0)