-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* layout changes * restrict max width component * header/footer style compatible with page background image
- Loading branch information
1 parent
f965c90
commit f872821
Showing
17 changed files
with
214 additions
and
188 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import { MinifrontVersion } from './minifront-version'; | ||
import { RightsMessage } from './rights-message'; | ||
|
||
export const Footer = () => ( | ||
<footer className='w-full bg-gradient-to-b from-transparent to-black to-40% pt-[3em]'> | ||
<div className='text-center text-stone-700'> | ||
<RightsMessage /> | ||
<MinifrontVersion /> | ||
</div> | ||
</footer> | ||
); |
This file was deleted.
Oops, something went wrong.
22 changes: 22 additions & 0 deletions
22
apps/minifront/src/components/footer/minifront-version.tsx
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,22 @@ | ||
import { format } from 'date-fns'; | ||
|
||
export const MinifrontVersion = () => { | ||
const shortenedCommitHash = __COMMIT_HASH__.slice(0, 7); | ||
const dateObj = new Date(__COMMIT_DATE__); | ||
const formattedDate = format(dateObj, "MMM dd yyyy HH:mm:ss 'GMT'x"); | ||
return ( | ||
<div> | ||
Version | ||
<a | ||
target='_blank' | ||
className='underline' | ||
href={`${__GIT_ORIGIN_URL__}/commits/${__COMMIT_HASH__}`} | ||
rel='noreferrer' | ||
> | ||
{shortenedCommitHash} | ||
</a> | ||
{' - '} | ||
{formattedDate} | ||
</div> | ||
); | ||
}; |
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,17 @@ | ||
export const RightsMessage = () => { | ||
return ( | ||
<div> | ||
<b>This software runs entirely on your device.</b> | ||
<br /> | ||
<a | ||
target='_blank' | ||
rel='noreferrer' | ||
className='underline' | ||
href='https://www.coincenter.org/electronic-cash-decentralized-exchange-and-the-constitution/' | ||
> | ||
Learn more | ||
</a>{' '} | ||
about your rights. | ||
</div> | ||
); | ||
}; |
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,9 +1,3 @@ | ||
import { Card } from '@penumbra-zone/ui/components/ui/card'; | ||
|
||
export const IbcInForm = () => { | ||
return ( | ||
<Card gradient className='md:p-5'> | ||
To come... | ||
</Card> | ||
); | ||
return <div>To come...</div>; | ||
}; |
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,11 +1,16 @@ | ||
import { Card } from '@penumbra-zone/ui/components/ui/card'; | ||
import { IbcInForm } from './ibc-in-form'; | ||
import { IbcOutForm } from './ibc-out-form'; | ||
|
||
export const IbcLayout = () => { | ||
return ( | ||
<div className='grid md:grid-cols-2 md:gap-5'> | ||
<IbcInForm /> | ||
<IbcOutForm /> | ||
<div className='flex flex-1 flex-col gap-4 md:flex-row md:place-content-around'> | ||
<Card className='md:self-start'> | ||
<IbcInForm /> | ||
</Card> | ||
<Card className='md:self-end'> | ||
<IbcOutForm /> | ||
</Card> | ||
</div> | ||
); | ||
}; |
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,5 @@ | ||
import { ReactNode } from 'react'; | ||
|
||
export const RestrictMaxWidth = ({ children }: { children: ReactNode }) => { | ||
return <div className='mx-auto xl:max-w-[1276px]'>{children}</div>; | ||
}; |
Oops, something went wrong.