Skip to content

Hero buttons responsive bug fixed and repo-card also #217

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
/node_modules
/.pnp
.pnp.js
package-lock.json

# testing
/coverage
Expand Down
1 change: 1 addition & 0 deletions .xata/version/compatibility.json
Original file line number Diff line number Diff line change
@@ -0,0 +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"}]}}
4 changes: 2 additions & 2 deletions src/app/(public)/_components/button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ export function Button({
...props
}: PropsWithChildren<ButtonProps>) {
return (
<div className="relative inline-block m-3 group w-fit">
<div className="relative inline-block group w-fit">
<button
className={cn(
'bg-hacktoberfest-black hover:bg-hacktoberfest-dark-green btn btn-lg text-hacktoberfest-light rounded-2xl leading-none border-none',
'bg-hacktoberfest-black m-1 hover:bg-hacktoberfest-dark-green btn btn-lg text-hacktoberfest-light rounded-2xl leading-none border-none',
className
)}
{...props}
Expand Down
2 changes: 1 addition & 1 deletion src/app/(public)/_components/header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export async function Header() {

<div className="flex gap-2 lg:ml-40">
<form action={session ? signOutAction : signInAction}>
<button className="text-white border-white btn btn-ghost border-1">
<button className="text-white border-white btn btn-ghost border-1 ms-4">
{session && session.user ? 'Sign Out' : 'Sign In'}
</button>
</form>
Expand Down
9 changes: 4 additions & 5 deletions src/app/(public)/repos/[language]/_components/repo-card.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export function RepoCard({ repo }: RepoCardProps) {
const hasMoreTopics = sortedTopics.length > MAX_TOPICS_DISPLAY;

return (
<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">
<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">
<div className="relative p-6 card-body">
<div className="flex-1">
<div className="flex items-center gap-2">
Expand Down Expand Up @@ -82,11 +82,10 @@ export function RepoCard({ repo }: RepoCardProps) {
href={`https://github.com/topics/${topic}`}
target="_blank"
rel="noreferrer"
className={`badge inline px-3 py-0.5 h-auto ${
topic === 'hacktoberfest'
className={`badge inline px-3 py-0.5 h-auto ${topic === 'hacktoberfest'
? 'bg-hacktoberfest-light-green text-hacktoberfest-dark-green'
: 'bg-hacktoberfest-deep-pink text-hacktoberfest-light-pink'
}`}
}`}
>
{topic}
</a>
Expand All @@ -98,7 +97,7 @@ export function RepoCard({ repo }: RepoCardProps) {
</div>

{/* stars and forks cards */}
<div className="flex flex-wrap justify-between gap-4 mt-8 cursor-pointer container-query text-neutral-100">
<div className="flex flex-wrap justify-between mt-8 gap-4 cursor-pointer container-query text-neutral-100">
<a
href={`${repo.html_url}/stargazers?ref=finder.usmans.me`}
target="_blank"
Expand Down
4 changes: 2 additions & 2 deletions src/env.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ export const env = createEnv({
AUTH_GITHUB_TOKEN: z.string().optional()
},
client: {
NEXT_PUBLIC_CLOUDINARY_CLOUD_NAME: z.string().optional(),
NEXT_PUBLIC_ANALYTICS_WEBSITE_ID: z.string().uuid().optional()
NEXT_PUBLIC_CLOUDINARY_CLOUD_NAME: z.string().optional().nullable(),
NEXT_PUBLIC_ANALYTICS_WEBSITE_ID: z.string().uuid().optional().nullable(),
},
experimental__runtimeEnv: {
NEXT_PUBLIC_CLOUDINARY_CLOUD_NAME:
Expand Down
Loading