Skip to content

Commit 1dde172

Browse files
committed
make it look better on mobile
1 parent a7fc0e8 commit 1dde172

14 files changed

+34
-29
lines changed

lib/personal.ex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ defmodule Personal do
1111
<title><%= @post.title %></title>
1212
<meta name="description" content={@post.description} />
1313
</:head>
14-
<article class="prose lg:prose-xl prose-pre:bg-codebg">
14+
<article class="mx-auto prose sm:prose-sm md:prose-md lg:prose-xl prose-pre:bg-codebg">
1515
<h1><%= @post.title %></h1>
1616
<h3><%= @post.description %></h3>
1717
<h3><a href={@post.related_listening}>Related Listening</a></h3>
@@ -58,7 +58,7 @@ defmodule Personal do
5858
<header class="bg-bludacris p-10 my-4 lg:mt-10 lg:mb-14">
5959
<h1><a href={url()}>andy@andyleclair.dev</a>$><span class="blink">_</span></h1>
6060
</header>
61-
<main class="relative grow min-h-96 flex-1 p-4">
61+
<main class="container mx-auto relative grow min-h-96 flex-1 p-4 items-center">
6262
<%= render_slot(@inner_block) %>
6363
</main>
6464
<footer class="mt-24 bg-bludacris p-4 text-center">

lib/personal/watcher.ex

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ defmodule Personal.Watcher do
77
end
88

99
def init(args) do
10+
rebuild_site()
1011
{:ok, watcher_pid} = FileSystem.start_link(args)
1112
FileSystem.subscribe(watcher_pid)
1213
{:ok, %{watcher_pid: watcher_pid}}
@@ -18,11 +19,7 @@ defmodule Personal.Watcher do
1819
%{watcher_pid: watcher_pid} = state
1920
) do
2021
Mix.shell().info(["File modified: #{path}"])
21-
Mix.shell().info(["Site Rebuilding"])
22-
# Currently, we're just recompiling the entire site
23-
# TODO: make this fancier based on the path
24-
System.cmd("mix", ["site.build"])
25-
Mix.shell().info([:green, "Site rebuilt"])
22+
rebuild_site()
2623
{:noreply, state}
2724
end
2825

@@ -32,4 +29,12 @@ defmodule Personal.Watcher do
3229
) do
3330
{:noreply, state}
3431
end
32+
33+
defp rebuild_site() do
34+
Mix.shell().info([:yellow, "Site Rebuilding"])
35+
# Currently, we're just recompiling the entire site
36+
# TODO: make this fancier based on the path
37+
System.cmd("mix", ["site.build"])
38+
Mix.shell().info([:green, "Site Rebuilt"])
39+
end
3540
end

output/assets/app.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

output/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
<header class="bg-bludacris p-10 my-4 lg:mt-10 lg:mb-14">
1717
<h1><a href="https://andyleclair.dev/">andy@andyleclair.dev</a>$><span class="blink">_</span></h1>
1818
</header>
19-
<main class="relative grow min-h-96 flex-1 p-4">
19+
<main class="container mx-auto relative grow min-h-96 flex-1 p-4 items-center">
2020

2121
<h2 class="text-xl">Blog!</h2>
2222
<ul>

output/posts/2024/08-27-hello-world.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@
1616
<header class="bg-bludacris p-10 my-4 lg:mt-10 lg:mb-14">
1717
<h1><a href="https://andyleclair.dev/">andy@andyleclair.dev</a>$><span class="blink">_</span></h1>
1818
</header>
19-
<main class="relative grow min-h-96 flex-1 p-4">
19+
<main class="container mx-auto relative grow min-h-96 flex-1 p-4 items-center">
2020

21-
<article class="prose lg:prose-xl prose-pre:bg-codebg">
21+
<article class="mx-auto prose sm:prose-sm md:prose-md lg:prose-xl prose-pre:bg-codebg">
2222
<h1>Hello world!</h1>
2323
<h3>The Start of Something</h3>
2424
<h3><a href="https://www.youtube.com/watch?v=wVrSXeRXSWE">Related Listening</a></h3>

output/posts/2024/08-28-readme.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@
1616
<header class="bg-bludacris p-10 my-4 lg:mt-10 lg:mb-14">
1717
<h1><a href="https://andyleclair.dev/">andy@andyleclair.dev</a>$><span class="blink">_</span></h1>
1818
</header>
19-
<main class="relative grow min-h-96 flex-1 p-4">
19+
<main class="container mx-auto relative grow min-h-96 flex-1 p-4 items-center">
2020

