Start working on new design w/ Tailwind
This commit is contained in:
parent
f03b9f6f20
commit
b29b35e166
5 changed files with 27 additions and 6 deletions
2
Gemfile
2
Gemfile
|
@ -10,3 +10,5 @@ gem "phlexite", "~> 0.1.3"
|
||||||
gem "front_matter_parser", "~> 1.0"
|
gem "front_matter_parser", "~> 1.0"
|
||||||
|
|
||||||
gem 'phlex-markdown', git: 'https://github.com/phlex-ruby/phlex-markdown'
|
gem 'phlex-markdown', git: 'https://github.com/phlex-ruby/phlex-markdown'
|
||||||
|
|
||||||
|
gem "tailwindcss-phlexite", "~> 0.1.0"
|
||||||
|
|
11
Gemfile.lock
11
Gemfile.lock
|
@ -13,16 +13,25 @@ GEM
|
||||||
markly (0.12.1)
|
markly (0.12.1)
|
||||||
phlex (1.11.0)
|
phlex (1.11.0)
|
||||||
phlexite (0.1.3)
|
phlexite (0.1.3)
|
||||||
|
tailwindcss-phlexite (0.1.0)
|
||||||
|
tailwindcss-ruby (~> 4.1)
|
||||||
|
tailwindcss-ruby (4.1.8)
|
||||||
|
tailwindcss-ruby (4.1.8-aarch64-linux-gnu)
|
||||||
|
tailwindcss-ruby (4.1.8-arm64-darwin)
|
||||||
|
tailwindcss-ruby (4.1.8-x86_64-linux-gnu)
|
||||||
|
|
||||||
PLATFORMS
|
PLATFORMS
|
||||||
|
aarch64-linux
|
||||||
arm64-darwin-23
|
arm64-darwin-23
|
||||||
ruby
|
ruby
|
||||||
|
x86_64-linux
|
||||||
|
|
||||||
DEPENDENCIES
|
DEPENDENCIES
|
||||||
front_matter_parser (~> 1.0)
|
front_matter_parser (~> 1.0)
|
||||||
phlex (~> 1.11)
|
phlex (~> 1.11)
|
||||||
phlex-markdown!
|
phlex-markdown!
|
||||||
phlexite (~> 0.1.3)
|
phlexite (~> 0.1.3)
|
||||||
|
tailwindcss-phlexite (~> 0.1.0)
|
||||||
|
|
||||||
BUNDLED WITH
|
BUNDLED WITH
|
||||||
2.5.18
|
2.6.9
|
||||||
|
|
3
build.rb
3
build.rb
|
@ -1,6 +1,7 @@
|
||||||
require "phlex"
|
require "phlex"
|
||||||
require "phlex/markdown"
|
require "phlex/markdown"
|
||||||
require "phlexite"
|
require "phlexite"
|
||||||
|
require "tailwindcss/phlexite"
|
||||||
require "front_matter_parser"
|
require "front_matter_parser"
|
||||||
|
|
||||||
require_relative "util/post_loader"
|
require_relative "util/post_loader"
|
||||||
|
@ -20,6 +21,8 @@ Phlexite::Site.new { |s|
|
||||||
|
|
||||||
s.mount "assets", on: "/"
|
s.mount "assets", on: "/"
|
||||||
|
|
||||||
|
# Tailwindcss::Phlexite.build s, 'input.css', 'tailwind.css'
|
||||||
|
|
||||||
s.page "index.html", Pages::Home.new
|
s.page "index.html", Pages::Home.new
|
||||||
s.page "blog/index.html", Pages::Blog.new
|
s.page "blog/index.html", Pages::Blog.new
|
||||||
s.page "about/index.html", Pages::About.new
|
s.page "about/index.html", Pages::About.new
|
||||||
|
|
7
input.css
Normal file
7
input.css
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
@import "tailwindcss";
|
||||||
|
@layer base;
|
||||||
|
@layer components;
|
||||||
|
@layer utilities;
|
||||||
|
@layer theme;
|
||||||
|
|
||||||
|
@source "./pages";
|
|
@ -41,14 +41,14 @@ module Pages
|
||||||
link(rel: "stylesheet", href: "/site.css")
|
link(rel: "stylesheet", href: "/site.css")
|
||||||
|
|
||||||
script(defer: true, 'data-domain' => "farthergate.com", src: "https://plausible.farthergate.com/js/script.js")
|
script(defer: true, 'data-domain' => "farthergate.com", src: "https://plausible.farthergate.com/js/script.js")
|
||||||
|
|
||||||
@meta.each { |name, content|
|
@meta.each { |name, content|
|
||||||
meta(name: name, content: content)
|
meta(name: name, content: content)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
body {
|
body(class: 'm-0 p-0') {
|
||||||
header {
|
header(class: 'sticky top-0 bg-white/50 backdrop-blur-md border-gray-500 border-b flex p-3 justify-center') {
|
||||||
nav {
|
nav(class: 'flex gap-4') {
|
||||||
pages.each { |key, page|
|
pages.each { |key, page|
|
||||||
a(href: page[:url], class: key == @page ? "active" : "") { page[:title].downcase }
|
a(href: page[:url], class: key == @page ? "active" : "") { page[:title].downcase }
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue