-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from thiagoesteves/thi/add-default-home-supervisor
Adding home and supervisor pages
- Loading branch information
Showing
12 changed files
with
175 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,99 @@ | ||
defmodule CaloriWeb.HomeLive do | ||
use CaloriWeb, :live_view | ||
|
||
@impl true | ||
def render(assigns) do | ||
~H""" | ||
<div class="relative bg-gray-200 px-6 pb-20 lg:px-8 lg:pt-24 lg:pb-28"> | ||
<div class="absolute inset-0"> | ||
<div class="h-1/3 bg-gray-100 sm:h-2/3"></div> | ||
</div> | ||
<div class="relative mx-auto max-w-7xl"> | ||
<div class="mx-auto grid max-w-lg gap-5 lg:max-w-none lg:grid-cols-3"> | ||
<div class="flex flex-col overflow-hidden rounded-lg shadow-lg"> | ||
<div class="flex-shrink-0"> | ||
<img class="h-48 w-full object-cover" src={~p"/images/blog.png"} alt="" /> | ||
</div> | ||
<div class="flex flex-1 flex-col justify-between bg-white p-6"> | ||
<div class="flex-1"> | ||
<p class="text-sm font-medium text-indigo-600"> | ||
<a href="#" class="hover:underline">Blog</a> | ||
</p> | ||
<a href="#" class="mt-2 block"> | ||
<p class="text-xl font-semibold text-gray-900">Check out the new articles</p> | ||
<p class="mt-3 text-base text-gray-500">Coming soon...</p> | ||
</a> | ||
</div> | ||
</div> | ||
</div> | ||
<div class="flex flex-col overflow-hidden rounded-lg shadow-lg"> | ||
<div class="flex-shrink-0"> | ||
<img class="h-48 w-full object-cover" src={~p"/images/who_am_i.png"} alt="" /> | ||
</div> | ||
<div class="flex flex-1 flex-col justify-between bg-white p-6"> | ||
<div class="flex-1"> | ||
<p class="text-sm font-medium text-indigo-600"> | ||
<a href={~p"/supervisor"} class="hover:underline">Supervisor</a> | ||
</p> | ||
<a href={~p"/supervisor"} class="mt-2 block"> | ||
<p class="text-xl font-semibold text-gray-900"> | ||
Who is supervising Calori Software? | ||
</p> | ||
<p class="mt-3 text-base text-gray-500"> | ||
If you know about the Erlang or Elixir then you are going to love this one. | ||
</p> | ||
</a> | ||
</div> | ||
</div> | ||
</div> | ||
<div class="flex flex-col overflow-hidden rounded-lg shadow-lg"> | ||
<div class="flex-shrink-0"> | ||
<img class="h-48 w-full object-cover" src={~p"/images/get_in_touch.png"} alt="" /> | ||
</div> | ||
<div class="flex flex-1 flex-col justify-between bg-white p-6"> | ||
<div class="flex-1"> | ||
<p class="text-sm font-medium text-indigo-600"> | ||
<a | ||
href="https://www.linkedin.com/in/thiago-cesar-calori-esteves-972368115/" | ||
class="hover:underline" | ||
> | ||
Contact | ||
</a> | ||
</p> | ||
<a | ||
href="https://www.linkedin.com/in/thiago-cesar-calori-esteves-972368115/" | ||
class="mt-2 block" | ||
> | ||
<p class="text-xl font-semibold text-gray-900">Get in touch!</p> | ||
<button class="bg-blue-500 mt-10 p-2 font-semibold text-white inline-flex items-center space-x-2 rounded"> | ||
<svg | ||
class="w-5 h-5 fill-current" | ||
role="img" | ||
viewBox="0 0 256 256" | ||
xmlns="http://www.w3.org/2000/svg" | ||
> | ||
<g> | ||
<path d="M218.123122,218.127392 L180.191928,218.127392 L180.191928,158.724263 C180.191928,144.559023 179.939053,126.323993 160.463756,126.323993 C140.707926,126.323993 137.685284,141.757585 137.685284,157.692986 L137.685284,218.123441 L99.7540894,218.123441 L99.7540894,95.9665207 L136.168036,95.9665207 L136.168036,112.660562 L136.677736,112.660562 C144.102746,99.9650027 157.908637,92.3824528 172.605689,92.9280076 C211.050535,92.9280076 218.138927,118.216023 218.138927,151.114151 L218.123122,218.127392 Z M56.9550587,79.2685282 C44.7981969,79.2707099 34.9413443,69.4171797 34.9391618,57.260052 C34.93698,45.1029244 44.7902948,35.2458562 56.9471566,35.2436736 C69.1040185,35.2414916 78.9608713,45.0950217 78.963054,57.2521493 C78.9641017,63.090208 76.6459976,68.6895714 72.5186979,72.8184433 C68.3913982,76.9473153 62.7929898,79.26748 56.9550587,79.2685282 M75.9206558,218.127392 L37.94995,218.127392 L37.94995,95.9665207 L75.9206558,95.9665207 L75.9206558,218.127392 Z M237.033403,0.0182577091 L18.8895249,0.0182577091 C8.57959469,-0.0980923971 0.124827038,8.16056231 -0.001,18.4706066 L-0.001,237.524091 C0.120519052,247.839103 8.57460631,256.105934 18.8895249,255.9977 L237.033403,255.9977 C247.368728,256.125818 255.855922,247.859464 255.999,237.524091 L255.999,18.4548016 C255.851624,8.12438979 247.363742,-0.133792868 237.033403,0.000790807055"> | ||
</path> | ||
</g> | ||
</svg> | ||
<p class="mr-2">Linkedin</p> | ||
</button> | ||
</a> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
""" | ||
end | ||
|
||
@impl true | ||
def mount(_params, _session, socket) do | ||
{:ok, socket} | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
defmodule CaloriWeb.SupervisorLive do | ||
use CaloriWeb, :live_view | ||
|
||
@impl true | ||
def render(assigns) do | ||
~H""" | ||
<%!-- <div class="min-h-screen bg-gray-700 flex flex-col items-center justify-center"> | ||
<h1 class="text-5xl text-white font-bold mb-8 animate-pulse"> | ||
Coming Soon | ||
</h1> | ||
<p class="text-white text-lg mb-8"> | ||
We're working hard to bring you something amazing. Stay tuned! | ||
</p> | ||
</div> --%> | ||
<div class=" flex min-h-screen bg-gray-100 rounded-b-lg "> | ||
<div class="container mt-5 mx-auto md:px-6 "> | ||
<section class="mb-32"> | ||
<div class="flex flex-wrap"> | ||
<div class="w-full shrink-0 grow-0 basis-auto md:w-3/12 lg:w-4/12"> | ||
<img | ||
src={~p"/images/supervisor.png"} | ||
class="mb-6 w-full rounded-lg shadow-lg dark:shadow-black/20" | ||
alt="Avatar" | ||
/> | ||
</div> | ||
<div class="w-full shrink-0 grow-0 basis-auto text-center md:w-9/12 md:pl-6 md:text-left lg:w-8/12"> | ||
<h5 class="mb-6 text-xl font-semibold">Who supervises the application?</h5> | ||
<p> | ||
<u><a href="https://calori.com.br/">Calori Software</a></u> | ||
webserver was created using the Erlang Beam VM and the <u><a href="https://www.phoenixframework.org/">Phoenix Liveview Framework</a></u>. | ||
Its source code and all deployment configurations are available at this <u><a href="https://github.com/thiagoesteves/calori">repository</a></u>. | ||
This webserver is also supervised by <u><a href="https://github.com/thiagoesteves/deployex">Deployex</a></u>, | ||
another Phoenix LiveView application specifically designed for supervising Elixir applications. If you want to check real time deployments within calori webserver, just <u><a href="https://deployex.calori.com.br/">click here</a></u>. | ||
</p> | ||
</div> | ||
</div> | ||
</section> | ||
</div> | ||
</div> | ||
""" | ||
end | ||
|
||
@impl true | ||
def mount(_params, _session, socket) do | ||
{:ok, socket} | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters