added home and global feed, home will try to show timeline with
all followed contacts and fallback to global if there are no
followees.
in a future commit global tab could become search and have a
search field at the top.
this creates a kind 3 event that includes a list of profiles that
the user is following.
the feed is still the public global feed and individual feed with
only events from followed pubkeys will be added in the next commit.
also:
- updated following and unfollwing wording
- added proper primary and secondary button styles.
each view has it's own DOMMap to reference its own elements this
can us non-unique keys, i.e. each view can have a header key.
changed:
- use getViewElem instead of querying the dom
- access button.dataset.id directly before traversing the dom
moved code that creates the view dom elements into its own module.
deliberately not in ui.ts as view.ts is imported early and has
almost no dependecies except for nostr-tools and ./utils