aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFChannel0 <77419041+FChannel0@users.noreply.github.com>2021-07-04 10:47:22 -0700
committerGitHub <noreply@github.com>2021-07-04 10:47:22 -0700
commitb37a9179c5d0a4e8ad348eb79f9c9cef691a7d3f (patch)
tree4b54287214e666fb53c3d3fd650cc1b6fda0d455
parent2d06abf5049e67e05c068461908c492f43ff4026 (diff)
parent68ad1d59f7fdf1a572da45060a9480079241031d (diff)
Merge pull request #33 from the-sageman/faq-and-rules
Improve the static pages a bit
-rw-r--r--client.go1
-rw-r--r--static/anews.html6
-rw-r--r--static/faq.html59
-rw-r--r--static/index.html8
-rw-r--r--static/main.html2
-rw-r--r--static/news.html6
-rw-r--r--static/rules.html6
7 files changed, 54 insertions, 34 deletions
diff --git a/client.go b/client.go
index 8cb9004..39ecd29 100644
--- a/client.go
+++ b/client.go
@@ -94,7 +94,6 @@ func IndexGet(w http.ResponseWriter, r *http.Request, db *sql.DB) {
var data PageData
data.Title = "Welcome to " + actor.PreferredUsername
-
data.PreferredUsername = actor.PreferredUsername
data.Boards = Boards
data.Board.Name = ""
diff --git a/static/anews.html b/static/anews.html
index 08bfdfa..5ebe1cc 100644
--- a/static/anews.html
+++ b/static/anews.html
@@ -1,6 +1,6 @@
{{ define "header" }}
<title>{{ .Title }}</title>
-<meta name="description" content="{{ .PreferredUsername }} is a federated image board based on activitypub. The current version of the code running the server is still a work in progress, expect a bumpy ride for the time being. Get the server code here: https://github.com/FChannel0.">
+<meta name="description" content="{{ .PreferredUsername }} is a federated image board based on ActivityPub. The current version of the code running on the server is still a work-in-progress product, expect a bumpy ride for the time being. Get the server code here: https://github.com/FChannel0.">
<meta property="og:locale" content="en_US" />
<meta property="og:type" content="website" />
@@ -8,10 +8,10 @@
<meta property="og:site_name" content="{{ .Board.Actor.PreferredUsername }}" />
<meta property="og:title" content="{{ .Title }}">
-<meta property="og:description" content="{{ .PreferredUsername }} is a federated image board based on activitypub. The current version of the code running the server is still a work in progress, expect a bumpy ride for the time being. Get the server code here: https://github.com/FChannel0.">
+<meta property="og:description" content="{{ .PreferredUsername }} is a federated image board based on ActivityPub. The current version of the code running on the server is still a work-in-progress product, expect a bumpy ride for the time being. Get the server code here: https://github.com/FChannel0.">
<meta name="twitter:title" content="{{ .Title }}">
-<meta name="twitter:description" content="{{ .PreferredUsername }} is a federated image board based on activitypub. The current version of the code running the server is still a work in progress, expect a bumpy ride for the time being. Get the server code here: https://github.com/FChannel0.">
+<meta name="twitter:description" content="{{ .PreferredUsername }} is a federated image board based on ActivityPub. The current version of the code running on the server is still a work-in-progress product, expect a bumpy ride for the time being. Get the server code here: https://github.com/FChannel0.">
<meta name="twitter:card" content="summary_large_image">
{{ end }}
diff --git a/static/faq.html b/static/faq.html
index 917425d..9313360 100644
--- a/static/faq.html
+++ b/static/faq.html
@@ -9,39 +9,60 @@
<a href="javascript:history.back()">[Back]</a>
<h1 style="text-align: center;">FAQ</h1>
<div>
- <h4>What is fchan</h4>
- <p>fchan short for fchannel and is a federated image board based on activity pub. it removes the need for centeralized boards. many boards can be connected and feeds shared or followed. it draws likeness from other chans for ease of familiarity. you can get the source code here https://github.com/FChannel0 and modify how you choose, any help is appreciated.</p>
+ <h4>What is fchan?</h4>
+ <p>fchan, short for fchannel, is a federated image board based on <a href="https://activitypub.rocks/">ActivityPub</a>, a protocol which allows social sites like social media and image boards to be decentralized. Boards across sites which are on the opposite sides of the Globe can be connected and feeds can be shared or followed. It strives to be familiar looking to regular *chan users.</p><p> You can get the source code on <a href="https://github.com/FChannel0">https://github.com/FChannel0</a> which is available under <a href="https://en.wikipedia.org/wiki/Affero_General_Public_License">AGPLv3</a>, which means that you can modify the source code of fchan however you like as long as you share your source code with everyone else. We appreciate and encourage any positive contributions to the source code!</p>
- <h4 id="options">Options</h4>
- <p>the options field when posting can be used for special options when posting. type noko in the options field to return to the thread you posting to. use sage to ignore updating the thread bump order. nokosage will do both.</p>
+ <h4 id="options">What are the "Options" used for when posting?</h4>
+ <p>The "Options" field can be used for special options when posting.</p>
+ <ul>
+ <li>Type <span style="font-weight: bold;">"noko"</span> in the options field if you want to stay on the thread you are about to post on.</li>
+ <li>Type <span style="font-weight: bold;">"sage"</span> to not bump the thread, meaning that if will not show up on the front page of the board, that you are replying to.</li>
+ <li>Typing in <span style="font-weight: bold;">"nokosage"</span> will do both actions as described above.</li>
+ </ul>
+ <h4 id="tripcode">What is a "tripcode"?</h4>
+ <p>A tripcode is a way to uniquely identify yourself on an imageboard. This is the closest you will get to registering. There are two kinds of tripcodes that can identify yourself with, however, it's recommended that you use secure tripcodes only if you take your identification number seriously.</p>
+ <ul>
+ <li><span style="font-weight: bold;">Secure tripcode:</span> Type in your name in the "Name" field, and then a double hash mark (##) which is followed by a password. So for example, typing in <span style="font-weight: bold;">moot##faggot</span> in the "Name" field will result in <span style="color:#117743"><span style="font-weight: bold;">moot</span> !!IefQUZVu/1</span></li>
+ <li><span style="font-weight: bold;">Regular tripcode:</span> Type in your name in the "Name" field, and then a hash mark (#) which is followed by a password. So for example, typing in <span style="font-weight: bold;">moot#faggot</span> in the "Name" field will result in <span style="color:#117743"><span style="font-weight: bold;">moot</span> !UcVghOVf01</span></li>
+ </ul> a by adding a hash mark (#) after your name followed by your unique identifying string, example anon#myunique.</p>
- <h4 id="tripcode">Tripcode</h4>
- <p>you can identify yourself with a tripcode by adding a hash mark (#) after your name followed by your unique identifying string, example anon#myunique.</p>
+ <h4 id="quote">How do I quote?</h4>
+ <p>Use the greater-than symbol (>) to quote strings of text. Use double (>>) followed by the URL id of the post you are referencing or click on the unique ID of the post (for example, FIDV40Q2) if you want to reference a post (keep in mind that this will be changed later for better use).</p>
- <h4 id="quote">Quote</h4>
- <p>use a greater than symbols (>) to quote strings of text. use double (>>) followed by the url id of the post you are referencing (this will be changed later for better use).</p>
+ <h4 id="link">How do I view an entire thread?</h4>
+ <p>Click the "No." next to the post to view its thread.</p>
- <h4 id="link">No. Link</h4>
- <p>click on "No." next to a post to view its thread.</p>
+ <h4 id="upload">What kind of files can I upload?</h4>
+ <p>The maximum file size is 7 MiB (mebibyte). The supported file types are:</p>
+ <ul>
+ <li>.GIF: "image/gif"</li>
+ <li>.PNG, (animated) .PNG: "image/png", "image/apng"</li>
+ <li>.JPG: "image/jpeg"</li>
+ <li>.WEBP: "image/webp"</li>
+ <li>.MP4: "image/mp4"</li>
+ <li>.WEBM: "image/webm"</li>
+ <li>.OGG: "image/ogg"</li>
+ <li>.MP2, .MP3: "audio/mpeg"</li>
+ <li>.WAV: "audio/wav", "audio/wave", "audio/x-wav"</li>
+ </ul>
- <h4 id="upload">Uploading files</h4>
- <p>max file size is 7MB. the supported file types are "image/gif","image/jpeg","image/png","image/webp","image/apng","video/mp4","video/ogg","video/webm","audio/mpeg","audio/ogg","audio/wav","audio/wave","audio/x-wav". these were choosen based on browser support for embeding.</p>
+ <h4 id="javascript">Why use JavaScript?</h4>
+ <p>A version of the frontend with no JavaScript will be made eventually. Current version requires it as it is needed for some basic functionality. There are no external libraries used by the frontend, just basic selection of DOM elements and modifying their styling. <a href="https://github.com/FChannel0/FChannel-Server/pulls">Perhaps (You) could contribute a frontend that uses no JavaScript?</a></p>
- <h4 id="javascript">JavaScript why?</h4>
- <p>a version of the client with no javascript will be made eventually. current version requires it, because of basic functionality needed. no libraries or frameworks for javascript is used besides ECMAScript, just basic selection of DOM elements and modifying their styling. maybe someone would be willing to make a client that uses no javascript.</p>
+ <h4 id="seqnum">Why do the posts not have sequential ID numbers?</h4>
+ <p>Sequential ID numbers have run their course. Random base36 is better against repelling script kiddies.</p>
<h4 id="seqnum">Why are the posts not sequential numbers?</h4>
<p>sequential numbers have run their course. random base 16 (now base 36) is better.</p>
-
- <h4 id="pubexamp">Activitypub specific examples</h4>
- <p>coming soon(tm).</p>
+ <h4 id="pubexamp">ActivityPub specific examples</h4>
+ <p>Soon&trade;.</p>
- <h4 id="version">Server Version</h4>
+ <h4 id="version">What's the version of this fchannel instance?</h4>
<p>v0.0.6-dev</p>
</div>
<div style="width: 500px; margin:0 auto; margin-top: 50px; text-align: center;">
<a href="/">[Home]</a><a href="/static/rules.html">[Rules]</a><a href="/static/faq.html">[FAQ]</a>
- <p>All media are copyright to their respective owners.</p>
+ <p>All trademarks and copyrights on this page are owned by their respective parties.</p>
</div>
</body>
</html>
diff --git a/static/index.html b/static/index.html
index d7374f1..667efd4 100644
--- a/static/index.html
+++ b/static/index.html
@@ -1,6 +1,6 @@
{{ define "header" }}
<title>{{ .Title }}</title>
-<meta name="description" content="{{ .PreferredUsername }} is a federated image board based on activitypub. The current version of the code running the server is still a work in progress, expect a bumpy ride for the time being. Get the server code here: https://github.com/FChannel0.">
+<meta name="description" content="{{ .PreferredUsername }} is a federated image board based on ActivityPub. The current version of the code running on the server is still a work-in-progress product, expect a bumpy ride for the time being. Get the server code here: https://github.com/FChannel0.">
<meta property="og:locale" content="en_US" />
<meta property="og:type" content="website" />
@@ -8,10 +8,10 @@
<meta property="og:site_name" content="{{ .Board.Actor.PreferredUsername }}" />
<meta property="og:title" content="{{ .Title }}">
-<meta property="og:description" content="{{ .PreferredUsername }} is a federated image board based on activitypub. The current version of the code running the server is still a work in progress, expect a bumpy ride for the time being. Get the server code here: https://github.com/FChannel0.">
+<meta property="og:description" content="{{ .PreferredUsername }} is a federated image board based on ActivityPub. The current version of the code running on the server is still a work-in-progress product, expect a bumpy ride for the time being. Get the server code here: https://github.com/FChannel0.">
<meta name="twitter:title" content="{{ .Title }}">
-<meta name="twitter:description" content="{{ .PreferredUsername }} is a federated image board based on activitypub. The current version of the code running the server is still a work in progress, expect a bumpy ride for the time being. Get the server code here: https://github.com/FChannel0.">
+<meta name="twitter:description" content="{{ .PreferredUsername }} is a federated image board based on ActivityPub. The current version of the code running on the server is still a work-in-progress product, expect a bumpy ride for the time being. Get the server code here: https://github.com/FChannel0.">
<meta name="twitter:card" content="summary_large_image">
{{ end }}
@@ -20,7 +20,7 @@
{{ define "content" }}
<div style="text-align: center; max-width: 800px; margin: 0 auto;">
<h1>{{ .Title }}</h1>
- <p style="text-align: justify">{{ .PreferredUsername }} is a federated image board based on activitypub. The current version of the code running the server is still a work in progress, expect a bumpy ride for the time being. Get the server code at <a href="https://github.com/FChannel0">https://github.com/FChannel0</a>.</p>
+ <p style="text-align: justify">{{ .PreferredUsername }} is a federated image board based on <a href="https://activitypub.rocks/">ActivityPub</a>. The current version of the code running on the server is still a work-in-progress product, expect a bumpy ride for the time being. Get the server code here: <a href="https://github.com/FChannel0">https://github.com/FChannel0</a>.</p>
{{ if .Boards }}
{{ $l := len .Boards }}
diff --git a/static/main.html b/static/main.html
index ba7e7f5..3cb8555 100644
--- a/static/main.html
+++ b/static/main.html
@@ -109,7 +109,7 @@
{{ template "bottom" . }}
<div align="center" style="width: 500px; margin:0 auto; margin-top: 50px;">
<a href="/">[Home]</a><a href="/static/rules.html">[Rules]</a><a href="/static/faq.html">[FAQ]</a>
- <p>All media are copyright to their respective owners.</p>
+ <p>All trademarks and copyrights on this page are owned by their respective parties.</p>
</div>
</body>
</html>
diff --git a/static/news.html b/static/news.html
index 4bd43e1..65ae410 100644
--- a/static/news.html
+++ b/static/news.html
@@ -1,6 +1,6 @@
{{ define "header" }}
<title>{{ .Title }}</title>
-<meta name="description" content="{{ .PreferredUsername }} is a federated image board based on activitypub. The current version of the code running the server is still a work in progress, expect a bumpy ride for the time being. Get the server code here: https://github.com/FChannel0.">
+<meta name="description" content="{{ .PreferredUsername }} is a federated image board based on ActivityPub. The current version of the code running on the server is still a work-in-progress product, expect a bumpy ride for the time being. Get the server code here: https://github.com/FChannel0.">
<meta property="og:locale" content="en_US" />
<meta property="og:type" content="website" />
@@ -8,10 +8,10 @@
<meta property="og:site_name" content="{{ .Board.Actor.PreferredUsername }}" />
<meta property="og:title" content="{{ .Title }}">
-<meta property="og:description" content="{{ .PreferredUsername }} is a federated image board based on activitypub. The current version of the code running the server is still a work in progress, expect a bumpy ride for the time being. Get the server code here: https://github.com/FChannel0.">
+<meta property="og:description" content="{{ .PreferredUsername }} is a federated image board based on ActivityPub. The current version of the code running on the server is still a work-in-progress product, expect a bumpy ride for the time being. Get the server code here: https://github.com/FChannel0.">
<meta name="twitter:title" content="{{ .Title }}">
-<meta name="twitter:description" content="{{ .PreferredUsername }} is a federated image board based on activitypub. The current version of the code running the server is still a work in progress, expect a bumpy ride for the time being. Get the server code here: https://github.com/FChannel0.">
+<meta name="twitter:description" content="{{ .PreferredUsername }} is a federated image board based on ActivityPub. The current version of the code running on the server is still a work-in-progress product, expect a bumpy ride for the time being. Get the server code here: https://github.com/FChannel0.">
<meta name="twitter:card" content="summary_large_image">
{{ end }}
diff --git a/static/rules.html b/static/rules.html
index 574435a..afb0319 100644
--- a/static/rules.html
+++ b/static/rules.html
@@ -4,9 +4,9 @@
<a style="color: black;" href="javascript:history.back()">[Back]</a>
<h1 style="text-align: center;">Rules and Agreements:</h1>
<ol>
- <li>Do not break or violate United States laws.</li>
- <li>Age Restriction is 18 years and older.</li>
- <li>Any blue boards are restricted to work safe posts only.</li>
+ <li>Do not break any laws of the U.S.A.</li>
+ <li>You must be 18 to post or access this website.</li>
+ <li>Blue boards are restricted to work-safe (SFW) posts only.</li>
</ol>
</body>
</html>