public inbox for [email protected]
 help / color / mirror / Atom feed
* [PATCH: Website v2 0/2] Fix the formating
@ 2023-04-15 14:48 Memet Zx
  2023-04-15 14:48 ` [PATCH: Website v2 1/2] head.php: Fix issue with css/js head section Memet Zx
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Memet Zx @ 2023-04-15 14:48 UTC (permalink / raw)
  To: GNU/Weeb Mailing List; +Cc: Ammar Faizi, Memet Zx

okay, in this v2 patch I've fixed the word-wrap format.

Changes:
>> +Welcome to new website repo for GNU/Weeb. This is a new website for GNU/Weeb. This website is built with pure PHP native and HTML5.

> +Welcome to new website repo for GNU/Weeb. This is a new website for GNU/Weeb.
> +This website is built with pure PHP native and HTML5.

and commit messages for:
- head.php: Fix issue with css/js head section
- README.md: Initialize the information

Thanks :)

Memet Zx (2):
  head.php: Fix issue with css/js head section
  README.md: Initialize the information

 README.md               | 57 +++++++++++++++++++++++++++++++++++++++++
 src/components/head.php | 16 ++++++------
 2 files changed, 65 insertions(+), 8 deletions(-)
 create mode 100644 README.md


base-commit: 562a3dd5c47093c106063f1877e96e266ec0eece
--
Memet Zx

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [PATCH: Website v2 1/2] head.php: Fix issue with css/js head section
  2023-04-15 14:48 [PATCH: Website v2 0/2] Fix the formating Memet Zx
@ 2023-04-15 14:48 ` Memet Zx
  2023-04-15 14:48 ` [PATCH: Website v2 2/2] README.md: Initialize the information Memet Zx
  2023-04-15 14:50 ` [PATCH: Website v2 0/2] Fix the formating Ammar Faizi
  2 siblings, 0 replies; 4+ messages in thread
From: Memet Zx @ 2023-04-15 14:48 UTC (permalink / raw)
  To: GNU/Weeb Mailing List; +Cc: Ammar Faizi, Memet Zx

When visiting a web page that ends with a forward slash `/`,
the associated CSS and JS files may fail to load properly.
This issue can be resolved by adding the `BASE_URL` to the links used to
call the CSS and JS files.
By doing so, the browser will be able to locate and load the required
resources, ensuring that the web page displays correctly.

Signed-off-by: Memet Zx <[email protected]>
---
 src/components/head.php | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

diff --git a/src/components/head.php b/src/components/head.php
index 4a5c238..f443eaa 100644
--- a/src/components/head.php
+++ b/src/components/head.php
@@ -1,10 +1,10 @@
 <head>
-<meta charset="utf-8">
-<meta name="viewport" content="width=device-width, initial-scale=1.0">
-<title><?= e($opt["title"] ?? "") ?> - <?= e(APP_TITLE); ?></title>
-<?php require __DIR__."/meta.php"; ?>
-<!-- styles -->
-<link rel="stylesheet" href="assets/css/style.css">
-<!-- script -->
-<script async type="module" src="assets/js/turbo.js"></script>
+    <meta charset="utf-8">
+    <meta name="viewport" content="width=device-width, initial-scale=1.0">
+    <title><?= e($opt["title"] ?? "") ?> - <?= e(APP_TITLE); ?></title>
+    <?php require __DIR__ . "/meta.php"; ?>
+    <!-- styles -->
+    <link rel="stylesheet" href="<?= e(BASEURL); ?>/assets/css/style.css">
+    <!-- script -->
+    <script async type="module" src="<?= e(BASEURL); ?>/assets/js/turbo.js"></script>
 </head>
