Skip to content

Commit

Permalink
Merge pull request #65 from camino-school/landing-update
Browse files Browse the repository at this point in the history
Landing update
  • Loading branch information
endoooo authored Feb 28, 2024
2 parents 2cdb24b + fbdd2df commit 02b45b0
Show file tree
Hide file tree
Showing 9 changed files with 66 additions and 58 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/fly_deploy_manual.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@ jobs:
steps:
- uses: actions/checkout@v3
- uses: superfly/flyctl-actions/setup-flyctl@master
- run: flyctl deploy --remote-only
- run: flyctl deploy --remote-only -a ${{ secrets.FLY_APP_NAME }}
env:
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}
8 changes: 0 additions & 8 deletions assets/css/app.css
Original file line number Diff line number Diff line change
Expand Up @@ -86,14 +86,6 @@
}
}

#active-learning {
background-size: cover;
background-position: center;
background-image:
linear-gradient(0deg, rgba(236, 254, 255, 0.8), rgba(236, 254, 255, 0.8)),
url('/images/active-learning-bg.jpg');
}

#curriculum-spot-1 {
animation: 8s linear 0s infinite normal spin;
}
Expand Down
28 changes: 15 additions & 13 deletions fly.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
# See https://fly.io/docs/reference/configuration/ for information about how to use this file.
#

# use `-a` flag to override the app name
app = "lanttern-dev"
primary_region = "gru"
kill_signal = "SIGTERM"
Expand All @@ -11,20 +12,21 @@ swap_size_mb = 512
[build]

[deploy]
release_command = "/app/bin/migrate"
release_command = "/app/bin/migrate"

[env]
PHX_HOST = "lanttern-dev.fly.dev"
PORT = "8080"
# use fly secrets to override PHX_HOST
PHX_HOST = "lanttern-dev.fly.dev"
PORT = "8080"

[http_service]
internal_port = 8080
force_https = true
auto_stop_machines = true
auto_start_machines = true
min_machines_running = 0
processes = ["app"]
[http_service.concurrency]
type = "connections"
hard_limit = 1000
soft_limit = 1000
internal_port = 8080
force_https = true
auto_stop_machines = true
auto_start_machines = true
min_machines_running = 0
processes = ["app"]
[http_service.concurrency]
type = "connections"
hard_limit = 1000
soft_limit = 1000
79 changes: 48 additions & 31 deletions lib/lanttern_web/controllers/page_html/home.html.heex
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,14 @@
</div>
<% end %>
</header>
<div id="active-learning" class="relative px-10 py-40">
<div
class="relative px-10 py-40 md:py-60 bg-cover bg-center"
style="
background-image:
linear-gradient(0deg, rgba(236, 254, 255, 0.8), rgba(236, 254, 255, 0.8)),
url('/images/active-learning-bg.jpg')
"
>
<div class="max-w-3xl mx-auto">
<p class="font-display font-black text-2xl">
We believe that students learn best when they are actively engaged in the learning process
Expand Down Expand Up @@ -103,20 +110,8 @@
</div>
<p class="absolute right-2 bottom-2 text-xs text-right text-ltrn-subtle">
Photo by
<a
href="https://unsplash.com/@vantaymedia?utm_content=creditCopyText&utm_medium=referral&utm_source=unsplash"
target="_blank"
class="underline"
>
Van Tay Media
</a>
on
<a
href="https://unsplash.com/photos/meeting-of-people-TOBRTuE_uXA?utm_content=creditCopyText&utm_medium=referral&utm_source=unsplash"
target="_blank"
class="underline"
>
Unsplash
<a href="https://caminoschool.com.br" target="_blank" class="underline">
Camino School
</a>
</p>
</div>
Expand Down Expand Up @@ -559,7 +554,7 @@
<div class="flex-1 shrink-0 min-w-[15rem] rounded mb-32 shadow-xl bg-white overflow-hidden">
<div
class="w-full h-40 bg-center bg-cover"
style="background-image: url(/images/strand1.jpg)"
style="background-image: url(/images/strand-reading.jpg)"
/>
<div class="flex flex-col gap-6 p-6">
<p class="font-display font-black text-3xl underline">
Expand All @@ -572,18 +567,8 @@
<div class="prose prose-sm">
<p>
Photo by
<a
href="https://unsplash.com/@eliottreyna?utm_content=creditCopyText&utm_medium=referral&utm_source=unsplash"
target="_blank"
>
Eliott Reyna
</a>
on
<a
href="https://unsplash.com/photos/woman-reading-book-kcT-7cirBEw?utm_content=creditCopyText&utm_medium=referral&utm_source=unsplash"
target="_blank"
>
Unsplash
<a href="https://caminoschool.com.br" target="_blank">
Camino School
</a>
</p>
<p>In dolor consequatur et est. Necessitatibus nostrum in dicta nam qui.</p>
Expand Down Expand Up @@ -750,6 +735,17 @@
</div>
</section>
</main>
<div
class="relative h-screen bg-cover bg-center bg-fixed"
style="background-image: url('/images/landing-break.jpg')"
>
<p class="absolute right-2 bottom-2 text-xs text-right text-white">
Photo by
<a href="https://caminoschool.com.br" target="_blank" class="underline">
Camino School
</a>
</p>
</div>
<section class="pt-40 bg-ltrn-lighter">
<div class="max-w-3xl px-10 md:px-6 mx-auto">
<h2 class="font-display font-black text-2xl">
Expand Down Expand Up @@ -821,7 +817,13 @@
Did we mention that you'll also get access to all Camino and other partner schools' curriculum, strands, and moments?
</p>
<p class="font-display font-black mt-10">
<a href="#" class="underline hover:text-ltrn-subtle">Join the waitlist</a>
<a
href="https://forms.gle/WwQjevKRzKV1dRB38"
target="_blank"
class="underline hover:text-ltrn-subtle"
>
Join the waitlist
</a>
</p>
</div>
</div>
Expand All @@ -838,8 +840,23 @@
</a>
</h4>
<div class="lg:flex lg:gap-10 w-fit mt-20 mx-auto text-center">
<a href="#" class="underline">Privacy policy</a>
<p class="mt-4 lg:mt-0">Copyright © 2023 Camino School</p>
<p class="text-ltrn-subtle">
<span class="underline text-ltrn-dark">Privacy policy</span> (🚧 under development)
</p>
<p class="mt-4 lg:mt-0">Copyright © 2024 Camino School</p>
</div>
</footer>
<div
id="preview-warning"
class="fixed z-50 bottom-0 inset-x-0 p-4 text-white text-sm text-center bg-ltrn-dark"
>
🚧 This is a preview. Lanttern official release is scheduled for late 2024.
<button
type="button"
class="ml-2 text-ltrn-subtle underline hover:text-white"
phx-click={JS.hide(to: "#preview-warning")}
>
Dismiss
</button>
</div>
</div>
Binary file modified priv/static/favicon.ico
Binary file not shown.
Binary file modified priv/static/images/active-learning-bg.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added priv/static/images/landing-break.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added priv/static/images/strand-reading.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 2 additions & 5 deletions priv/static/robots.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,2 @@
# See https://www.robotstxt.org/robotstxt.html for documentation on how to use the robots.txt file
#
# To ban all spiders from the entire site uncomment the next two lines:
# User-agent: *
# Disallow: /
User-agent: *
Disallow: /

0 comments on commit 02b45b0

Please sign in to comment.