Skip to content

Commit

Permalink
Improvements fixes (#64)
Browse files Browse the repository at this point in the history
* fix(shared): Define keep alive parameters

* fix(frontend): align cards to center
  • Loading branch information
gilsondev authored Oct 18, 2023
1 parent 41a9404 commit 4d45cd1
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 10 deletions.
Binary file added frontend/src/app/apple-icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified frontend/src/app/favicon.ico
Binary file not shown.
Binary file added frontend/src/app/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 2 additions & 4 deletions frontend/src/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,8 @@ export default function Home() {
<DomainProvider>
<Navbar />
<Header />
<div>
<DomainsFilters />
<Domains />
</div>
<DomainsFilters />
<Domains />
</DomainProvider>
);
}
6 changes: 1 addition & 5 deletions frontend/src/components/domains/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,16 +42,12 @@ const Domains = () => {
return (
<>
{!isLoading && (
<main
className="grid grid-cols-1 sm:grid-cols-2 md:grid-cols-1 gap-x-3 mt-10 md:mt-1"
id="domains"
>
<main className="grid grid-cols-1 gap-x-3 mt-10 mx-auto" id="domains">
<div className="lg:my-2 lg:px-4 grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 2xl:grid-cols-4 gap-3">
{domains?.items?.map((domain) => (
<Card key={domain.slug} domain={domain} />
))}
</div>

<div className="flex justify-center px-2 md:px-0 py-5">
<Pagination page={domains.page} totalPages={domains.pages} />
</div>
Expand Down
6 changes: 5 additions & 1 deletion shared/database_ts/src/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,11 @@ export class DatabaseClient {
client: Client;

constructor() {
this.client = new Client(process.env.DATABASE_URL);
this.client = new Client({
connectionString: process.env.DATABASE_URL,
keepAlive: true,
keepAliveInitialDelayMillis: 30000,
});
this.client.connect();
}

Expand Down

0 comments on commit 4d45cd1

Please sign in to comment.