Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Web 3 contact #1

Merged
merged 9 commits into from
Jan 2, 2024
Merged
Show file tree
Hide file tree
Changes from 8 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
"@fontsource-variable/space-grotesk": "5.0.16",
"@fontsource/noto-sans-thai-looped": "5.0.8",
"astro": "4.0.7",
"sharp": "0.33.1",
"svelte": "4.2.8",
"tailwindcss": "3.4.0",
"typescript": "5.3.3"
Expand Down
234 changes: 229 additions & 5 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file added src/assets/isd-logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
40 changes: 40 additions & 0 deletions src/pages/contact/index.astro
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
---
import Layout from "../../layouts/Layout.astro";
import { Image } from "astro:assets";
import isdlogo from "../../assets/isd-logo.png";
---

<Layout title="Contact">
<main
class="min-h-screen w-full items-center justify-center bg-[#0F0F0F] px-[8%] py-7 lg:px-[3%] lg:py-12"
>
<p class="animate-sliding-left text-2xl font-bold text-white lg:text-4xl">
Contact
</p>
<div class="mt-7 grid place-items-stretch lg:mt-16 lg:grid-cols-2">
<div class="flex justify-center lg:justify-start">
<Image
class="w-[55%] animate-sliding-right rounded-full lg:w-[80%] lg:animate-sliding-left"
src={isdlogo}
alt="isd-logo"
/>
</div>

<div
class="flex animate-sliding-right flex-col space-y-48 pt-20 text-right lg:h-full lg:justify-between lg:space-y-0 lg:py-10"
>
<div
class="space-y-4 text-xl font-light text-white lg:space-y-12 lg:text-4xl"
>
<p>[email protected]</p>
<p>Instagram</p>
</div>
<div
class="text-6xl font-bold tracking-[.64rem] text-white lg:text-8xl"
>
Get In<br />Touch
</div>
</div>
</div>
</main>
</Layout>
25 changes: 24 additions & 1 deletion tailwind.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,30 @@
export default {
content: ["./src/**/*.{astro,html,js,jsx,md,mdx,svelte,ts,tsx,vue}"],
theme: {
extend: {},
extend: {
keyframes: {
slideLeft: {
"0%": { transform: "translateX(-100%)" },
"70%": { transform: "translateX(2%)" },
"100%": { transform: "translateX(0)" },
},
slideRight: {
"0%": { transform: "translateX(100%)" },
"70%": { transform: "translateX(-2%)" },
"100%": { transform: "translateX(0)" },
},
},
animation: {
"sliding-left": "slideLeft 1.5s",
"sliding-right": "slideRight 1.5s",
},
},
screens: {
sm: "640px",
md: "768px",
lg: "1024px",
xl: "1280px",
},
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tailwind already have this and we should not override unless we have our design system

},
plugins: [],
};