Skip to content

Commit 515f95c

Browse files
community page bug fixes and responsive issues in several pages
1 parent 290e4de commit 515f95c

File tree

9 files changed

+37
-38
lines changed

9 files changed

+37
-38
lines changed

components/Card.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ const CardBody = ({
3131
large: 'text-[1.5rem]',
3232
};
3333
return (
34-
<div className='group relative h-full w-full max-w-lg rounded-lg border border-gray-200 bg-white p-6 px-12 shadow-3xl dark:shadow-2xl dark:shadow-slate-900 transition-colors delay-[150ms] ease-in-out hover:bg-slate-100 dark:bg-slate-800 hover:dark:bg-slate-900/30'>
34+
<div className='group relative h-full w-full max-w-md rounded-lg border border-gray-200 bg-white p-6 px-12 shadow-3xl dark:shadow-2xl dark:shadow-slate-900 transition-colors ease-in-out hover:bg-slate-100 dark:bg-slate-800 hover:dark:bg-slate-900/30'>
3535
<div className='flex justify-center '>
3636
{image && <img src={image} className='h-32 p-2' />}
3737
</div>

components/Faq.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export default function Faq({ category }: { category: string }) {
77

88
return (
99
<section>
10-
<div className='max-w-screen-md mx-auto p-8 pl-0 ml-0'>
10+
<div className='max-w-screen-md mx-auto p-8 px-0 ml-0'>
1111
<h2 className='text-2xl font-bold text-[24px] mb-4'>
1212
{category.toUpperCase()}
1313
</h2>

data/community.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
},
5757
{
5858
"id": "item-2",
59-
"img": "./img/contributers/dairya.jpeg",
59+
"img": "./img/contributers/dhairya.jpeg",
6060
"alt": "dhairya"
6161
},
6262
{

pages/community/index.page.tsx

+8-9
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ export const getStaticProps: GetStaticProps = async () => {
4141
})
4242
.slice(0, 5);
4343

44-
// Function to fetch the remote iCal file
4544
async function fetchRemoteICalFile(url: string) {
4645
try {
4746
const response = await axios.get(url, { method: 'no-cors' });
@@ -166,17 +165,17 @@ export default function communityPages(props: any) {
166165
data-testid='Header-hero-heading'
167166
>
168167
<div className='mt-8' data-testid='Header-heading-1'>
169-
<h2 className='text-h3mobile md:text-h3 font-bold px-4 items-center text-center'>
168+
<h2 className='text-[2.5rem] max-sm:text-[2rem] font-bold px-4 items-center text-center'>
170169
Welcome to the
171170
<br />
172171
JSON Schema Community
173172
</h2>
174173
</div>
175174
<div className='mt-5 w-5/6' data-testid='Header-heading-2'>
176-
<h2 className='text-gray-700 text-sm font-heading dark:text-slate-100 text-body-md tracking-body font-regular '>
175+
<h2 className='text-gray-700 text-xl max-sm:text-[15px] font-heading dark:text-slate-100 text-body-md tracking-body font-regular '>
177176
Join the Community to learn, share ideas, ask questions, build
178177
JSON Schema tooling, and get involved in the future of the
179-
Spec.
178+
specifications.
180179
</h2>
181180
</div>
182181
<div className='mt-8'>
@@ -210,23 +209,23 @@ export default function communityPages(props: any) {
210209
</div>
211210
</div>
212211
<section className='mt-10'>
213-
<div className='grid grid-cols-1 md:grid-cols-2 gap-4 w-12/12 md:w-11/12 lg:w-10/12 xl:w-10/12 m-auto'>
212+
<div className='grid grid-cols-1 sm:grid-cols-2 gap-4 w-12/12 md:w-11/12 lg:w-10/12 xl:w-10/12 m-auto'>
214213
<Card
215214
key='roadmap'
216215
icon='/icons/roadmap.svg'
217216
title='Roadmap'
218217
body='Explore our exciting plans and upcoming milestones. 🚀'
219218
headerSize='large'
220-
bodyTextSize='small'
219+
bodyTextSize='medium'
221220
link='https://github.com/orgs/json-schema-org/discussions/427'
222221
/>
223222
<Card
224-
key='contributing'
223+
key='contribute'
225224
icon='/icons/contribute.svg'
226-
title='Contributing'
225+
title='Contribute'
227226
body='We are looking forward to working with you. Welcome aboard!'
228227
headerSize='large'
229-
bodyTextSize='small'
228+
bodyTextSize='medium'
230229
link='https://github.com/json-schema-org/.github/blob/main/CONTRIBUTING.md'
231230
/>
232231
</div>

pages/overview/case-studies/index.page.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export default function ContentExample() {
1717
<p className='text-[18px]'>
1818
Learn how organizations are adopting and benefiting from JSON Schema.
1919
</p>
20-
<div className='w-full lg:w-full grid grid-cols-1 md:grid-cols-2 gap-6 my-[10px] mx-auto mt-8'>
20+
<div className='w-full lg:w-full grid grid-cols-1 sm:grid-cols-2 gap-6 my-[10px] mx-auto mt-8'>
2121
{data.map((element, index) => (
2222
<Card
2323
key={index}

pages/overview/use-cases/index.page.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export default function Content() {
2020
the most common use cases for JSON Schema, but the possibilities are
2121
endless.
2222
</p>
23-
<div className='w-full lg:w-full grid grid-cols-1 md:grid-cols-3 gap-6 my-[10px] mx-auto mt-8'>
23+
<div className='w-full lg:w-full grid lg:grid-cols-3 sm:grid-cols-2 grid-cols-1 gap-6 my-[10px] mx-auto mt-8'>
2424
{data.map((element, index) => (
2525
<Card
2626
key={index}

pages/overview/welcome/index.page.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export default function Welcome() {
2020
occaecat fugiat sunt exercitation adipisicing culpa reprehenderit
2121
consectetur amet in. Qui fugiat amet do eu.
2222
</p>
23-
<div className='w-full lg:w-full grid grid-cols-1 md:grid-cols-2 gap-6 my-[10px] mx-auto mt-8'>
23+
<div className='w-full lg:w-full grid grid-cols-1 sm:grid-cols-2 gap-6 my-[10px] mx-auto mt-8'>
2424
{data.map((element: any, index: any) => (
2525
<Card
2626
key={index}

styles/globals.css

+23-23
Original file line numberDiff line numberDiff line change
@@ -63,30 +63,25 @@ border-radius: 4px; */
6363
border: none;
6464
}
6565

66-
67-
.DocSearch-Button {
68-
margin: 0;
69-
width: 39px;
70-
}
71-
66+
.DocSearch-Button {
67+
margin: 0;
68+
width: 39px;
69+
}
7270

7371
.DocSearch-Button-Placeholder {
7472
display: none;
7573
}
7674

75+
.DocSearch-Search-Icon {
76+
width: 20px;
77+
height: 20px;
78+
}
7779

78-
.DocSearch-Search-Icon {
79-
width: 20px;
80-
height: 20px;
81-
}
82-
83-
84-
/* .herobtn .DocSearch-Button-Container {
80+
/* .herobtn .DocSearch-Button-Container {
8581
margin-right: 4px;
8682
margin-left: 4px;
8783
} */
8884

89-
9085
@media (max-width: 450px) {
9186
.DocSearch-Button {
9287
margin: 0;
@@ -104,14 +99,20 @@ border-radius: 4px; */
10499

105100
/** Style Algolia */
106101

107-
.keygrad{
108-
--docsearch-key-gradient: linear-gradient(-225deg, #d5dbe4, #f8f8f8) !important;
102+
.keygrad {
103+
--docsearch-key-gradient: linear-gradient(
104+
-225deg,
105+
#d5dbe4,
106+
#f8f8f8
107+
) !important;
109108
}
110-
.keyshadow{
111-
--docsearch-key-shadow: inset 0 -2px 0 0 #cdcde6,inset 0 0 1px 1px #fff,0 1px 2px 1px rgba(30,35,90,0.4) !important;
109+
.keyshadow {
110+
--docsearch-key-shadow: inset 0 -2px 0 0 #cdcde6, inset 0 0 1px 1px #fff,
111+
0 1px 2px 1px rgba(30, 35, 90, 0.4) !important;
112112
}
113-
.keyshadow[data-theme=dark]{
114-
--docsearch-key-shadow: inset 0 -2px 0 0 #ffffff, inset 0 0 1px 1px #ffffff, 0 2px 2px 0 rgba(3, 4, 9, 0.3) !important;
113+
.keyshadow[data-theme='dark'] {
114+
--docsearch-key-shadow: inset 0 -2px 0 0 #ffffff, inset 0 0 1px 1px #ffffff,
115+
0 2px 2px 0 rgba(3, 4, 9, 0.3) !important;
115116
}
116117

117118
.search-input {
@@ -264,9 +265,8 @@ border-radius: 4px; */
264265
background-color: #fddf4784;
265266
}
266267

267-
@layer base{
268+
@layer base {
268269
body {
269-
@apply dark:bg-slate-800 bg-white;
270+
@apply dark:bg-slate-800 bg-white;
270271
}
271272
}
272-

0 commit comments

Comments
 (0)