Skip to content

Commit 1dbbcdd

Browse files
Merge pull request #217 from SharizHussain/feature/ResponsiveSolved
Hero buttons responsive bug fixed and repo-card also
2 parents e480904 + 9a5aceb commit 1dbbcdd

File tree

6 files changed

+11
-10
lines changed

6 files changed

+11
-10
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
/node_modules
55
/.pnp
66
.pnp.js
7+
package-lock.json
78

89
# testing
910
/coverage

.xata/version/compatibility.json

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"@xata.io/cli":{"latest":"0.16.11","compatibility":[{"range":">=0.0.0"}]},"@xata.io/client":{"latest":"0.30.1","compatibility":[{"range":">=0.0.0"}]}}

src/app/(public)/_components/button.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ export function Button({
1111
...props
1212
}: PropsWithChildren<ButtonProps>) {
1313
return (
14-
<div className="relative inline-block m-3 group w-fit">
14+
<div className="relative inline-block group w-fit">
1515
<button
1616
className={cn(
17-
'bg-hacktoberfest-black hover:bg-hacktoberfest-dark-green btn btn-lg text-hacktoberfest-light rounded-2xl leading-none border-none',
17+
'bg-hacktoberfest-black m-1 hover:bg-hacktoberfest-dark-green btn btn-lg text-hacktoberfest-light rounded-2xl leading-none border-none',
1818
className
1919
)}
2020
{...props}

src/app/(public)/_components/header.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export async function Header() {
2626

2727
<div className="flex gap-2 lg:ml-40">
2828
<form action={session ? signOutAction : signInAction}>
29-
<button className="text-white border-white btn btn-ghost border-1">
29+
<button className="text-white border-white btn btn-ghost border-1 ms-4">
3030
{session && session.user ? 'Sign Out' : 'Sign In'}
3131
</button>
3232
</form>

src/app/(public)/repos/[language]/_components/repo-card.tsx

+4-5
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export function RepoCard({ repo }: RepoCardProps) {
3131
const hasMoreTopics = sortedTopics.length > MAX_TOPICS_DISPLAY;
3232

3333
return (
34-
<section className="transition duration-300 shadow-sm card bg-hacktoberfest-black ring-1 ring-hacktoberfest-light-pink hover:scale-105 hover:shadow-2xl hover:shadow-hacktoberfest-deep-pink h-96">
34+
<section className="transition duration-300 shadow-sm card bg-hacktoberfest-black ring-1 ring-hacktoberfest-light-pink hover:scale-105 hover:shadow-2xl hover:shadow-hacktoberfest-deep-pink h-125">
3535
<div className="relative p-6 card-body">
3636
<div className="flex-1">
3737
<div className="flex items-center gap-2">
@@ -82,11 +82,10 @@ export function RepoCard({ repo }: RepoCardProps) {
8282
href={`https://github.com/topics/${topic}`}
8383
target="_blank"
8484
rel="noreferrer"
85-
className={`badge inline px-3 py-0.5 h-auto ${
86-
topic === 'hacktoberfest'
85+
className={`badge inline px-3 py-0.5 h-auto ${topic === 'hacktoberfest'
8786
? 'bg-hacktoberfest-light-green text-hacktoberfest-dark-green'
8887
: 'bg-hacktoberfest-deep-pink text-hacktoberfest-light-pink'
89-
}`}
88+
}`}
9089
>
9190
{topic}
9291
</a>
@@ -98,7 +97,7 @@ export function RepoCard({ repo }: RepoCardProps) {
9897
</div>
9998

10099
{/* stars and forks cards */}
101-
<div className="flex flex-wrap justify-between gap-4 mt-8 cursor-pointer container-query text-neutral-100">
100+
<div className="flex flex-wrap justify-between mt-8 gap-4 cursor-pointer container-query text-neutral-100">
102101
<a
103102
href={`${repo.html_url}/stargazers?ref=finder.usmans.me`}
104103
target="_blank"

src/env.mjs

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ export const env = createEnv({
1111
AUTH_GITHUB_TOKEN: z.string().optional()
1212
},
1313
client: {
14-
NEXT_PUBLIC_CLOUDINARY_CLOUD_NAME: z.string().optional(),
15-
NEXT_PUBLIC_ANALYTICS_WEBSITE_ID: z.string().uuid().optional()
14+
NEXT_PUBLIC_CLOUDINARY_CLOUD_NAME: z.string().optional().nullable(),
15+
NEXT_PUBLIC_ANALYTICS_WEBSITE_ID: z.string().uuid().optional().nullable(),
1616
},
1717
experimental__runtimeEnv: {
1818
NEXT_PUBLIC_CLOUDINARY_CLOUD_NAME:

0 commit comments

Comments
 (0)