mirror of
https://github.com/avinal/box-box.git
synced 2026-01-09 21:18:32 +05:30
update theme colors
Signed-off-by: Avinal Kumar <avinal.xlvii@gmail.com>
This commit is contained in:
@@ -7,12 +7,13 @@
|
||||
{{ partial "head.html" . }}
|
||||
</head>
|
||||
|
||||
<body class="container mx-auto bg-gray-50 dark:bg-neutral-700">
|
||||
<body class="container mx-auto bg-black">
|
||||
|
||||
<div
|
||||
class="relative flex min-h-screen flex-col justify-center overflow-hidden py-8"
|
||||
>
|
||||
<div
|
||||
class="relative w-full bg-white dark:bg-neutral-900 px-4 shadow-xl shadow-slate-700/10 ring-1 ring-gray-900/5 md:mx-auto md:max-w-3xl lg:max-w-4xl pb-4"
|
||||
class="relative w-full bg-black px-4 shadow-xl shadow-slate-700/10 ring-1 ring-gray-900/5 md:mx-auto md:max-w-3xl lg:max-w-4xl pb-4"
|
||||
>
|
||||
<header class="mb-6">
|
||||
{{ partial "header.html" . }}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{{ define "main" }}
|
||||
<div class="relative overflow-auto ring-1 ring-black dark:ring-white my-4">
|
||||
<div class="relative overflow-auto ring-1 ring-white my-4">
|
||||
<div
|
||||
class="prose prose-neutral dark:prose-invert lg:prose-lg md:mx-auto p-4"
|
||||
class="prose prose-invert lg:prose-lg md:mx-auto p-4"
|
||||
>
|
||||
{{ .Content }}
|
||||
</div>
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
</a>
|
||||
<div class="p-4 space-y-2 lg:col-span-5 ">
|
||||
<a href="{{ .RelPermalink }}">
|
||||
<h3 class="text-xl font-medium sm:text-3xl space-y-2 ">
|
||||
<h3 class="text-2xl font-medium sm:text-3xl space-y-2 ">
|
||||
{{ .LinkTitle }}
|
||||
</h3>
|
||||
<div class="inset-x-0 py-2">
|
||||
|
||||
@@ -34,14 +34,11 @@
|
||||
class="border border-black py-2 px-1 group-hover:bg-teal-400 dark:border-white dark:group-hover:text-black dark:group-hover:border-black"
|
||||
>{{ .WordCount }} words
|
||||
</span>
|
||||
|
||||
{{ if gt .ReadingTime 1 }}
|
||||
{{ .Scratch.Set "timeUnit" "mins" }}
|
||||
{{ else }}
|
||||
{{ .Scratch.Set "timeUnit" "min" }}
|
||||
{{ end }}
|
||||
|
||||
|
||||
<span
|
||||
class="border border-black py-2 px-1 group-hover:bg-pink-400 dark:border-white dark:group-hover:text-black dark:group-hover:border-black"
|
||||
>~{{ .ReadingTime }}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{{- $color := (index (shuffle (slice "cyan" "teal" "pink" "rose" "fuchsia" "purple" "violet" "indigo" "emerald" "yellow" "amber" "red")) 0) }}
|
||||
<div
|
||||
class="relative overflow-auto px-4 ring-1 ring-gray-800 mt-5 text-center text-light text-gray-500 hover:text-black hover:bg-{{ $color }}-400 dark:text-gray-200 dark:ring-white dark:hover:ring-black"
|
||||
class="relative overflow-auto px-4 ring-1 ring-gray-800 mt-5 text-center text-light text-gray-500 hover:text-black hover:bg-{{ $color }}-400 dark:text-gray-200 dark:ring-white dark:hover:ring-black dark:hover:bg-{{ $color }}"
|
||||
>
|
||||
<span
|
||||
><a href="https://github.com/avinal/box-box">Box Box</a> | A
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{{- $color := (index (shuffle (slice "cyan" "teal" "pink" "rose" "fuchsia" "purple" "violet" "indigo" "emerald" "yellow" "amber" "red")) 0) }}
|
||||
<div class="py-4" onclick="toggleTheme()">
|
||||
<div class="py-4 ring-white">
|
||||
<h1
|
||||
class="text-2xl font-bold font-mono bg-gradient-to-r to-black hover:to-{{ $color }}-400 from-white dark:text-white dark:to-white dark:from-neutral-900 cursor-default"
|
||||
class="text-2xl font-bold font-mono text-white cursor-default"
|
||||
>
|
||||
{{ site.Title }}
|
||||
</h1>
|
||||
|
||||
@@ -29,7 +29,7 @@
|
||||
{{- $classes = (printf "%s %s" $classes "bg-black text-white active dark:text-black dark:bg-white") }}
|
||||
{{- $attrs = merge $attrs (dict "aria-current" "page") }}
|
||||
{{- else }}
|
||||
{{- $classes = (printf "%s %s hover:bg-%s-400" $classes "bg-white text-black dark:text-white dark:hover:text-black dark:hover:border-black dark:bg-neutral-900 ancestor" $color) }}
|
||||
{{- $classes = (printf "%s %s hover:bg-%s-400" $classes "bg-black text-white ancestor hover:text-black" $color) }}
|
||||
{{- $attrs = merge $attrs (dict "aria-current" "true") }}
|
||||
{{- end }}
|
||||
|
||||
|
||||
@@ -22,6 +22,7 @@ tags = [
|
||||
'box',
|
||||
'simple'
|
||||
]
|
||||
|
||||
features = [
|
||||
'responsive',
|
||||
'single-column',
|
||||
|
||||
Reference in New Issue
Block a user