Skip to content

Commit

Permalink
make stuff clearer
Browse files Browse the repository at this point in the history
  • Loading branch information
Kampouse committed Dec 22, 2024
1 parent c538a1f commit cca0afd
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 12 deletions.
14 changes: 9 additions & 5 deletions src/components/header/Mainheader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,10 @@ export default component$(() => {
const session = useSession();
//eslint-disable-next-line
useVisibleTask$(() => {
if (document.location.host.includes("study-hack.vercel.app")) {
if (
document.location.host.includes("study-hack.vercel.app") ||
document.location.host.includes("justrnd.com")
) {
posthog.init("phc_4TyE0DMk3m3zjsaAxXOKlPZAGeqBuuGrVxfTDUQCK74", {
api_host: "https://us.i.posthog.com",
capture_heatmaps: true,
Expand Down Expand Up @@ -54,15 +57,15 @@ export default component$(() => {
href={session.value ? "/home" : "/landing"}
class="hidden bg-gradient-to-r from-black to-gray-600 bg-clip-text p-4 text-2xl font-bold text-transparent transition-opacity hover:opacity-80 md:inline-block"
>
<h1 class="inline-block">{"S & H"} </h1>
<h1 class="inline-block">{"R <&> D"} </h1>
</Link>

{location.url.pathname === "/home" && (
<Link
href="/new"
class="rounded-full bg-black px-4 py-2 text-white transition-colors hover:bg-gray-800 md:hidden"
>
New
new Session
</Link>
)}
{session.value && (
Expand Down Expand Up @@ -93,19 +96,20 @@ export default component$(() => {
href="/new"
class="hidden rounded-full bg-black px-4 py-2 text-white transition-colors hover:bg-gray-800 md:block"
>
New
New Session
</Link>
</div>
) : (
<Link
href={backSignal.value || "/home"}
href="/home"
class="hidden rounded-full bg-black px-3 py-2 text-white transition-colors hover:bg-gray-800 md:block"
>
<ArrowLeftIcon size={24} />
</Link>
)}
{location.url.pathname !== "/profile" && (
<Link
prefetch="js"
href="/profile"
class="rounded-full bg-black px-4 py-2 text-white transition-colors hover:bg-gray-800"
>
Expand Down
12 changes: 6 additions & 6 deletions src/routes/(app)/home/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export const useEvents = routeLoader$(async (event) => {
limit: 1000,
},
});
return data
return data;
});
export const usePlaces = routeLoader$(async (event) => {
const client = await drizzler(event);
Expand Down Expand Up @@ -67,20 +67,20 @@ export default component$(() => {
const placeSignal = useSignal(placesData);
return (
<div class=" flex h-full flex-col justify-start md:pb-12 ">
<div class=" py-2 md:px-2 ">
<h1 class="px-2 text-3xl font-medium md:px-0 ">Community</h1>
<div class=" px-5 py-2 md:px-2 ">
<h1 class="px-2 text-3xl font-medium md:px-0 "> upcoming Sessions</h1>
<p class="text-md px-2 font-thin text-black md:px-0">
{" "}
See who active this week
Find the best co-working spaces and groups near you
</p>
</div>
<div class="flex flex-col gap-5 md:gap-2 lg:grid lg:h-[52em] lg:grid-cols-5 xl:h-fit px-5 md:px-0">
<div class="flex flex-col gap-5 px-5 md:gap-2 md:px-0 lg:grid lg:h-[52em] lg:grid-cols-5 xl:h-fit">
<div class="order-2 row-span-1 h-fit rounded-full px-2 lg:order-1 lg:col-span-3 lg:pl-2">
<Leaflet popups={placeSignal} />
</div>
<div class="order-1 row-span-1 rounded-xl lg:order-2 lg:col-span-2">
{events.value.data && events.value.data.length > 0 ? (
<div class="grid max-h-[47rem] gap-2 overflow-y-auto md:px-2 md:grid-cols-2 lg:grid-cols-2 lg:gap-2">
<div class="grid max-h-[47rem] gap-2 overflow-y-auto md:grid-cols-2 md:px-2 lg:grid-cols-2 lg:gap-2">
{events.value.data.map((ev) => (
<EventCard
link={
Expand Down
2 changes: 1 addition & 1 deletion src/routes/(app)/new/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ export default component$(() => {
return (
<div class="m-4 mx-auto max-w-4xl overflow-hidden rounded-xl border bg-white shadow-lg">
<h1 class="p-8 pb-0 text-3xl font-bold text-gray-800">
Create your Event
Create your Session
</h1>
<div class="p-8">
<p class="mb-6 text-gray-600">Add details and create your event</p>
Expand Down

0 comments on commit cca0afd

Please sign in to comment.