mirror of
https://github.com/avinal/box-box.git
synced 2026-01-10 21:48: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" . }}
|
{{ partial "head.html" . }}
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body class="container mx-auto bg-gray-50 dark:bg-neutral-700">
|
<body class="container mx-auto bg-black">
|
||||||
|
|
||||||
<div
|
<div
|
||||||
class="relative flex min-h-screen flex-col justify-center overflow-hidden py-8"
|
class="relative flex min-h-screen flex-col justify-center overflow-hidden py-8"
|
||||||
>
|
>
|
||||||
<div
|
<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">
|
<header class="mb-6">
|
||||||
{{ partial "header.html" . }}
|
{{ partial "header.html" . }}
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
{{ define "main" }}
|
{{ 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
|
<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 }}
|
{{ .Content }}
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -17,7 +17,7 @@
|
|||||||
</a>
|
</a>
|
||||||
<div class="p-4 space-y-2 lg:col-span-5 ">
|
<div class="p-4 space-y-2 lg:col-span-5 ">
|
||||||
<a href="{{ .RelPermalink }}">
|
<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 }}
|
{{ .LinkTitle }}
|
||||||
</h3>
|
</h3>
|
||||||
<div class="inset-x-0 py-2">
|
<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"
|
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
|
>{{ .WordCount }} words
|
||||||
</span>
|
</span>
|
||||||
|
|
||||||
{{ if gt .ReadingTime 1 }}
|
{{ if gt .ReadingTime 1 }}
|
||||||
{{ .Scratch.Set "timeUnit" "mins" }}
|
{{ .Scratch.Set "timeUnit" "mins" }}
|
||||||
{{ else }}
|
{{ else }}
|
||||||
{{ .Scratch.Set "timeUnit" "min" }}
|
{{ .Scratch.Set "timeUnit" "min" }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
|
|
||||||
<span
|
<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"
|
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 }}
|
>~{{ .ReadingTime }}
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{{- $color := (index (shuffle (slice "cyan" "teal" "pink" "rose" "fuchsia" "purple" "violet" "indigo" "emerald" "yellow" "amber" "red")) 0) }}
|
{{- $color := (index (shuffle (slice "cyan" "teal" "pink" "rose" "fuchsia" "purple" "violet" "indigo" "emerald" "yellow" "amber" "red")) 0) }}
|
||||||
<div
|
<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
|
<span
|
||||||
><a href="https://github.com/avinal/box-box">Box Box</a> | A
|
><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) }}
|
{{- $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
|
<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 }}
|
{{ site.Title }}
|
||||||
</h1>
|
</h1>
|
||||||
|
|||||||
@@ -29,7 +29,7 @@
|
|||||||
{{- $classes = (printf "%s %s" $classes "bg-black text-white active dark:text-black dark:bg-white") }}
|
{{- $classes = (printf "%s %s" $classes "bg-black text-white active dark:text-black dark:bg-white") }}
|
||||||
{{- $attrs = merge $attrs (dict "aria-current" "page") }}
|
{{- $attrs = merge $attrs (dict "aria-current" "page") }}
|
||||||
{{- else }}
|
{{- 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") }}
|
{{- $attrs = merge $attrs (dict "aria-current" "true") }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
||||||
|
|||||||
@@ -22,6 +22,7 @@ tags = [
|
|||||||
'box',
|
'box',
|
||||||
'simple'
|
'simple'
|
||||||
]
|
]
|
||||||
|
|
||||||
features = [
|
features = [
|
||||||
'responsive',
|
'responsive',
|
||||||
'single-column',
|
'single-column',
|
||||||
|
|||||||
Reference in New Issue
Block a user