Skip to content

Commit 9aa1a3a

Browse files
Merge pull request #14 from devlopersabbir/responsiveness
Responsiveness
2 parents 18041e6 + 5f5d843 commit 9aa1a3a

18 files changed

Lines changed: 104 additions & 79 deletions

File tree

.env.exmaple

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# neon tech | supabase
2+
DATABASE_URI=""
3+
4+
# cloudinary
5+
NEXT_PUBLIC_CLOUDINARY_CLOUD_NAME=""
6+
NEXT_PUBLIC_CLOUDINARY_API_KEY=""
7+
CLOUDINARY_API_SECRET=""

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
.pnp.js
55
.yarn/install-state.gz
66
pnpm-lock.yaml
7+
package-lock.json
78

89
# testing
910
/coverage

CONTRIBUTING.md

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,13 @@ pnpm install
3737
cp .env.exmaple .env
3838
```
3939
2. Make your postgresql connection URI and put into your `DATABASE_URI=""`
40-
env variable (**[Prefer to use neon tech](https://neon.tech)**)
41-
3. Generate schema using drizzle kit
40+
env variable (**[Prefer to use neon tech](https://neon.tech)** or **[supabase](https://supabase.com)**)
41+
3. I wish you will create your own cloudinary account to get all informations.
42+
4. Generate schema using drizzle kit
4243
```bash
4344
pnpm generate
4445
```
45-
4. Push your generated `SQL` table
46+
5. Push your generated `SQL` table
4647
```bash
4748
pnpm push
4849
```
@@ -73,6 +74,14 @@ Make sure you have formated your code using this command.
7374
pnpm format
7475
```
7576

77+
## **Do a simple step**
78+
79+
I wish you will make a simple test on your local mechine help of this command.
80+
81+
```bash
82+
pnpm lint
83+
```
84+
7685
## **Commit Your Changes**
7786

7887
You're ready to immortalize your work. Commit your changes to your local branch using this incantation:
@@ -100,4 +109,4 @@ Your spellbinding creation will be reviewed by fellow wizards and witches to ens
100109

101110
## **Merge Your Changes**
102111

