-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix Overflow Issue and Experiment GIF for Hero Animation on Webbsite (#…
- Loading branch information
Showing
10 changed files
with
125 additions
and
37 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
{ | ||
"version": 1.1, | ||
"atDirectives": [ | ||
{ | ||
"name": "@tailwind", | ||
"description": "Use the `@tailwind` directive to insert Tailwind's `base`, `components`, `utilities` and `screens` styles into your CSS.", | ||
"references": [ | ||
{ | ||
"name": "Tailwind Documentation", | ||
"url": "https://tailwindcss.com/docs/functions-and-directives#tailwind" | ||
} | ||
] | ||
}, | ||
{ | ||
"name": "@apply", | ||
"description": "Use the `@apply` directive to inline any existing utility classes into your own custom CSS. This is useful when you find a common utility pattern in your HTML that you’d like to extract to a new component.", | ||
"references": [ | ||
{ | ||
"name": "Tailwind Documentation", | ||
"url": "https://tailwindcss.com/docs/functions-and-directives#apply" | ||
} | ||
] | ||
}, | ||
{ | ||
"name": "@responsive", | ||
"description": "You can generate responsive variants of your own classes by wrapping their definitions in the `@responsive` directive:\n```css\n@responsive {\n .alert {\n background-color: #E53E3E;\n }\n}\n```\n", | ||
"references": [ | ||
{ | ||
"name": "Tailwind Documentation", | ||
"url": "https://tailwindcss.com/docs/functions-and-directives#responsive" | ||
} | ||
] | ||
}, | ||
{ | ||
"name": "@screen", | ||
"description": "The `@screen` directive allows you to create media queries that reference your breakpoints by **name** instead of duplicating their values in your own CSS:\n```css\n@screen sm {\n /* ... */\n}\n```\n…gets transformed into this:\n```css\n@media (min-width: 640px) {\n /* ... */\n}\n```\n", | ||
"references": [ | ||
{ | ||
"name": "Tailwind Documentation", | ||
"url": "https://tailwindcss.com/docs/functions-and-directives#screen" | ||
} | ||
] | ||
}, | ||
{ | ||
"name": "@variants", | ||
"description": "Generate `hover`, `focus`, `active` and other **variants** of your own utilities by wrapping their definitions in the `@variants` directive:\n```css\n@variants hover, focus {\n .btn-brand {\n background-color: #3182CE;\n }\n}\n```\n", | ||
"references": [ | ||
{ | ||
"name": "Tailwind Documentation", | ||
"url": "https://tailwindcss.com/docs/functions-and-directives#variants" | ||
} | ||
] | ||
} | ||
] | ||
} |
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
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 |
---|---|---|
@@ -1,35 +1,39 @@ | ||
import { Button, Typography } from '@webb-tools/webb-ui-components'; | ||
import { twMerge } from 'tailwind-merge'; | ||
|
||
const manifestoUrl = 'https://docs.webb.tools/docs/overview/privacy-manifesto/'; | ||
|
||
export const HeroSection = () => { | ||
return ( | ||
<section className="absolute w-full -translate-y-1/3 top-1/4"> | ||
<div className="max-w-[454px] md:max-w-[934px] space-y-2 p-4 mx-auto w-full lg:p-0 md:space-y-6"> | ||
<Typography | ||
variant="mkt-h1" | ||
className="text-center text-mono-200 font-black" | ||
> | ||
Privacy that Brings Blockchains Together{' '} | ||
</Typography> | ||
<section | ||
className={twMerge( | ||
'z-10 space-y-2 p-4 mx-auto w-full lg:p-0 md:space-y-6', | ||
'max-w-[454px] md:max-w-[934px] relative -top-[var(--header-height)]' | ||
)} | ||
> | ||
<Typography | ||
variant="mkt-h1" | ||
className="font-black text-center text-mono-200" | ||
> | ||
Privacy that Brings Blockchains Together{' '} | ||
</Typography> | ||
|
||
<Typography | ||
variant="mkt-subheading" | ||
className="text-center text-mono-140 font-medium !mt-[24px]" | ||
> | ||
Webb builds infrastructure for connecting zero-knowledge applications | ||
empowering developers to unlock user privacy in the Web3 ecosystem. | ||
</Typography> | ||
<Typography | ||
variant="mkt-subheading" | ||
className="text-center text-mono-140 font-medium !mt-[24px]" | ||
> | ||
Webb builds infrastructure for connecting zero-knowledge applications | ||
empowering developers to unlock user privacy in the Web3 ecosystem. | ||
</Typography> | ||
|
||
<Button | ||
href={manifestoUrl} | ||
target="_blank" | ||
rel="noreferrer" | ||
className="block mx-auto button-base button-primary !mt-[24px]" | ||
> | ||
Read the Manifesto | ||
</Button> | ||
</div> | ||
<Button | ||
href={manifestoUrl} | ||
target="_blank" | ||
rel="noreferrer" | ||
className="block mx-auto button-base button-primary !mt-[24px]" | ||
> | ||
Read the Manifesto | ||
</Button> | ||
</section> | ||
); | ||
}; |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
@import './variables.css'; | ||
|
||
#__next { | ||
background-color: #fff; | ||
} | ||
|
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,3 @@ | ||
:root { | ||
--header-height: 79px; | ||
} |