diff --git a/.gitignore b/.gitignore index 8229388..6651b83 100644 --- a/.gitignore +++ b/.gitignore @@ -5,8 +5,8 @@ Thumbs.db *.DS_Store *.txt !twtxt_template.txt +custom.css private/cache/* !private/cache/.gitkeep private/config.ini -error_log -custom.css \ No newline at end of file +error_log \ No newline at end of file diff --git a/README.md b/README.md index a34f311..d74fa8d 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ Created by sørenpeter (www.darch.dk) So are you also tired of having to use big tech's social medias to stay connected with friends and interesting people, and having your privacy pried upon? -And are you a creative human, who want back control over you art, music, words, code, instead of having to shoehorn your soul into the grid of blackbox algoritmes? +And are you a creative human, who want back control over you art, music, words, code, instead of having to shoehorn your soul into the grid of blackbox algorithms ? Then it is you, who I've made timeline for. @@ -13,12 +13,14 @@ Then it is you, who I've made timeline for. timeline is a handfull of small files that you upload to a server and access it via a browser. It then gives you an interface for posting words, links (and images too, soon), as well as following other peoples feeds and enganging in conversations by posting replies. -For the social features timeline are using the [twtxt](https://twtxt.readthedocs.io) format and most of the [Twtxt Extensions](https://dev.twtxt.net) developed in the context of [Yarn.social](https://yarn.social/). +For the social features timeline are using the [twtxt](https://twtxt.readthedocs.io) format and most of the twtxt Extensions developed in the context of Yarn.social](https://yarn.social/). -timeline also support its own flavour of webmentions, so it is posible to be notified about `@mentions` from feeds you are not currenly/yet following. +timeline also support its own flavor of WebMentions, so it is possible to be notified about `@mentions` from feeds you are not currently/yet following. You can also search for others feeds using WebFinger, if they got that set up on their server , like it's the case for most yarn.social pods. You can also search for others feeds using [WebFinger](https://webfinger.net/), if they got that set up on their servser, like it's the case for most yarn.social pods. -My visions for timeline is to bring back the fun and quirckness of bygone sites such as Geocities of the 1990s and Myspace of the 2000s, that enables creating a personlised place for you to express yourself online and also being able to follow others who inspire you. At the same time providing a good looking basic design with the help of [Simple.css](https://simplecss.org), which allows you to customise the look and feel. Even to the level where timeline aligns with the design of your excsing webpage, like I did on: [darch.dk/timeline](https://darch.dk/timeline). +My visions for timeline is to bring back the fun and quirkiness of bygone sites such as Geocities of the 1990s and Myspace of the 2000s, that enables creating a personalized place for you to express yourself online and also being able to follow others who inspire you. + +At the same time providing a good looking basic design with the help of [Simple.css](https://simplecss.org), which allows you to customize the look and feel. Even to the level where timeline aligns with the design of your excsing webpage, like I did on: [darch.dk/timeline](https://darch.dk/timeline).  _Conversation view with replies / Profile view / Gallery View_ diff --git a/index.php b/index.php index 405e999..b4cb114 100644 --- a/index.php +++ b/index.php @@ -41,6 +41,7 @@ $routes = [ '/conv/([a-zA-Z0-9]{7})' => 'conv.php', // matches only twtHash of exactly 7 alphanumeric characters '/post/([a-zA-Z0-9]{7})' => 'post.php', // matches only twtHash of exactly 7 alphanumeric characters //'/thumb' => 'thumb.php', + '/upload' => 'upload_img.php', '/webmention' => 'webmention_endpoint.php', ]; diff --git a/libs/timeline.css b/libs/timeline.css index 1974cd3..efbf1e8 100644 --- a/libs/timeline.css +++ b/libs/timeline.css @@ -195,7 +195,6 @@ a.author { .profile a.button { font-size: small; - /*color: var(--accent); */ background-color: var(--accent-bg); padding: 0.25em 0.5rem; margin-left: 0.5rem; diff --git a/media/01.jpg b/media/01.jpg new file mode 100644 index 0000000..dc78c3b Binary files /dev/null and b/media/01.jpg differ diff --git a/media/02.jpg b/media/02.jpg new file mode 100644 index 0000000..840da71 Binary files /dev/null and b/media/02.jpg differ diff --git a/twtxt_template.txt b/twtxt_template.txt new file mode 100644 index 0000000..8911461 --- /dev/null +++ b/twtxt_template.txt @@ -0,0 +1,29 @@ +# | |___ _| |___ _| |_ +# | __\ \ /\ / / __\ \/ / __| +# | |_ \ V V /| |_ > <| |_ +# \__| \_/\_/ \__/_/\_\\__| +# +# Twtxt is an open, distributed and decentralized microblogging platform +# for hackers and friends that uses raw text files, easy to read by humans, +# and with common protocols and free and open. +# +# Learn more about twtxt here: https://github.com/buckket/twtxt +# And about yarn.social: https://yarn.social +# Using timeline from: https://github.com/sorenpeter/timeline +# Using some extensions from: https://dev.twtxt.net +# +# nick = your_name +# url = http://example.net/twtxt.txt +# avatar = http://example.net/avatar.png +# link = Link Text http://example.net +# description = Bio text about you +# +# Semi-random selection of feeds to get you started: +# follow = eapl.me https://eapl.me/twtxt.txt +# follow = eapl.mx https://eapl.mx/twtxt.txt +# follow = prologic https://twtxt.net/user/prologic/twtxt.txt +# follow = sorenpeter http://darch.dk/twtxt.txt +# follow = stigatle https://yarn.stigatle.no/user/stigatle/twtxt.txt +# follow = yarn_search https://search.twtxt.net/twtxt.txt +#~~~# +2024-04-23T20:05:00Z Testing posting from http://example.net/timeline/ \ No newline at end of file diff --git a/views/following.php b/views/following.php index 0522087..29f4cd1 100644 --- a/views/following.php +++ b/views/following.php @@ -4,10 +4,13 @@ require_once("partials/base.php"); $title = "Following - ".$title; include 'partials/header.php'; + +// TODO: Include profile-card, but only tagcloud for user, not all feeds in cache + ?>