Skip to content

Commit

Permalink
add event migration
Browse files Browse the repository at this point in the history
  • Loading branch information
CorneliaKelinske committed Aug 2, 2024
1 parent a501dae commit 61688ec
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 21 deletions.
42 changes: 21 additions & 21 deletions lib/women_in_tech_vic_web/controllers/page_html/home.html.heex
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
<body>
<nav class="p-4 flex justify-between items-center">
<div class="text-2xl font-bold">Women in Tech Victoria</div>
<div>
<a href="#contact" class="mr-4 text-lg hover:underline">Contact</a>
<a href="#login" class="text-lg hover:underline">Login</a>
</div>
</nav>
<header class="flex-grow flex flex-col items-center justify-center p-4 text-center">
<h1 class="text-5xl font-extrabold mb-4">Welcome to Women in Tech Victoria</h1>
<p class="text-lg max-w-prose mb-8">This group is for women who are working (or are interested in working) in the tech industry.
The goal of this group is to create a supportive and welcoming community where we can chat and share our experience with working in workplaces where, as women, we're often a bit of a unicorn.</p>
<div class="w-full max-w-lg p-6 bg-white bg-opacity-25 rounded-lg">
<h2 class="text-2xl font-semibold mb-4">Next Event</h2>
<p class="text-lg">Join us for our next meetup on [Date] at [Location].</p>
</div>
</header>
<footer class="p-4 text-center">
<p>&copy; 2024 Women in Tech Victoria</p>
</footer>
<nav class="p-4 flex justify-between items-center">
<div class="text-2xl font-bold">Women in Tech Victoria</div>
<div>
<a href="#contact" class="mr-4 text-lg hover:underline">Contact</a>
<a href="#login" class="text-lg hover:underline">Login</a>
</div>
</nav>
<header class="flex-grow flex flex-col items-center justify-center p-4 text-center">
<h1 class="text-5xl font-extrabold mb-4">Welcome to Women in Tech Victoria</h1>
<p class="text-lg max-w-prose mb-8">
This group is for women who are working (or are interested in working) in the tech industry.
The goal of this group is to create a supportive and welcoming community where we can chat and share our experience with working in workplaces where, as women, we're often a bit of a unicorn.
</p>
<div class="w-full max-w-lg p-6 bg-white bg-opacity-25 rounded-lg">
<h2 class="text-2xl font-semibold mb-4">Next Event</h2>
<p class="text-lg">Join us for our next meetup on [Date] at [Location].</p>
</div>
</header>
<footer class="p-4 text-center">
<p>&copy; 2024 Women in Tech Victoria</p>
</footer>
</body>


15 changes: 15 additions & 0 deletions priv/repo/migrations/20240802171522_create_events.exs
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
defmodule WomenInTechVic.Repo.Migrations.CreateEvents do
use Ecto.Migration

def change do
create table(:events) do
add :title, :text, null: false
add :scheduled_at, :utc_datetime_usec, null: false
add :online, :boolean, null: false
add :address, :text, null: false
add :description, :text, null: false

timestamps(type: :utc_datetime_usec)
end
end
end

0 comments on commit 61688ec

Please sign in to comment.