Skip to content

Commit ee0f68c

Browse files
committed
fixed firebase auth blocking screen on mobile
1 parent 4850b3b commit ee0f68c

File tree

8 files changed

+165
-55
lines changed

8 files changed

+165
-55
lines changed

app/[...not_found]/page.tsx

-5
This file was deleted.

app/admin/articles/page.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ export default function ArticlesPage() {
125125
};
126126

127127
return (
128-
<div className="min-h-screen text-white overflow-x-hidden ">
128+
<div className="min-h-screen text-white overflow-x-hidden w-full">
129129
{/* Header */}
130130
<div className="w-full px-4">
131131
<div className="mt-10 md:-mt-8">

app/admin/page.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ export default function AdminDashboardPage() {
104104
<p className="text-xl">{articlesCount}</p>
105105
</div>
106106
<div className="p-4 border border-white">
107-
<h2 className="text-lg font-bold">Team</h2>
107+
<h2 className="text-lg font-bold">Members</h2>
108108
<p className="text-xl">{teamCount}</p>
109109
</div>
110110
<div className="p-4 border border-white">

app/admin/profile/page.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ export default function ProfilePage() {
7979
};
8080

8181
return (
82-
<div className="ml-0 md:ml-3">
82+
<div className="ml-0 md:ml-3 mt-10 md:-mt-8">
8383
<PageTitle
8484
className="sr-only"
8585
imgSrc="/images/titles/profile.svg"

app/admin/team/page.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ export default function TeamPage() {
4747

4848
return (
4949
<div>
50-
<div className="flex justify-between items-center mb-4">
50+
<div className="flex justify-between items-center mb-4 mt-10 md:-mt-8">
5151
<PageTitle
5252
className="sr-only"
5353
imgSrc="/images/titles/team.svg"

app/globals.css

+151-43
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
@import "tailwindcss";
22
@import url("https://cdnjs.cloudflare.com/ajax/libs/github-markdown-css/5.2.0/github-markdown-dark.min.css");
33

4+
iframe[aria-hidden="true"] {
5+
display: none !important;
6+
}
7+
48

59
@layer base {
610
:root {
@@ -185,65 +189,63 @@ select:-webkit-autofill {
185189
background-color: #7b26ca;
186190
}
187191

188-
/* Keep existing CSS code and add/modify these styles */
189-
190-
/* Remove the all: revert !important; which is causing problems */
192+
/* Markdown Styles */
191193
.markdown-body {
192-
color: #c9d1d9 !important;
193-
padding: 20px !important;
194+
color: #fff !important;
194195
}
195196

196-
/* Add specific styling for markdown elements */
197+
/* Heading */
197198
.markdown-body h1 {
198-
font-size: 2em !important;
199+
font-weight: 600;
200+
font-size: clamp(3rem, 2.7857rem + 1.0714vw, 4.5rem);
199201
margin-bottom: 0.5em !important;
200-
color: #fff !important;
201-
border-bottom: 1px solid #30363d !important;
202-
padding-bottom: 0.3em !important;
202+
border-bottom: 1px solid #ffffff5b !important;
203+
padding-bottom: 0.1em !important;
203204
}
204205

205206
.markdown-body h2 {
206-
font-size: 1.5em !important;
207+
font-size: clamp(2.2rem, 2.0857rem + 0.6714vw, 3.3rem);
208+
font-weight: 600;
207209
margin-bottom: 0.5em !important;
208-
color: #fff !important;
209-
border-bottom: 1px solid #30363d !important;
210+
border-bottom: 1px solid #ffffff5b !important;
210211
padding-bottom: 0.3em !important;
211212
}
212213

213214
.markdown-body h3 {
214-
font-size: 1.25em !important;
215-
margin-bottom: 0.5em !important;
216-
color: #fff !important;
217-
}
218-
219-
.markdown-body h4 {
220-
font-size: 1em !important;
215+
font-size: clamp(1.9rem, 1.8857rem + 0.4714vw, 2.8rem);
216+
font-weight: 600;
221217
margin-bottom: 0.5em !important;
222-
color: #fff !important;
223218
}
224219

225-
.markdown-body ul,
226-
.markdown-body ol {
227-
padding-left: 2em !important;
228-
margin-bottom: 1em !important;
220+
/* Bold Text */
221+
.markdown-body strong,
222+
.markdown-body b {
223+
font-weight: 700;
229224
}
230225

231-
.markdown-body li {
232-
margin: 0.25em 0 !important;
233-
list-style-type: disc !important;
226+
/* Italic Text */
227+
.markdown-body em,
228+
.markdown-body i {
229+
font-style: italic;
234230
}
235231

236-
.markdown-body ol li {
237-
list-style-type: decimal !important;
232+
/* Horizontal Rule */
233+
.markdown-body hr {
234+
border: 0;
235+
height: 1px;
236+
background: #ffffff5b;
237+
margin: 1.5em 0;
238238
}
239239

240-
.markdown-body code {
241-
background-color: #161b22 !important;
242-
padding: 0.2em 0.4em !important;
243-
border-radius: 3px !important;
244-
font-family: monospace !important;
240+
/* Blockquote */
241+
.markdown-body blockquote {
242+
padding: 0 1em !important;
243+
color: #eeeeee !important;
244+
border-left: 0.25em solid #30363d !important;
245+
margin-bottom: 1em !important;
245246
}
246247

248+
/* Code Block */
247249
.markdown-body pre {
248250
background-color: #161b22 !important;
249251
padding: 16px !important;
@@ -257,15 +259,122 @@ select:-webkit-autofill {
257259
padding: 0 !important;
258260
}
259261

260-
.markdown-body blockquote {
261-
padding: 0 1em !important;
262-
color: #8b949e !important;
263-
border-left: 0.25em solid #30363d !important;
262+
/* Inline Code */
263+
.markdown-body code {
264+
background-color: #161b22 !important;
265+
padding: 0.2em 0.4em !important;
266+
border-radius: 3px !important;
267+
font-family: monospace !important;
268+
}
269+
270+
/* Ordered and Unordered Lists */
271+
.markdown-body ul,
272+
.markdown-body ol {
273+
padding-left: 2em !important;
264274
margin-bottom: 1em !important;
265275
}
266276

277+
.markdown-body li {
278+
margin: 0.25em 0 !important;
279+
list-style-type: disc !important;
280+
}
281+
282+
.markdown-body ol li {
283+
list-style-type: decimal !important;
284+
}
285+
286+
/* Paragraph */
267287
.markdown-body p {
268-
margin-bottom: 1em !important;
288+
font-weight: 300;
289+
font-size: 1.15rem;
290+
margin-bottom: 1rem;
291+
}
292+
293+
/* Links */
294+
.markdown-body a {
295+
color: #fff;
296+
font-weight: 500;
297+
text-decoration: none;
298+
border-bottom: #fff 1px solid;
299+
transition: all 0.3s;
300+
}
301+
302+
.markdown-body a:hover {
303+
color: #8a2be2;
304+
text-decoration: none;
305+
}
306+
307+
/* Checkbox (for task lists) */
308+
.markdown-body input[type="checkbox"] {
309+
margin: 0 0.5em 0 0;
310+
vertical-align: middle;
311+
}
312+
313+
/* Table */
314+
.markdown-body table {
315+
width: 100%;
316+
border-collapse: collapse;
317+
margin-bottom: 1em;
318+
}
319+
320+
.markdown-body th,
321+
.markdown-body td {
322+
border: 1px solid #ffffff5b;
323+
padding: 0.5em;
324+
text-align: left;
325+
}
326+
327+
.markdown-body th {
328+
font-weight: 600;
329+
background-color: #161b22;
330+
}
331+
332+
/* Custom ID Headings */
333+
.markdown-body h1[id],
334+
.markdown-body h2[id],
335+
.markdown-body h3[id] {
336+
position: relative;
337+
}
338+
339+
.markdown-body h1[id]::after,
340+
.markdown-body h2[id]::after,
341+
.markdown-body h3[id]::after {
342+
content: "#" attr(id);
343+
font-size: 0.8em;
344+
color: #ffffff5b;
345+
margin-left: 0.5em;
346+
text-decoration: none;
347+
}
348+
349+
/* Footnote */
350+
.markdown-body .footnote {
351+
font-size: 0.9em;
352+
color: #bbb;
353+
margin-top: 1em;
354+
}
355+
356+
/* Highlight */
357+
.markdown-body mark {
358+
background-color: #892be280;
359+
color: #fff;
360+
padding: 0.2em;
361+
}
362+
363+
/* Subscript */
364+
.markdown-body sub {
365+
vertical-align: sub;
366+
font-size: smaller;
367+
}
368+
369+
/* Superscript */
370+
.markdown-body sup {
371+
vertical-align: super;
372+
font-size: smaller;
373+
}
374+
375+
.markdown-body [id]::before {
376+
content: attr(id);
377+
display: none;
269378
}
270379

271380
iframe {
@@ -275,9 +384,8 @@ iframe {
275384
margin-bottom: 4rem;
276385
margin-top: 4rem;
277386
}
278-
279-
/* @media (max-width: 768px) {
387+
@media (max-width: 768px) {
280388
iframe {
281389
height: 14rem !important;
282390
}
283-
} */
391+
}

app/layout.tsx

+7
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,13 @@ export const metadata: Metadata = {
66
description: "Getting things done on L.A.P Docs",
77
};
88

9+
export const viewport = {
10+
width: "device-width",
11+
initialScale: 1,
12+
maximumScale: 1,
13+
viewportFit: "cover",
14+
};
15+
916
export default function RootLayout({
1017
children,
1118
}: {

components/admin-sidebar.tsx

+3-3
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ export default function AdminSidebar() {
5858
initial={{ opacity: 0 }}
5959
animate={{ opacity: 0.5 }}
6060
exit={{ opacity: 0 }}
61-
className="fixed md:hidden top-0 left-0 w-full h-screen bg-black z-30"
61+
className="fixed md:hidden top-0 left-0 w-full h-screen z-30"
6262
onClick={() => setIsOpen(false)}
6363
/>
6464

@@ -68,7 +68,7 @@ export default function AdminSidebar() {
6868
initial="hidden"
6969
animate="visible"
7070
exit="exit"
71-
className="fixed top-0 left-0 z-40 w-60 border-r border-white p-4 flex flex-col h-screen bg-black"
71+
className="fixed top-0 left-0 z-40 w-60 border-r border-white p-4 flex flex-col h-screen "
7272
>
7373
<div>
7474
{/* Logo (centered and rounded) */}
@@ -120,7 +120,7 @@ export default function AdminSidebar() {
120120
{/* Sign Out button at the bottom */}
121121
<button
122122
onClick={handleSignOut}
123-
className="mt-auto py-3 font-semibold text-center mb-5 transition ease-in-out duration-300"
123+
className="mt-auto py-3 font-semibold text-center mb-19 md:mb-7 transition ease-in-out duration-300"
124124
>
125125
Sign Out
126126
</button>

0 commit comments

Comments
 (0)