21-
<article class="prose lg:prose-xl prose-pre:bg-codebg">
21+
<article class="mx-auto prose sm:prose-sm md:prose-md lg:prose-xl prose-pre:bg-codebg">
2222
<h1>README</h1>
2323
<h3>About this site</h3>
2424
<h3><a href="https://www.youtube.com/watch?v=9q4mVEcedSo">Related Listening</a></h3>

output/posts/2024/09-09-gltest.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@
1616
<header class="bg-bludacris p-10 my-4 lg:mt-10 lg:mb-14">
1717
<h1><a href="https://andyleclair.dev/">andy@andyleclair.dev</a>$><span class="blink">_</span></h1>
1818
</header>
19-
<main class="relative grow min-h-96 flex-1 p-4">
19+
<main class="container mx-auto relative grow min-h-96 flex-1 p-4 items-center">
2020

21-
<article class="prose lg:prose-xl prose-pre:bg-codebg">
21+
<article class="mx-auto prose sm:prose-sm md:prose-md lg:prose-xl prose-pre:bg-codebg">
2222
<h1>GLtest</h1>
2323
<h3>First steps with OpenGL in Elixir</h3>
2424
<h3><a href="https://www.youtube.com/watch?v=7ny2t1I6aTo">Related Listening</a></h3>

output/posts/2024/09-10-opengl-part-2.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@
1616
<header class="bg-bludacris p-10 my-4 lg:mt-10 lg:mb-14">
1717
<h1><a href="https://andyleclair.dev/">andy@andyleclair.dev</a>$><span class="blink">_</span></h1>
1818
</header>
19-
<main class="relative grow min-h-96 flex-1 p-4">
19+
<main class="container mx-auto relative grow min-h-96 flex-1 p-4 items-center">
2020

21-
<article class="prose lg:prose-xl prose-pre:bg-codebg">
21+
<article class="mx-auto prose sm:prose-sm md:prose-md lg:prose-xl prose-pre:bg-codebg">
2222
<h1>OpenGL Part 2</h1>
2323
<h3>Drawing a triangle</h3>
2424
<h3><a href="https://www.youtube.com/watch?v=tDd3p-xn7_U">Related Listening</a></h3>

output/posts/2024/09-11-opengl-part-3.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@
1616
<header class="bg-bludacris p-10 my-4 lg:mt-10 lg:mb-14">
1717
<h1><a href="https://andyleclair.dev/">andy@andyleclair.dev</a>$><span class="blink">_</span></h1>
1818
</header>
19-
<main class="relative grow min-h-96 flex-1 p-4">
19+
<main class="container mx-auto relative grow min-h-96 flex-1 p-4 items-center">
2020

21-
<article class="prose lg:prose-xl prose-pre:bg-codebg">
21+
<article class="mx-auto prose sm:prose-sm md:prose-md lg:prose-xl prose-pre:bg-codebg">
2222
<h1>OpenGL Part 3</h1>
2323
<h3>Layering shapes, displaying FPS</h3>
2424
<h3><a href="https://www.youtube.com/watch?v=bwsjQbf0czc">Related Listening</a></h3>

output/posts/2024/10-28-live-fridge.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@
1616
<header class="bg-bludacris p-10 my-4 lg:mt-10 lg:mb-14">
1717
<h1><a href="https://andyleclair.dev/">andy@andyleclair.dev</a>$><span class="blink">_</span></h1>
1818
</header>
19-
<main class="relative grow min-h-96 flex-1 p-4">
19+
<main class="container mx-auto relative grow min-h-96 flex-1 p-4 items-center">
2020

21-
<article class="prose lg:prose-xl prose-pre:bg-codebg">
21+
<article class="mx-auto prose sm:prose-sm md:prose-md lg:prose-xl prose-pre:bg-codebg">
2222
<h1>Live Fridge</h1>
2323
<h3>My take on an internet fridge magnet poetry experience using Elixir, Ash, and LiveView.</h3>
2424
<h3><a href="https://open.spotify.com/playlist/0hTDYi34toP4tTE8rCAkgY?si=671fa097213c4103">Related Listening</a></h3>

0 commit comments

Comments
 (0)