Skip to content
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

Reducing margins in Organization Grid and README update #202

Draft
wants to merge 5 commits into
base: develop
Choose a base branch
from
Draft
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
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,9 @@ $$;
<details>
<summary>Enums</summary><br />

Currently, drizzle does not automatically create enums for you. You will have to create them manually. This [link](https://orm.drizzle.team/docs/column-types/pg#enum) should give you a good idea of how to create enums in postgres.
Run the following command to create the proper enums:

CREATE TYPE platform AS ENUM ('discord', 'youtube', 'twitch', 'facebook', 'twitter', 'instagram', 'website', 'email', 'other');

</details> </br>

Expand Down
4 changes: 2 additions & 2 deletions src/components/DirectoryOrgs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const OrgDirectoryCards: FC<Props> = ({ club, session, priority }) => {
const name =
club.name.length > 20 ? club.name.slice(0, 30) + '...' : club.name;
return (
<div className="flex h-full min-h-[400px] min-w-[300px] max-w-xs flex-col justify-between rounded-lg bg-white shadow-lg md:min-h-[600px]">
<div className="flex h-full min-h-[400px] min-w-[300px] max-w-xs flex-col justify-between rounded-lg bg-white shadow-lg lg:min-h-[500px]">
<div className="relative h-48 overflow-hidden rounded-t-lg sm:h-56 md:h-64 lg:h-72">
<Image
src={club.profileImage ? club.profileImage : club.image}
Expand All @@ -31,7 +31,7 @@ const OrgDirectoryCards: FC<Props> = ({ club, session, priority }) => {
</button>
</div>
</div>
<div className="flex flex-col space-y-2 p-6">
<div className="flex flex-col space-y-2 px-8 pt-8">
<h1 className="line-clamp-1 text-2xl font-medium text-slate-800 md:text-xl">
{name}
</h1>
Expand Down
2 changes: 1 addition & 1 deletion src/components/OrgDirectoryGrid.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const OrgDirectoryGrid: FC<Props> = async ({ tag }) => {
const session = await getServerAuthSession();

return (
<div className="grid w-full auto-rows-fr grid-cols-[repeat(auto-fill,320px)] justify-center gap-16 pb-4">
<div className="grid w-full auto-rows-fr grid-cols-[repeat(auto-fill,320 px)] lg:grid-cols-[repeat(auto-fill,290px)] justify-center gap-x-8 gap-y-6">
{clubs.map((club) => (
<DirectoryOrgs key={club.id} club={club} session={session} priority />
))}
Expand Down