Skip to content

Commit 6e46261

Browse files
committed
css changes
1 parent f8cc0d8 commit 6e46261

File tree

3 files changed

+20
-12
lines changed

3 files changed

+20
-12
lines changed

playground/pages/home.tsx

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -115,9 +115,9 @@ export const Home = () => {
115115
/>
116116
<div class="m-8">
117117
<Show when={!params.user} fallback={<h1 class="text-center text-3xl mb-4">{`${params.user}'s`} Repls</h1>}>
118-
<div class="flex flex-col align-middle mb-16">
118+
<div class="flex flex-col align-middle mb-8">
119119
<button
120-
class="bg-solid-lightgray shadow-md dark:bg-solid-darkLighterBg rounded-xl p-4 text-3xl flex mx-auto"
120+
class="bg-solid-lightgray shadow-md dark:bg-neutral-800 border border-gray-600 rounded-xl p-3 text-xl flex mx-auto justify-center items-center"
121121
onClick={async () => {
122122
const result = await fetch(`${API}/repl`, {
123123
method: 'POST',
@@ -137,25 +137,26 @@ export const Home = () => {
137137
navigate(`/${context.user()?.display}/${id}`);
138138
}}
139139
>
140-
<Icon path={plus} class="w-8" /> Create new REPL
140+
<Icon path={plus} class="w-6" /> Create new REPL
141141
</button>
142-
<p class="text-center text-gray-300 text-sm">
143-
Or{' '}
144-
<a href="/scratchpad" class="hover:underline">
142+
<p class="text-center text-gray-800 dark:text-gray-300 text-sm pt-1">
143+
or{' '}
144+
<a href="/scratchpad" class="hover:underline text-solid-medium dark:text-solid-darkdefault">
145145
open my scratchpad
146146
</a>
147147
</p>
148148
</div>
149149
</Show>
150150
<table class="w-200 max-w-full mx-auto">
151151
<thead>
152-
<tr class="border-b border-neutral-600">
153-
<td class="w-6/10">Title</td>
154-
<td class="w-32">Edited</td>
155-
<td class="text-right w-20">Options</td>
152+
<tr class="border-b border-neutral-600 font-medium">
153+
<th class="pb-2 w-6/10 text-left">Title</th>
154+
<th class="pb-2 w-32 text-left">Edited</th>
155+
<th class="pb-2 w-20 text-right">Options</th>
156156
</tr>
157157
</thead>
158158
<tbody>
159+
<tr class="h-1" aria-hidden />
159160
<Suspense
160161
fallback={
161162
<tr>

public/Gordita-Medium.woff

82.5 KB
Binary file not shown.

src/assets/main.css

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,21 @@
11
@font-face {
22
font-family: 'Gordita';
33
src: url('/Gordita-Regular.woff') format('woff');
4-
font-weight: normal;
4+
font-weight: 400;
55
font-style: normal;
66
}
77

88
@font-face {
99
font-family: 'Gordita';
1010
src: url('/Gordita-Bold.woff') format('woff');
11-
font-weight: bold;
11+
font-weight: 700;
12+
font-style: normal;
13+
}
14+
15+
@font-face {
16+
font-family: 'Gordita';
17+
src: url('/Gordita-Medium.woff') format('woff');
18+
font-weight: 500;
1219
font-style: normal;
1320
}
1421

0 commit comments

Comments
 (0)