Skip to content

Commit

Permalink
Fixed button, added support for mobile in Header and landing part
Browse files Browse the repository at this point in the history
  • Loading branch information
evilmonkey19 committed Apr 4, 2024
1 parent 2fc9b01 commit 39451e0
Show file tree
Hide file tree
Showing 5 changed files with 41 additions and 25 deletions.
23 changes: 23 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"request": "launch",
"name": "Launch Program",
"type": "node",
"program": "${workspaceFolder}/dev.ts",
"cwd": "${workspaceFolder}",
"runtimeExecutable": "/Users/enric/.deno/bin/deno",
"runtimeArgs": [
"run",
"--inspect-wait",
"--allow-all",
"--watch=static/,routes/,components/"
],
"attachSimplePort": 9229
}
]
}
2 changes: 1 addition & 1 deletion components/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export default function Header() {
<a className="text-2xl font-bold" href="/" title="Jump to the beginning">
<img src="/logo.png" alt="Logo from ET English Theater" width="40px" height="40px" />
</a>
<div className="flex gap-4 md:gap-16 text-xl text-black-950 font-light">
<div className="flex gap-4 md:gap-16 text-lg md:text-xl text-black-950 font-light">
<a href="#events" title="Jump to events">Events</a>
<a href="#productions" title="Jump to productions">Productions</a>
</div>
Expand Down
29 changes: 17 additions & 12 deletions components/Landing.tsx
Original file line number Diff line number Diff line change
@@ -1,22 +1,27 @@
const Landing = () => (
<div className="h-svh bg-contain bg-right bg-no-repeat bg-black md:grid grid-cols-7" style="background-image: url('background_landing.webp')">
<div className="h-svh bg-cover md:bg-contain bg-right bg-no-repeat bg-black md:grid grid-cols-7"
style={{ backgroundImage: "linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('background_landing.webp')" }}>
<div className="col-span-1"></div>
<div className="col-span-5 h-svh flex flex-col justify-center items-left gap-8 text-gray-50">
<div className="col-span-5 h-svh flex flex-col justify-center items-left gap-8 text-gray-50 mx-4 md:mx-0">
<div className="md:h-16"></div>
<p className="text-8xl text-left text-balance">English Theater Improv Club</p>
<p className="text-6xl md:text-8xl text-left text-balance">English Theater Improv Club</p>
<div className="flex gap-4 w-max-32">
<p className="font-rye text-8xl text-[#5063a1] self-place-top h-24"></p>
<p className="text-balance font-light leading-loose self-center text-lg">We are a theater association based in Stockholm, Sweden.
<p className="font-rye text-6xl md:text-8xl text-[#5063a1] self-place-top h-24"></p>
<p className="text-pretty md:text-balance font-light leading-loose self-center text-lg">We are a theater association based in Stockholm, Sweden.
We try to bring the joy of <span className="font-bold">improv and theater</span> to local and international students.</p>
</div>
<div className="flex gap-4 text-xl">
<a href="/" className="relative">
<img className="w-full" src="/icons/union_green.svg" />
<p className="text-[#159288] hover:bg-[#159288] hover:text-gray-50 absolute top-5 left-12 text-2xl font-semibold w-full">Hire us</p>
<div className="flex flex-col md:flex-row gap-2 md:gap-4 items-center text-xl">
<a href="/" className="group">
<svg class="stroke-[#159288] group-hover:fill-[#159288]" height="120" width="215" xmlns="http://www.w3.org/2000/svg">
<polygon points="10,10 200,10 200,90 70,90 20,115 30,90 10,90" class="stroke-[3]" />
<text x="60" y="60" class="group-hover:stroke-gray-50 group-hover:fill-gray-50 fill-[#159288] font-sans text-3xl stroke-1">Hire us</text>
</svg>
</a>
<a href="/" className="relative">
<img className="w-full" src="/icons/union_pink.svg" />
<p className="text-[#b961c1] hover:text-[#ffce5f] absolute top-5 left-12 text-2xl font-semibold">Join us</p>
<a href="/" class="group">
<svg class="stroke-[#b961c1] group-hover:fill-[#b961c1]" height="120" width="215" xmlns="http://www.w3.org/2000/svg">
<polygon points="10,10 200,10 200,90 70,90 20,115 30,90 10,90" class="stroke-[3]" />
<text x="60" y="60" class="group-hover:stroke-gray-50 group-hover:fill-gray-50 fill-[#b961c1] font-sans text-3xl stroke-1">Join us</text>
</svg>
</a>
</div>
<div className="col-span-1"></div>
Expand Down
6 changes: 0 additions & 6 deletions static/icons/union_green.svg

This file was deleted.

6 changes: 0 additions & 6 deletions static/icons/union_pink.svg

This file was deleted.

0 comments on commit 39451e0

Please sign in to comment.