forked from tangled.org/core
Monorepo for Tangled — https://tangled.org

start styleen

Changed files
+35 -31
appview
+11 -11
appview/pages/templates/layouts/base.html
···
<link href="/static/tw.css" rel="stylesheet" type="text/css" />
<title>{{ block "title" . }}tangled{{ end }}</title>
</head>
-
<body class="min-h-screen flex flex-col justify-between">
+
<body class="bg-slate-100 min-h-screen flex flex-col justify-between">
+
<div class="container mx-auto px-1 pt-4">
<header>
-
{{ block "topbar" . }}
-
{{ template "layouts/topbar" . }}
-
{{ end }}
+
{{ block "topbar" . }}
+
{{ template "layouts/topbar" . }}
+
{{ end }}
</header>
-
<div class="container mx-auto px-1 flex-grow">
-
<main class="content">{{ block "content" . }}{{ end }}</main>
-
<script src="/static/lucide.min.js"></script>
-
<script>
-
lucide.createIcons();
-
</script>
-
</div>
+
<main class="content">{{ block "content" . }}{{ end }}</main>
<footer class="mt-16 ">
{{ block "footer" . }}
{{ template "layouts/footer" . }}
{{ end }}
</footer>
+
<script src="/static/lucide.min.js"></script>
+
<script>
+
lucide.createIcons();
+
</script>
+
</div>
</body>
</html>
{{ end }}
+2 -2
appview/pages/templates/layouts/footer.html
···
{{ define "layouts/footer" }}
-
<div class="w-full p-4 bg-gray-50">
+
<div class="w-full p-4 bg-white rounded-t">
<div class="container mx-auto text-center text-gray-600 text-sm">
tangled
</div>
</div>
-
{{ end }}
+
{{ end }}
+6 -6
appview/pages/templates/layouts/repobase.html
···
{{ define "title" }}{{ .RepoInfo.FullName }}{{ end }}
{{ define "content" }}
-
<section id="repo-header" class="mb-4">
+
<section id="repo-header" class="mb-4 p-2">
<p class="text-xl">
<a
href="/{{ .RepoInfo.OwnerWithAt }}"
···
</span>
</section>
<section id="repo-links" class="min-h-screen flex flex-col">
-
<nav class="w-full mx-auto">
-
<div class="flex z-60 border-gray-200 border-b">
-
{{ $activeTabStyles := "border-gray-200 border-l border-r border-t border-b-0 -mb-px bg-white" }}
+
<nav class="w-full mx-auto ml-4">
+
<div class="flex z-60">
+
{{ $activeTabStyles := "-mb-px bg-white" }}
{{ $tabs := .RepoInfo.GetTabs }}
{{ range $item := $tabs }}
{{ $key := index $item 0 }}
···
hx-boost="true"
>
<div
-
class="px-4 py-2 mr-1 text-black min-w-[80px] text-center relative group-hover:bg-gray-200
+
class="px-4 py-2 mr-1 text-black min-w-[80px] text-center relative group-hover:bg-gray-200 rounded-t
{{ if eq $.Active $key }}
{{ $activeTabStyles }}
{{ end }}"
···
</div>
</nav>
<section
-
class="bg-white p-6 min-h-[200px] border-l border-r border-b border-gray-200 relative z-20 w-full mx-auto"
+
class="bg-white p-6 min-h-[200px] rounded relative z-20 w-full mx-auto"
>
{{ block "repoContent" . }}{{ end }}
</section>
+3 -3
appview/pages/templates/layouts/topbar.html
···
{{ define "layouts/topbar" }}
-
{{ $linkstyle := "text-gray-400 hover:text-gray-900 no-underline" }}
-
<nav class="space-x-4 mb-4 py-2 border-b border-gray-200">
+
{{ $linkstyle := "text-black hover:text-gray-600 no-underline" }}
+
<nav class="space-x-4 mb-4 px-6 py-2 rounded bg-white">
<div class="container flex justify-between p-0">
<div id="left-items">
<a href="/" hx-boost="true" class="{{ $linkstyle }} flex gap-2">
···
<summary class="{{ $linkstyle }} cursor-pointer list-none">
{{ didOrHandle .Did .Handle }}
</summary>
-
<div class="absolute flex flex-col right-0 mt-4 p-2 w-48 bg-white border border-gray-200 z-50">
+
<div class="absolute flex flex-col right-0 mt-4 p-4 rounded w-48 bg-white border border-gray-200 z-50">
<a href="/{{ didOrHandle .Did .Handle }}"class="{{ $linkstyle }}">profile</a>
<a href="/knots"class="{{ $linkstyle }}">knots</a>
<a href="/settings"class="{{ $linkstyle }}">settings</a>
+5 -5
appview/pages/templates/repo/commit.html
···
{{ $last := sub (len $diff) 1 }}
{{ range $idx, $hunk := $diff }}
{{ with $hunk }}
-
<section class="mt-4 border border-gray-200 w-full mx-auto">
+
<section class="mt-6 border border-gray-200 w-full mx-auto rounded bg-white">
<div id="file-{{ .Name.New }}">
<div id="diff-file">
<details open>
<summary class="list-none cursor-pointer sticky top-0">
-
<div id="diff-file-header" class="border-b cursor-pointer bg-white border-gray-200 flex justify-between">
+
<div id="diff-file-header" class="rounded cursor-pointer bg-white flex justify-between">
<div id="left-side-items" class="p-2">
{{ if .IsNew }}
<span class="diff-type p-1 mr-1 font-mono text-sm bg-green-100 rounded text-green-700 select-none">A</span>
···
<div class="bg-gray-100 text-gray-500 select-none">{{ .Header }}</div>
{{- range .Lines -}}
{{- if eq .Op.String "+" -}}
-
<div class="bg-green-100 text-green-700 p-1"><span class="select-none mr-2">{{ .Op.String }}</span><span>{{ .Line }}</span></div>
+
<div class="bg-green-100 text-green-700 p-1"><span class="select-none mx-2">{{ .Op.String }}</span><span>{{ .Line }}</span></div>
{{- end -}}
{{- if eq .Op.String "-" -}}
-
<div class="bg-red-100 text-red-700 p-1"><span class="select-none mr-2">{{ .Op.String }}</span><span>{{ .Line }}</span></div>
+
<div class="bg-red-100 text-red-700 p-1"><span class="select-none mx-2">{{ .Op.String }}</span><span>{{ .Line }}</span></div>
{{- end -}}
{{- if eq .Op.String " " -}}
-
<div class="text-gray-500 px"><span class="select-none mr-2">{{ .Op.String }}</span><span>{{ .Line }}</span></div>
+
<div class="bg-white text-gray-500 px"><span class="select-none mx-2">{{ .Op.String }}</span><span>{{ .Line }}</span></div>
{{- end -}}
{{- end -}}
+2 -2
appview/pages/templates/repo/index.html
···
{{ define "repoAfter" }}
{{- if .Readme }}
-
<section class="mt-4 p-6 border border-gray-200 w-full mx-auto">
+
<section class="mt-4 p-6 rounded bg-white w-full mx-auto">
<article class="readme">
{{- .Readme -}}
</article>
···
{{- end -}}
-
<section class="mt-4 p-6 border border-gray-200 w-full mx-auto">
+
<section class="mt-4 p-6 rounded bg-white w-full mx-auto">
<strong>clone</strong>
<pre>
git clone https://tangled.sh/{{ .RepoInfo.OwnerWithAt }}/{{ .RepoInfo.Name }} </pre
+5 -1
appview/pages/templates/repo/log.html
···
{{ define "title" }}commits &middot; {{ .RepoInfo.FullName }}{{ end }}
{{ define "repoContent" }}
+
<h1>Commits</h1>
+
<h1>Commits</h1>
+
{{ end }}
+
{{ define "repoAfter" }}
<main>
<div id="commit-log" class="flex-1">
{{ range .Commits }}
···
data-lucide="git-commit-horizontal"
></i>
<div
-
class="relative w-full px-4 py-4 mt-5 mx-3 hover:bg-gray-50 border border-gray-200"
+
class="relative w-full px-4 py-4 mt-5 hover:bg-gray-50 border border-gray-200 bg-white"
>
<div id="commit-message">
{{ $messageParts := splitN .Message "\n\n" 2 }}
+1 -1
input.css
···
}
a {
-
@apply underline text-black hover:text-gray-800;
+
@apply no-underline text-black hover:underline hover:text-gray-800;
}
@layer base {