Skip to content

Commit

Permalink
use gg sans
Browse files Browse the repository at this point in the history
  • Loading branch information
saboooor committed Oct 7, 2023
1 parent b82cc04 commit 08dff41
Show file tree
Hide file tree
Showing 7 changed files with 34 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "luminescent-transcripts",
"version": "4.1.0",
"version": "4.2.0",
"description": "A transcript service for Discord",
"repository": {
"type": "git",
Expand Down
Binary file added public/gg sans Bold.woff
Binary file not shown.
Binary file added public/gg sans Medium.woff
Binary file not shown.
Binary file added public/gg sans Regular.woff
Binary file not shown.
Binary file added public/gg sans Semibold.woff
Binary file not shown.
31 changes: 31 additions & 0 deletions src/global.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,37 @@
@tailwind components;
@tailwind utilities;

@font-face {
font-family: 'gg sans Bold';
font-style: normal;
font-weight: normal;
src: local('gg sans Bold'), url('gg sans Bold.woff') format('woff');
}


@font-face {
font-family: 'gg sans Normal Regular';
font-style: normal;
font-weight: normal;
src: local('gg sans Normal Regular'), url('gg sans Regular.woff') format('woff');
}


@font-face {
font-family: 'gg sans Medium Regular';
font-style: normal;
font-weight: normal;
src: local('gg sans Medium Regular'), url('gg sans Medium.woff') format('woff');
}


@font-face {
font-family: 'gg sans SemiBold Regular';
font-style: normal;
font-weight: normal;
src: local('gg sans SemiBold Regular'), url('gg sans Semibold.woff') format('woff');
}

html {
overflow: overlay;
background-color: hsl(0deg, 0%, 5%);
Expand Down
4 changes: 2 additions & 2 deletions src/routes/[Id]/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -177,13 +177,13 @@ export default component$(() => {
<div class="group">
<div class={`flex ${sameuser ? 'p-1' : 'mt-2 ml-2 pt-2 pl-2'} group-hover:bg-discord-700`}>
{!sameuser && <img width={40} height={40} class="w-10 h-10 mr-5 rounded-full" src={log.author.avatar} alt={log.author.name} />}
{sameuser && <p class="w-16 mx-1 text-gray-300 p-1 text-xs text-center">
{sameuser && <p class="min-w-[64px] mx-1 text-gray-300 p-1 text-xs text-center">
<span class="hidden group-hover:flex">
{new Date(log.time).toLocaleString('en-US', { timeZone: store.timezone, hour: 'numeric', minute: 'numeric' })}
</span>
</p>}
<div>
{!sameuser && <h3 class="text-lg" style={{ color: log.author.color }}>{log.author.name} <span class="text-gray-300 font-normal text-sm pl-1">{new Date(log.time).toLocaleString('default', { timeZone: store.timezone })}</span></h3>}
{!sameuser && <h3 class="font-medium" style={{ color: log.author.color }}>{log.author.name} <span class="text-gray-300 font-normal text-sm pl-1">{new Date(log.time).toLocaleString('default', { timeZone: store.timezone })}</span></h3>}
{(log.content || log.attachments) && <Markdown mdContent={`${log.content}${log.attachments ? `\n${log.attachments.map((attachment: any) => `![Attachment](${attachment.url})`).join(' ')}` : ''}`} extraClass="text-gray-100" /> }
{log.embeds && log.embeds.map((embed: any) => {
return <>
Expand Down

0 comments on commit 08dff41

Please sign in to comment.