diff --git a/static/icons/PhChat.svg b/static/icons/PhChat.svg new file mode 100644 index 0000000..0d1b7a9 --- /dev/null +++ b/static/icons/PhChat.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/static/tailwind.css b/static/tailwind.css index f04b36b..dfb7445 100644 --- a/static/tailwind.css +++ b/static/tailwind.css @@ -10,6 +10,20 @@ p a { text-decoration: underline } +.posts { + margin-top: 1em; + display: grid; + grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); + grid-auto-rows: 1fr; + gap: 1rem; +} + +.posts img:not(.icon), +.posts video:not(:fullscreen) { + object-fit: cover; + aspect-ratio: 1; +} + #comments__expandBtn { display: none; } diff --git a/views/about.hbs b/views/about.hbs index 049ba33..f0965bc 100644 --- a/views/about.hbs +++ b/views/about.hbs @@ -7,7 +7,7 @@ {{> partials/head }} - + {{> partials/nav }}
diff --git a/views/errors/404.hbs b/views/errors/404.hbs index 1825b2b..8257d0a 100644 --- a/views/errors/404.hbs +++ b/views/errors/404.hbs @@ -7,7 +7,7 @@ {{> partials/head }} - + {{> partials/nav }}
diff --git a/views/errors/429.hbs b/views/errors/429.hbs index 7cf224f..0b46b65 100644 --- a/views/errors/429.hbs +++ b/views/errors/429.hbs @@ -7,7 +7,7 @@ {{> partials/head }} - + {{> partials/nav }}
diff --git a/views/errors/error.hbs b/views/errors/error.hbs index 1745c44..354f0f5 100644 --- a/views/errors/error.hbs +++ b/views/errors/error.hbs @@ -7,13 +7,13 @@ {{> partials/head }} - + {{> partials/nav }}

An error occurred

You may have found a bug in rimgo. If this is a bug, open an issue on Codeberg.

- {{err}} + {{err}}
{{> partials/footer }} diff --git a/views/frontpage.hbs b/views/frontpage.hbs index 4728364..5c4b4c1 100644 --- a/views/frontpage.hbs +++ b/views/frontpage.hbs @@ -7,7 +7,7 @@ {{> partials/head }} - + {{> partials/nav }}
@@ -30,54 +30,7 @@

This instance

