This repository has no description
0

Configure Feed

Select the types of activity you want to include in your feed.

core / appview / pages / templates / onboarding / fragments / social.html
1.9 kB 51 lines
1{{ define "onboarding/social" }} 2 <h1 class="text-2xl font-semibold dark:text-white">Discover</h1> 3 <p class="text-base text-gray-500 dark:text-gray-400 mt-1 mb-4">Find users to follow and repositories to star.</p> 4 5 {{ if .People }} 6 <div class="grid grid-cols-1 gap-3 mb-4"> 7 {{ range .People }} 8 <div class="border border-gray-200 dark:border-gray-700 rounded-sm overflow-hidden"> 9 {{ template "user/fragments/followCard" 10 (dict 11 "LoggedInUser" $.LoggedInUser 12 "UserDid" .UserDid 13 "Profile" .Profile 14 "FollowStatus" .FollowStatus 15 "FollowersCount" .FollowersCount 16 "FollowingCount" .FollowingCount) }} 17 </div> 18 {{ end }} 19 </div> 20 {{ end }} 21 22 {{ if .TrendingRepos }} 23 <div class="grid grid-cols-1 gap-3"> 24 {{ range .TrendingRepos }} 25 <div class="border border-gray-200 dark:border-gray-700 rounded-sm overflow-hidden"> 26 {{ template "user/fragments/repoCard" 27 (list $ . true true 28 (dict 29 "SubjectAt" .RepoAt 30 "IsStarred" (index $.StarStatuses .RepoDid) 31 "StarCount" .RepoStats.StarCount 32 "RepoName" .Slug)) }} 33 </div> 34 {{ end }} 35 </div> 36 {{ end }} 37 38 {{ if not (or .People .TrendingRepos) }} 39 <p class="text-sm text-gray-500 dark:text-gray-400 my-4">Nothing to suggest right now — you can explore once you're set up.</p> 40 {{ end }} 41 42 <div class="flex items-center justify-between mt-6"> 43 {{ template "onboarding/back" "/welcome/profile" }} 44 <form hx-post="/welcome/next" hx-swap="none"> 45 <input type="hidden" name="step" value="2"> 46 <button type="submit" class="btn-create-flat w-fit flex items-center gap-2 text-sm"> 47 Next {{ i "arrow-right" "size-4" }} 48 </button> 49 </form> 50 </div> 51{{ end }}