Skip to content

Commit 932a5c2

Browse files
committed
Change changelog color depeding on source
1 parent 7437181 commit 932a5c2

3 files changed

Lines changed: 16 additions & 4 deletions

File tree

.github/FUNDING.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
ko_fi: Tibot

README.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,12 @@
11
# Hu Tao Site
2-
Genshin Impact site hosted [here](https://genshin.flatisjustice.moe) with [Hu Tao](https://github.com/Tibowl/HuTao) integration.
2+
Genshin Impact site hosted [here](https://hutaobot.moe) for the Discord bot [Hu Tao](https://github.com/Tibowl/HuTao).
3+
4+
## Data
5+
Data is fetched from the [Hu Tao](https://github.com/Tibowl/HuTao) repository to keep stuff up to date.
6+
7+
## Development
8+
Set up the appropriate environment variables (possibly via a `.env` file; see `utils/config.ts` for more information). Install dependencies using `pnpm i` and use `npm run dev` to start a local setup.
9+
10+
## Funding
11+
Help fund hosting of the site and bot.
12+
[![ko-fi](https://www.ko-fi.com/img/githubbutton_sm.svg)](https://ko-fi.com/A0A81MOVN)

pages/changelog.tsx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,12 +69,13 @@ function Commit({ commit, prev }: { commit: CommitData, prev?: CommitData }) {
6969
{(prev == undefined || prevDate != formattedDate) && formattedDate}
7070
</div>
7171

72-
<div className="pl-4">
72+
<div className={`pl-4 ${commit.message.startsWith("Merge branch ") ? "opacity-50" : ""}`}>
7373
<span>
74-
[{date.toLocaleString("en-UK", { hour: "2-digit", minute: "2-digit" })}] {commit.type}:{" "}
74+
[{date.toLocaleString("en-UK", { hour: "2-digit", minute: "2-digit" })}] <span className={commit.type == "Website" ? "text-blue-700 dark:text-blue-300" : "text-amber-700 dark:text-amber-300"}>{commit.type}</span>:{" "}
7575
</span>
7676

77-
{commit.type == "Bot/Data" ? <FormattedLink href={`https://github.com/Tibowl/HuTao/commit/${commit.hash}`} target="_blank">{child}</FormattedLink> : child}
77+
{commit.type == "Bot/Data" ? <FormattedLink href={`https://github.com/Tibowl/HuTao/commit/${commit.hash}`} target="_blank">{child}</FormattedLink> :
78+
commit.type == "Website" ? <FormattedLink href={`https://github.com/Tibowl/HuTaoSite/commit/${commit.hash}`} target="_blank">{child}</FormattedLink> : child}
7879
</div>
7980
</>
8081
}

0 commit comments

Comments
 (0)