Skip to content

Commit 6ba1f08

Browse files
committed
xd
1 parent 686bbd9 commit 6ba1f08

File tree

6 files changed

+373
-28
lines changed

6 files changed

+373
-28
lines changed

app/blog/[...slug]/page.tsx

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -108,13 +108,16 @@ export default async function Page(props: { params: Promise<{ slug: string[] }>
108108

109109
return (
110110
<>
111+
111112
<script
112113
type="application/ld+json"
113114
dangerouslySetInnerHTML={{ __html: JSON.stringify(jsonLd) }}
114115
/>
115-
<Layout content={mainContent} authorDetails={authorDetails} next={next} prev={prev}>
116-
<MDXLayoutRenderer code={post.body.code} components={components} toc={post.toc} />
117-
</Layout>
116+
<div className=" mx-0 lg:mx-72 md:mx-32">
117+
<Layout content={mainContent} authorDetails={authorDetails} next={next} prev={prev}>
118+
<MDXLayoutRenderer code={post.body.code} components={components} toc={post.toc} />
119+
</Layout>
120+
</div>
118121
</>
119122
)
120123
}

app/tag-data.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"fullstack": 1,
23
"nodejs": 2,
34
"typescript": 1,
45
"nextjs": 6,

components/MDXComponents.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,5 @@ export const components: MDXComponents = {
1313
pre: Pre,
1414
table: TableWrapper,
1515
BlogNewsletterForm,
16+
strong: 'strong',
1617
}

css/tailwind.css

Lines changed: 21 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,10 @@
2727
}
2828

2929
.no-scrollbar {
30-
-ms-overflow-style: none; /* IE and Edge */
31-
scrollbar-width: none; /* Firefox */
30+
-ms-overflow-style: none;
31+
/* IE and Edge */
32+
scrollbar-width: none;
33+
/* Firefox */
3234
}
3335

3436
/* https://stackoverflow.com/questions/61083813/how-to-avoid-internal-autofill-selected-style-to-be-applied */
@@ -48,9 +50,11 @@ input:-webkit-autofill:focus {
4850
margin-left: -24px;
4951
padding-right: 4px;
5052
}
53+
5154
.content-header {
5255
color: rgb(194, 193, 193);
5356
}
57+
5458
.content-header:hover .content-header-link,
5559
.content-header-link:hover {
5660
opacity: 1;
@@ -64,10 +68,12 @@ input:-webkit-autofill:focus {
6468
.gradient {
6569
background-image: linear-gradient(to bottom, #000000, #3d101c, #770c26, #b30025, #eb1212);
6670
}
71+
6772
@keyframes slide {
6873
from {
6974
transform: translateX(0);
7075
}
76+
7177
to {
7278
transform: translateX(-50%);
7379
}
@@ -151,6 +157,7 @@ input:-webkit-autofill:focus {
151157
transform: scale(2);
152158
transition-duration: 0.3s;
153159
}
160+
154161
/* From Uiverse.io by qhns3 */
155162
.background-pattern {
156163
width: 100%;
@@ -165,17 +172,21 @@ input:-webkit-autofill:focus {
165172
--color: rgba(255, 255, 255, 0.2);
166173

167174
background-image:
168-
linear-gradient(
169-
-90deg,
175+
linear-gradient(-90deg,
170176
transparent calc(var(--gap) - var(--line)),
171177
var(--color) calc(var(--gap) - var(--line) + 1px),
172-
var(--color) var(--gap)
173-
),
174-
linear-gradient(
175-
0deg,
178+
var(--color) var(--gap)),
179+
linear-gradient(0deg,
176180
transparent calc(var(--gap) - var(--line)),
177181
var(--color) calc(var(--gap) - var(--line) + 1px),
178-
var(--color) var(--gap)
179-
);
182+
var(--color) var(--gap));
180183
background-size: var(--gap) var(--gap);
181184
}
185+
186+
strong {
187+
color: rgb(232, 232, 232) !important;
188+
}
189+
190+
blockquote {
191+
color: rgb(255, 0, 0) !important;
192+
}

0 commit comments

Comments
 (0)