- {{#if config.Privacy.not_collected}} -
- -

Data not collected

-

This instance does not collect any data.

-
- {{/if}} - {{#unless config.Privacy.set}} -
- -

No details provided

-

The operator of this instance will be required to provide privacy details to be added to the instance list.

-
- {{else}} - {{#unless config.Privacy.not_collected}} -
- -

Data collected

-

The following data may be collected:

-
    - {{#if config.Privacy.ip}} -
  • - - Internet address (IP Address) -
  • - {{/if}} - {{#if config.Privacy.url}} -
  • - - Page viewed (Request URL) -
  • - {{/if}} - {{#if config.Privacy.device}} -
  • - - Device Type (User agent) -
  • - {{/if}} - {{#if config.Privacy.diagnostics}} -
  • - - Diagnostics -
  • - {{/if}} -
-
- {{/unless}} - {{/unless}} + {{> partials/privacy }}

Additional information

    diff --git a/views/partials/comment.hbs b/views/partials/comment.hbs index 9051257..476f868 100644 --- a/views/partials/comment.hbs +++ b/views/partials/comment.hbs @@ -18,8 +18,8 @@ (deleted {{this.DeletedAt}}) {{/if}} | - Likes {{this.Upvotes}} - Dislikes {{this.Downvotes}} + Likes {{this.Upvotes}} + Dislikes {{this.Downvotes}}
{{#if this.Comments}} diff --git a/views/partials/footer.hbs b/views/partials/footer.hbs index 85b56ab..3aab847 100644 --- a/views/partials/footer.hbs +++ b/views/partials/footer.hbs @@ -2,7 +2,7 @@
- +

rimgo

@@ -10,5 +10,5 @@ About Privacy
-

rimgo does not allow uploads or host any content. Issues with content should be reported to Imgur.

+

rimgo does not allow uploads or host any content. Issues with content should be reported to Imgur.

\ No newline at end of file diff --git a/views/partials/nav.hbs b/views/partials/nav.hbs index 09682b5..79ec746 100644 --- a/views/partials/nav.hbs +++ b/views/partials/nav.hbs @@ -1,6 +1,6 @@ \ No newline at end of file diff --git a/views/partials/post.hbs b/views/partials/post.hbs index c89ee66..1ce54df 100644 --- a/views/partials/post.hbs +++ b/views/partials/post.hbs @@ -1,5 +1,5 @@ -
+
{{#equal Cover.Type "video"}}
-
- Points +
+ Points {{Points}}
-
- Comments +
+ Comments {{Comments}}
-
- Views +
+ Views {{Views}}
diff --git a/views/partials/privacy.hbs b/views/partials/privacy.hbs new file mode 100644 index 0000000..e2f4c09 --- /dev/null +++ b/views/partials/privacy.hbs @@ -0,0 +1,48 @@ +{{#if config.Privacy.not_collected}} +
+ +

Data not collected

+

This instance does not collect any data.

+
+ {{/if}} + {{#unless config.Privacy.set}} +
+ +

No details provided

+

The operator of this instance will be required to provide privacy details to be added to the instance list.

+
+ {{else}} + {{#unless config.Privacy.not_collected}} +
+ +

Data collected

+

The following data may be collected:

+
    + {{#if config.Privacy.ip}} +
  • + + Internet address (IP Address) +
  • + {{/if}} + {{#if config.Privacy.url}} +
  • + + Page viewed (Request URL) +
  • + {{/if}} + {{#if config.Privacy.device}} +
  • + + Device Type (User agent) +
  • + {{/if}} + {{#if config.Privacy.diagnostics}} +
  • + + Diagnostics +
  • + {{/if}} +
+
+ {{/unless}} + {{/unless}} \ No newline at end of file diff --git a/views/post.hbs b/views/post.hbs index 6f4a602..9f9bf02 100644 --- a/views/post.hbs +++ b/views/post.hbs @@ -12,7 +12,7 @@ {{> partials/head }} - + {{> partials/nav }}
@@ -32,16 +32,16 @@ {{/if}}
- Views + Views

{{post.Views}}

{{#if post.SharedWithCommunity}}
- Likes + Likes

{{post.Upvotes}}

- Dislikes + Dislikes

{{post.Downvotes}}

{{/if}} @@ -78,7 +78,7 @@ {{#each post.tags}}
-
+

{{this.Display}}

@@ -91,10 +91,10 @@ {{#if comments}}

- +
{{#each comments}} diff --git a/views/privacy.hbs b/views/privacy.hbs index dbdf680..0ac50ae 100644 --- a/views/privacy.hbs +++ b/views/privacy.hbs @@ -7,7 +7,7 @@ {{> partials/head }} - + {{> partials/nav }}
@@ -25,54 +25,7 @@
- {{#if config.Privacy.not_collected}} -
- -

Data not collected

-

This instance does not collect any data.

-
- {{/if}} - {{#unless config.Privacy.set}} -
- -

No details provided

-

The operator of this instance will be required to provide privacy details to be added to the instance list.

-
- {{else}} - {{#unless config.Privacy.not_collected}} -
- -

Data collected

-

The following data may be collected:

-
    - {{#if config.Privacy.ip}} -
  • - - Internet address (IP Address) -
  • - {{/if}} - {{#if config.Privacy.url}} -
  • - - Page viewed (Request URL) -
  • - {{/if}} - {{#if config.Privacy.device}} -
  • - - Device Type (User agent) -
  • - {{/if}} - {{#if config.Privacy.diagnostics}} -
  • - - Diagnostics -
  • - {{/if}} -
-
- {{/unless}} - {{/unless}} + {{> partials/privacy }}
@@ -80,21 +33,21 @@

Instance privacy aims to bring transparency to the data collected by frontends and encourage privacy friendly practices. There is often no privacy policy and users are forced to trust that the instance operator is not collecting data. However, there is a possibility that the instance operator can put false information so we encourage looking at other factors when selecting an instance.

  • - + Internet address (IP Address) - This is an address that is given to your computer or internet connection. This can be used to find your city or region and internet provider but can change depending on your connection.
  • - + Page viewed (Request URL) - This is what page you are viewing.
  • - + Device Type (User agent) - This is what browser, device, and operating system you are using. Advanced users can change this with an extension or browser setting.
  • - + Diagnostics - When this data is only collected when there is an error or only a short amount of time while diagnosing an issue.
  • diff --git a/views/tag.hbs b/views/tag.hbs index 108751b..a63fbba 100644 --- a/views/tag.hbs +++ b/views/tag.hbs @@ -5,46 +5,43 @@ {{tag.Display}} - rimgo {{> partials/head }} - - - - - {{> partials/header }} + + {{> partials/nav }} -
    -
    -
    -

    {{tag.Display}}

    -

    {{tag.PostCount}} posts

    -
    -
    - {{#equal tag.Sort "popular"}} - Popular - Newest - Best - {{/equal}} - {{#equal tag.Sort "newest"}} - Popular - Newest - Best - {{/equal}} - {{#equal tag.Sort "best"}} - Popular - Newest - Best - {{/equal}} -
    +
    +
    +

    {{tag.Display}}

    +

    {{tag.PostCount}} posts

    - +
    + {{#equal tag.Sort "popular"}} + Popular + Newest + Best + {{/equal}} + {{#equal tag.Sort "newest"}} + Popular + Newest + Best + {{/equal}} + {{#equal tag.Sort "best"}} + Popular + Newest + Best + {{/equal}} +
    +
    + +
    {{#each tag.Posts}} {{> partials/post }} {{/each}}
    -
    +
    {{#if displayPrev}} Previous page {{/if}} diff --git a/views/user.hbs b/views/user.hbs index 250c0d7..724daca 100644 --- a/views/user.hbs +++ b/views/user.hbs @@ -5,33 +5,30 @@ {{user.Username}} - rimgo {{> partials/head }} - - - - + {{> partials/nav }} + +
    +
    + +
    +

    {{user.Username}}

    +

    {{user.Points}} pts · {{user.CreatedAt}}

    +
    +
    +

    {{user.Bio}}

    +
    -
    -
    - -
    -

    {{user.Username}}

    -

    {{user.Points}} pts · {{user.CreatedAt}}

    -
    -
    -

    {{user.Bio}}

    -
    -
    {{#each submissions}} {{> partials/post }} {{/each}}
    -
    +
    {{#equal page "0" }} {{else}} Previous page