-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from ryandotfurrer/4_make-site-more-responsive
Make site more responsive
- Loading branch information
Showing
9 changed files
with
361 additions
and
277 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 |
---|---|---|
@@ -1,11 +1,11 @@ | ||
import React from 'react' | ||
import React from "react"; | ||
|
||
function Footer() { | ||
return ( | ||
<div className="my-2 flex justify-center"> | ||
©{(new Date()).getFullYear()} fullstack.chat | ||
<div className="py-4 flex justify-center"> | ||
©{new Date().getFullYear()} fullstack.chat | ||
</div> | ||
) | ||
); | ||
} | ||
|
||
export default Footer | ||
export default Footer; |
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,25 +1,21 @@ | ||
import React, { ReactNode } from 'react' | ||
import React, { ReactNode } from "react"; | ||
|
||
type Props = { | ||
title?: string | ||
children: ReactNode | ||
className?: string | ||
outerClassName?: string | ||
} | ||
title?: string; | ||
children: ReactNode; | ||
className?: string; | ||
outerClassName?: string; | ||
}; | ||
|
||
function UiCard({ title, children, className, outerClassName }: Props) { | ||
return ( | ||
<div className={`bg-gradient-to-tl from-[#1B1923] border-t-2 border-[#222222] rounded-xl p-3 ${outerClassName}`}> | ||
{ title && ( | ||
<div className="mb-2 font-semibold"> | ||
{ title } | ||
</div> | ||
)} | ||
<div className={className}> | ||
{ children } | ||
</div> | ||
<div | ||
className={`bg-gradient-to-tl from-[#1B1923] border-t-2 border-[#222222] rounded-xl p-4 ${outerClassName}`} | ||
> | ||
{title && <p className="mb-2 text-white font-semibold">{title}</p>} | ||
<div className={className}>{children}</div> | ||
</div> | ||
) | ||
); | ||
} | ||
|
||
export default UiCard | ||
export default UiCard; |
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,26 +1,29 @@ | ||
import React from 'react' | ||
import { UserInfo } from '../models' | ||
import UiCard from './UiCard' | ||
import Image from 'next/image' | ||
import React from "react"; | ||
import { UserInfo } from "../models"; | ||
import UiCard from "./UiCard"; | ||
import Image from "next/image"; | ||
|
||
type Params = { | ||
userInfo: UserInfo | ||
} | ||
userInfo: UserInfo; | ||
}; | ||
|
||
function UserProfileCard({ userInfo }: Params) { | ||
return ( | ||
<UiCard> | ||
<UiCard className="mx-auto space-y-4 grid place-items-center"> | ||
<Image | ||
src={userInfo.imageUrl || '/images/default-profile.png'} | ||
src={userInfo.imageUrl || "/images/default-profile.png"} | ||
width={75} | ||
height={75} | ||
alt={''} | ||
className='rounded-full' /> | ||
<div className='font-bold'>{ userInfo.displayName }</div> | ||
<div className='text-sm'>@{ userInfo.username }</div> | ||
<div className=''>{ userInfo.tagline }</div> | ||
alt={""} | ||
className="rounded-full" | ||
/> | ||
<header className="text-center"> | ||
<p className="font-bold">{userInfo.displayName}</p> | ||
<p className="text-sm">@{userInfo.username}</p> | ||
</header> | ||
<p className="text-center">{userInfo.tagline}</p> | ||
</UiCard> | ||
) | ||
); | ||
} | ||
|
||
export default UserProfileCard | ||
export default UserProfileCard; |
Oops, something went wrong.