Skip to content

Commit

Permalink
Add <socials />
Browse files Browse the repository at this point in the history
  • Loading branch information
fakepixels committed Oct 30, 2024
1 parent 044a6f3 commit 39712a7
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 9 deletions.
6 changes: 0 additions & 6 deletions src/app/global.css
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,6 @@ a {
text-decoration: underline;
}

svg {
display: block;
overflow: visible;
vertical-align: middle;
}

ul {
padding-inline-start: 0;
}
Expand Down
25 changes: 24 additions & 1 deletion src/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import IdentityWrapper from 'src/components/IdentityWrapper';
import { ONCHAINKIT_LINK } from 'src/links';
import OnchainkitSvg from 'src/svg/OnchainkitSvg';
import WalletWrapper from 'src/components/WalletWrapper';
import { motion } from 'framer-motion';

export default function Page() {
const { isConnected } = useAccount();
Expand All @@ -28,7 +29,29 @@ export default function Page() {
</section>
<section className="flex w-full flex-col items-center justify-center gap-4 rounded-xl px-2 py-4 md:grow">
{isConnected ? (
<IdentityWrapper />
<>
<IdentityWrapper />
<div className='flex w-full max-w-md flex-col items-center rounded-lg bg-gray-50/50 p-6 backdrop-blur-sm'>
<motion.h1
className='mb-4 text-center font-bold text-4xl'
initial={{ scale: 0.5, opacity: 0 }}
animate={{
scale: 1,
opacity: 1,
rotate: [0, -5, 5, -5, 0]
}}
transition={{
duration: 1.0,
rotate: { duration: 0.7, delay: 0.8 }
}}
>
Looking a bit bare?
</motion.h1>
<div className='flex flex-col items-center'>
<p className='text-center'> Go to <a href="https://base.org" target="_blank" rel="noreferrer" className=' hover:text-[#0052ff] hover:text-bold'>Base.org</a> to add some details to your profile. <br /> Then see it everywhere. </p>
</div>
</div>
</>
) : (
<div className="flex h-48 w-full max-w-md items-center justify-center rounded-lg bg-gray-100 p-6 text-center text-gray-600">
Please connect your account to see your profile
Expand Down
4 changes: 2 additions & 2 deletions src/components/OnchainProviders.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ function OnchainProviders({ children }: Props) {
<OnchainKitProvider apiKey={NEXT_PUBLIC_CDP_API_KEY} chain={base}
config={{
appearance: {
mode: 'dark',
theme: 'default',
mode: 'auto',
theme: 'base',
},
}}>
<RainbowKitProvider modalSize="compact">
Expand Down

0 comments on commit 39712a7

Please sign in to comment.