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=1696657537; bh=Ewl35dJMSTlYUkFGpGn/TFhPUAfFcw1QXeHCi2Sal40=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=AX5bscsj5B3MxfGqQdHwzcc32bibZgCDTqhpNOJF8/ogIjOOrh1gDwnC0xZyP54T0 A3ivgUwR3Uz+fY3GbWiAwJ3B+AwlNQeTeCMI/0i9TYMhIMqRgY5TkJ13AUGZDQ/Gi4 Ss7aFv4hMj5tKgAZzt6zf6z3S5J8t8ySl13LGladhxJVmetvhBD0hdXSdi1Jb4ued8 MI8AAuy98EEMNgWUxDy2YiH+ng3TXafc/u0SHdk0eLFCaW8kXXBkJ6Fjd7vSqs1I3x 9EykD3ir7lbU+toezGMqHLkFVnQsODkiszM5hZkh8ZDccwnW1Xm8BnN/zD6jxdWyOB utvrOZ5IgrgtA== Received: from localhost.localdomain (unknown [175.158.50.50]) by gnuweeb.org (Postfix) with ESMTPSA id 9554624B99E; Sat, 7 Oct 2023 12:45: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 v2 12/14] feat(routes/page): add +page.svelte Date: Sat, 7 Oct 2023 12:44:44 +0700 Message-Id: <20231007054446.1204-13-kiizuha@gnuweeb.org> X-Mailer: git-send-email 2.34.1.windows.1 In-Reply-To: <20231007054446.1204-1-kiizuha@gnuweeb.org> References: <20231007054446.1204-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