From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on gnuweeb.org X-Spam-Level: X-Spam-Status: No, score=-1.2 required=5.0 tests=ALL_TRUSTED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,URIBL_BLOCKED, URIBL_DBL_BLOCKED_OPENDNS autolearn=ham autolearn_force=no version=3.4.6 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gnuweeb.org; s=default; t=1696301556; bh=Ewl35dJMSTlYUkFGpGn/TFhPUAfFcw1QXeHCi2Sal40=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=EQg9frWVnyE1ZulG5erH8oXzERe/tDZGDQWvRtEfi86ClpCfwxU3ftpZUN94MUw84 GuMBvo4GCIxF+tEIkPc4sfZpZXNc9rx9LlLT4vS5NaMnECNS+39SoxOez6vI93QHcL FOom3Vn3YXYO2aynZmGWvs2DH7yDOV+eNGRl4hi6FkzBbMPZVbum3kPpCHP/O7aZ0X sawP30RBDv0EvHi/GSiq5pq3UUPwh9v915W+V1zT2841ZvH0Tg2G/JM7v3cjOajA5d NRTeRj7hzxJiLtX+O9dAW5B0goDKWTTHWUwOqcrsYkyzEJAdd/sN70sWVmoxXXcLuf CTE9iVf9S7hxg== Received: from localhost.localdomain (unknown [175.158.50.50]) by gnuweeb.org (Postfix) with ESMTPSA id 6531724B8D5; Tue, 3 Oct 2023 09:52:35 +0700 (WIB) From: Muhammad Rizki To: Ammar Faizi Cc: Muhammad Rizki , Alviro Iskandar Setiawan , Irvan Malik Azantha , Memet Zx , GNU/Weeb Mailing List Subject: [PATCH v1 11/13] feat(routes/page): add +page.svelte Date: Tue, 3 Oct 2023 09:51:44 +0700 Message-Id: <20231003025146.1557-12-kiizuha@gnuweeb.org> X-Mailer: git-send-email 2.34.1.windows.1 In-Reply-To: <20231003025146.1557-1-kiizuha@gnuweeb.org> References: <20231003025146.1557-1-kiizuha@gnuweeb.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: This commit adds +page.svelte, a file responsible for displaying the main page UI. It loads the fetched data from +page.server.svelte using `export let data;` and then renders it using HTML elements. In this commit, we've included logic to bind innerWidth to manage the screen size for the recent message UI. We use this logic to control the visibility of the recent message UI based on whether the screen size is less than or equal to 1280 pixels or higher. This approach is also applied to the component to handle scroll behavior accordingly. Signed-off-by: Muhammad Rizki --- src/routes/+page.svelte | 259 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 259 insertions(+) create mode 100644 src/routes/+page.svelte diff --git a/src/routes/+page.svelte b/src/routes/+page.svelte new file mode 100644 index 0000000..c00cf0e --- /dev/null +++ b/src/routes/+page.svelte @@ -0,0 +1,259 @@ + + + + +{#if innerWidth >= 1280} + +{/if} + + +
+ + +
+ +
+
+
+ GNU/Weeb's GitHub Profile +
+
+
+ GNU/Weeb +
+ +
+
+
+

About

+

+ We are working to build a community through open source technology. +

+
+ Note:
+ + Members on GitHub must have two-factor auth. + +
+
+
+
+ + + {#if innerWidth < 1280} +
+ +
+ {/if} + + +
+ +
+ + +
+
+

Mailing List

+
+
+
+ + +
+
+
+ + + + +
+ + + + + -- Muhammad Rizki