103-
When your pull request is blessed by the council of wizards and passes all tests, it can be merged into the main codebase. Congratulations, you've successfully left your mark on devFind! 🪄🔮✨
112+
When your pull request is blessed by the council of wizards and passes all tests, i'll merged into the main codebase. Congratulations, you've successfully left your mark on [finddevs](https://finddevs.vercel.app)! 🪄🔮✨

src/app/layout.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ export default function RootLayout({
3333
suppressHydrationWarning={true}
3434
className={cn(
3535
"relative h-full font-sans antialiased bg-zinc-100 dark:bg-zinc-900",
36-
inter.className
36+
inter.className,
3737
)}
3838
>
3939
<ThemeProvider
@@ -44,7 +44,7 @@ export default function RootLayout({
4444
>
4545
<Toaster />
4646
<main className="relative flex flex-col min-h-scree">
47-
<div className="lg:w-[20rem] lg:fixed lg:left-0 lg:top-0 lg:my-8 lg:px-8 border-r-2 border-gray-200 lg:h-[90vh] z-20 w-[100%]">
47+
<div className="lg:w-[20rem] dark:bg-zinc-900 bg-zinc-100 lg:bg-transparent fixed lg:left-0 lg:top-0 lg:my-8 lg:h-[90vh] p-4 lg:px-4 lg:py-0 border-r-2 border-gray-200 z-20 w-full">
4848
<Sidebar />
4949
</div>
5050
<div className="flex-1 flex-grow w-full">

src/cloud/config.ts

Lines changed: 0 additions & 9 deletions
This file was deleted.

src/cloud/index.ts

Lines changed: 0 additions & 1 deletion
This file was deleted.

src/components/contents/ProfileCard.tsx

Lines changed: 18 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -17,26 +17,26 @@ const ProfileCard = ({
1717
social,
1818
}: TUserSchema) => {
1919
return (
20-
<Card className="w-full backdrop-blur-3xl shadow flex flex-col dark:bg-zinc-700 border-none">
20+
<Card className="w-full backdrop-blur-3xl shadow flex flex-col dark:bg-zinc-700 border-none transition-all ease-out duration-300">
2121
{/* header */}
22-
<CardHeader className="flex justify-between items-stretch flex-row gap-4 overflow-hidden">
23-
<Avatar className="w-24 h-24 object-cover">
22+
<CardHeader className="flex justify-between items-stretch flex-row lg:gap-4 md:gap-2 gap-1 overflow-hidden">
23+
<Avatar className="lg:w-24 md:w-20 w-16 lg:h-24 md:h-20 h-16 object-cover transition-all ease-out duration-300">
2424
<AvatarImage
2525
src={profileImage}
2626
className="object-fill"
2727
alt="profile photo"
2828
/>
2929
<AvatarFallback>{name.substring(0, 2).toUpperCase()}</AvatarFallback>
3030
</Avatar>
31-
<div className="flex-start w-full overflow-hidden flex-col gap-1">
32-
<h2 className="lg:text-2xl font-semibold text-gray-700 dark:text-zinc-200 text-1xl">
31+
<div className="flex-start w-full overflow-hidden flex-col lg:gap-1 gap-0.5">
32+
<h2 className="lg:text-2xl md:text-xl sm:text-lg text-base font-semibold text-gray-700 dark:text-zinc-200 ">
3333
{name}
3434
</h2>
35-
<p className="flex-center gap-2 text-base">
36-
<MapPin size={20} />
35+
<p className="flex-center lg:gap-2 md:gap-1 gap-0 lg:text-xl md:text-lg sm:text-base text-xs">
36+
<MapPin size={16} />
3737
{location}
3838
</p>
39-
<Carousel className="w-full mt-1.5">
39+
<Carousel className="w-full lg:mt-1.5 md:mt-0.5 mt-0">
4040
<CarouselContent
4141
id="skills"
4242
className="flex justify-start items-center"
@@ -45,7 +45,7 @@ const ProfileCard = ({
4545
<CarouselItem key={index} className="w-auto basis-[-29-px]">
4646
<Badge
4747
variant="secondary"
48-
className="text-sm cursor-all-scroll select-none"
48+
className="lg:text-sm text-xs cursor-all-scroll select-none"
4949
>
5050
{sk}
5151
</Badge>
@@ -55,29 +55,23 @@ const ProfileCard = ({
5555
</Carousel>
5656
</div>
5757

58-
<div className="lg:flex-end w-52 hidden">
58+
<div>
5959
<Link
6060
href={portfolio ?? "https://github.com/devlopersabbir"}
61-
className="hover:underline text-green-600 flex-start gap-2"
61+
className="hover:underline text-green-600 flex gap-2 font-semibold"
6262
>
63-
View Profile
64-
<ArrowRight size={20} />
63+
<span className="lg:text-lg md:text-md sm:text-base text-xs">
64+
Profile
65+
</span>
66+
<ArrowRight size={18} />
6567
</Link>
6668
</div>
6769
</CardHeader>
6870

69-
{/* For Tab & Mobile */}
70-
<div className="m-6 w-52 block lg:hidden">
71-
<Link
72-
href={portfolio ?? "https://github.com/devlopersabbir"}
73-
className="hover:underline text-green-600 flex-start gap-2"
74-
>
75-
View Profile
76-
<ArrowRight size={20} />
77-
</Link>
78-
</div>
7971
<CardContent>
80-
<p className="font-serif text-lg">{description}</p>
72+
<p className="font-thin lg:text-lg md:text-base text-xs">
73+
{description}
74+
</p>
8175
<div className="flex-start mt-3 gap-4">
8276
{social?.map((net: TNetwork, i: number) => (
8377
<Link

src/components/contents/ProfileGrid.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ const ProfileGrid = async ({ page, searchParams }: Props) => {
2626
.where(
2727
or(
2828
ilike(users.name, `%${searchParams}%`),
29-
ilike(users.location, `%${searchParams}%`)
30-
)
29+
ilike(users.location, `%${searchParams}%`),
30+
),
3131
)
3232
.limit(itemPerPage)
3333
.offset(offset)
@@ -40,7 +40,7 @@ const ProfileGrid = async ({ page, searchParams }: Props) => {
4040
]);
4141
const count = lengths[0].count;
4242
return (
43-
<div className="lg:mt-32 mb-8 border-t-orange-500 lg:ml-[20rem] lg:px-6 overflow-y-scroll p-5 lg:p-0">
43+
<div className="lg:mt-32 mt-[10rem] mb-8 border-t-orange-500 lg:ml-[20rem] px-4 lg:px-6 overflow-y-scroll relative">
4444
<Search />
4545
<div className="flex-center flex-col gap-3">
4646
{count <= 0 || profiles.length === 0 ? (

src/components/forms/CreateProfile.tsx

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ const CreateProfile = ({
9898
onSubmit={form.handleSubmit(onSubmitHandler)}
9999
className="flex-center flex-col md:flex-row-reverse gap-5 px-5 pb-5"
100100
>
101-
<div className="w-[30%] flex-center flex-col gap-3">
101+
<div className="w-full md:w-[30%] flex-center flex-col gap-3">
102102
<h1 className="text-base font-semibold hidden md:visible">
103103
Upload Profile
104104
</h1>
@@ -142,7 +142,7 @@ const CreateProfile = ({
142142
/>
143143
</div>
144144

145-
<div className="w-[80%] space-y-4">
145+
<div className="w-full md:w-[80%] space-y-4">
146146
<FormField
147147
control={form.control}
148148
name="name"
@@ -178,10 +178,7 @@ const CreateProfile = ({
178178
<FormItem>
179179
<FormLabel className="font-semibold">Portfolio url</FormLabel>
180180
<FormControl>
181-
<Input
182-
placeholder="https://github.com/devlopersabbir"
183-
{...field}
184-
/>
181+
<Input placeholder="https://eample.com" {...field} />
185182
</FormControl>
186183
<FormMessage />
187184
</FormItem>

src/components/forms/SearchProfiles.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ const SearchProfiles = () => {
3434
<SearchIcon
3535
size={30}
3636
className={
37-
"absolute lg:right-10 right-2 cursor-pointer hover:text-red-600 transition-all duration-300"
37+
"absolute right-2 cursor-pointer hover:text-red-600 transition-all duration-300 hidden md:block"
3838
}
3939
/>
4040
</>

0 commit comments

Comments
 (0)