Monorepo for Tangled tangled.org

appview/pages: display home page to logged out users #551

merged opened by oppi.li targeting master from push-prszwlupsoqz
Labels

None yet.

assignee

None yet.

Participants 1
AT URI
at://did:plc:qfpnj4og54vl56wngdriaxug/sh.tangled.repo.pull/3lxrc5sxkbu22
+11 -10
Interdiff #0 โ†’ #1
appview/db/timeline.go

This file has not been changed.

+4 -4
appview/pages/pages.go
··· 1262 1262 return p.execute("strings/string", w, params) 1263 1263 } 1264 1264 1265 - func (p *Pages) Home(w io.Writer, params TimelineParams) error { 1266 - return p.execute("timeline/home", w, params) 1267 - } 1268 - 1269 1265 func (p *Pages) Static() http.Handler { 1270 1266 if p.dev { 1271 1267 return http.StripPrefix("/static/", http.FileServer(http.Dir("appview/pages/static"))) ··· 1301 1297 1302 1298 1303 1299 return p.execute("strings/string", w, params) 1300 + } 1301 + 1302 + func (p *Pages) Home(w io.Writer, params TimelineParams) error { 1303 + return p.execute("timeline/home", w, params) 1304 1304 } 1305 1305 1306 1306 func (p *Pages) Static() http.Handler {
+1 -1
appview/pages/templates/timeline/fragments/timeline.html
··· 91 91 </div> 92 92 <div class="py-4 px-6 drop-shadow-sm rounded bg-white dark:bg-gray-800 flex items-center gap-4"> 93 93 <div class="flex-shrink-0 max-h-full w-24 h-24"> 94 - <img class="object-cover rounded-full p-2" src="{{ fullAvatar $subjectHandle }}" /> 94 + <img alt="" class="object-cover rounded-full p-2" src="{{ fullAvatar $subjectHandle }}" /> 95 95 </div> 96 96 97 97 <div class="flex-1 min-h-0 justify-around flex flex-col">
appview/pages/templates/timeline/fragments/trending.html

This file has not been changed.

+6 -5
appview/pages/templates/timeline/home.html
··· 55 55 {{ define "feature" }} 56 56 {{ $info := index . 0 }} 57 57 {{ $bullets := index . 1 }} 58 - <div class="flex flex-col items-center gap-6 md:flex-row md:gap-12"> 58 + <div class="flex flex-col items-top gap-6 md:flex-row md:gap-12"> 59 59 <div class="flex-1"> 60 60 <h2 class="text-2xl font-bold text-black dark:text-white mb-6">{{ $info.title }}</h2> 61 61 <ul class="leading-normal"> ··· 64 64 {{ end }} 65 65 </ul> 66 66 </div> 67 - <div class="flex-shrink-0"> 67 + <div class="flex-shrink-0 w-96 md:w-1/3"> 68 68 <a href="{{ $info.image }}"> 69 - <img src="{{ $info.image }}" alt="{{ $info.alt }}" class="w-full max-w-sm md:max-w-48 lg:max-w-sm mx-auto h-auto rounded" /> 69 + <img src="{{ $info.image }}" alt="{{ $info.alt }}" class="w-full h-auto rounded" /> 70 70 </a> 71 71 </div> 72 72 </div> ··· 82 82 ) 83 83 (list 84 84 "Host your repositories on your own infrastructure using <em>knots</em>&mdash;tiny, headless servers that facilitate git operations." 85 - "Fully federated using the AT Protocol." 86 - "Use SSH to push/pull, guarded by role-based access control." 85 + "Add friends to your knot or invite collaborators to your repository." 86 + "Guarded by fine-grained role-based access control." 87 + "Use SSH to push and pull." 87 88 ) 88 89 ) }} 89 90
appview/pages/templates/timeline/timeline.html

This patch was likely rebased, as context lines do not match.

appview/state/router.go

This file has not been changed.

appview/state/state.go

This patch was likely rebased, as context lines do not match.

History

3 rounds 0 comments
sign up or login to add to the discussion
1 commit
expand
appview/pages: display home page to logged out users
expand 0 comments
pull request successfully merged
oppi.li submitted #1
1 commit
expand
appview/pages: display home page to logged out users
expand 0 comments
oppi.li submitted #0
1 commit
expand
appview/pages: display home page to logged out users
expand 0 comments