-- 
Memet Zx


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [PATCH: Website v2 2/2] README.md: Initialize the information
  2023-04-15 14:48 [PATCH: Website v2 0/2] Fix the formating Memet Zx
  2023-04-15 14:48 ` [PATCH: Website v2 1/2] head.php: Fix issue with css/js head section Memet Zx
@ 2023-04-15 14:48 ` Memet Zx
  2023-04-15 14:50 ` [PATCH: Website v2 0/2] Fix the formating Ammar Faizi
  2 siblings, 0 replies; 4+ messages in thread
From: Memet Zx @ 2023-04-15 14:48 UTC (permalink / raw)
  To: GNU/Weeb Mailing List; +Cc: Ammar Faizi, Memet Zx

The README.md file provides important information about the project,
including its purpose, how to install and run it, and any dependencies
or requirements.
This file will help other developers understand the project and
contribute to it more easily.
Additionally, it will serve as a reference for future development and
maintenance tasks.

Signed-off-by: Memet Zx <[email protected]>
---
 README.md | 57 +++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 57 insertions(+)
 create mode 100644 README.md

diff --git a/README.md b/README.md
new file mode 100644
index 0000000..349167a
--- /dev/null
+++ b/README.md
@@ -0,0 +1,57 @@
+# GNU/Weeb Website
+
+Build comunity through Open Source technology.
+
+Welcome to new website repo for GNU/Weeb. This is a new website for GNU/Weeb.
+This website is built with pure PHP native and HTML5.
+
+## How to contribute
+
+You can contribute to this website by forking this repo and make a pull request.
+You can also contribute by opening an issue.
+
+## Installation
+
+- Clone this repo.
+- `cd` into the root directory.
+- copy `config.example.php` to `config.php` and edit it.
+- and run this command:
+
+    ```bash
+    php -S localhost:8000 -t public public/index.php
+    ```
+
+- Open your browser and go to `localhost:8000`
+
+## Configuration
+
+default configuration is:
+
+```php
+<?php
+
+define("BASEURL", "http://127.0.0.1:8000");
+define("LOGS_DIR", __DIR__."/logs");
+define("PUBLIC_DIR", __DIR__."/public");
+define("APP_TITLE", "The GNU/Weeb Website");
+```
+
+you can call the `config` like this:
+
+```php
+<title><?= e(APP_TITLE); ?></title>
+```
+
+### Custom config
+
+you can made a custom config for each page for example:
+
+```php
+<?php
+
+$opt["type"] = "Something";
+
+?>
+```
+
+and call it with `<?= e($opt["type"] ?? "") ?>`
-- 
Memet Zx


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH: Website v2 0/2] Fix the formating
  2023-04-15 14:48 [PATCH: Website v2 0/2] Fix the formating Memet Zx
  2023-04-15 14:48 ` [PATCH: Website v2 1/2] head.php: Fix issue with css/js head section Memet Zx
  2023-04-15 14:48 ` [PATCH: Website v2 2/2] README.md: Initialize the information Memet Zx
@ 2023-04-15 14:50 ` Ammar Faizi
  2 siblings, 0 replies; 4+ messages in thread
From: Ammar Faizi @ 2023-04-15 14:50 UTC (permalink / raw)
  To: GNU/Weeb Mailing List, Memet Zx; +Cc: Ammar Faizi

On Sat, 15 Apr 2023 21:48:03 +0700, Memet Zx wrote:
> okay, in this v2 patch I've fixed the word-wrap format.
> 
> Changes:
> >> +Welcome to new website repo for GNU/Weeb. This is a new website for GNU/Weeb. This website is built with pure PHP native and HTML5.
> 
> > +Welcome to new website repo for GNU/Weeb. This is a new website for GNU/Weeb.
> > +This website is built with pure PHP native and HTML5.
> 
> [...]

Applied, thanks!

[1/2] head.php: Fix issue with css/js head section
      commit: e4b377b16ce32f60a7f17d0b08d09599d2af171b
[2/2] README.md: Initialize the information
      commit: cbfe065da56233b9ad162d7d60c1b40731c5e9ed

Best regards,
-- 
Ammar Faizi


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2023-04-15 14:50 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-04-15 14:48 [PATCH: Website v2 0/2] Fix the formating Memet Zx
2023-04-15 14:48 ` [PATCH: Website v2 1/2] head.php: Fix issue with css/js head section Memet Zx
2023-04-15 14:48 ` [PATCH: Website v2 2/2] README.md: Initialize the information Memet Zx
2023-04-15 14:50 ` [PATCH: Website v2 0/2] Fix the formating Ammar Faizi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox