making things responsive on landing page

This commit is contained in:
talksik
2022-04-18 07:44:50 -05:00
parent 1fc82dbb04
commit 5221c4faab
4 changed files with 18 additions and 17 deletions
+3 -3
View File
@@ -4,14 +4,14 @@ export default function HorizontalLogo({
className, className,
type, type,
}: { }: {
className: string; className?: string;
type?: LogoType; type?: LogoType;
}) { }) {
if (type === LogoType.small) { if (type === LogoType.small) {
return ( return (
<svg <svg
width="333" width="150"
height="108" height="55"
viewBox="0 0 333 108" viewBox="0 0 333 108"
fill="none" fill="none"
xmlns="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg"
+1 -1
View File
@@ -1,7 +1,7 @@
import FullMottoLogo from "../../../components/logo/fullMotto"; import FullMottoLogo from "../../../components/logo/fullMotto";
export default function Footer() { export default function Footer() {
return ( return (
<div className="container mx-auto flex justify-between mt-auto items-center"> <div className="container mx-auto flex md:flex-row flex-col justify-between mt-auto items-center">
<span className="ml-20"> <span className="ml-20">
<span className="text-zinc-400 text-sm">Wanna chat? </span> <span className="text-zinc-400 text-sm">Wanna chat? </span>
<span className="font-bold text-white">arjunpatel@berkeley.edu</span> <span className="font-bold text-white">arjunpatel@berkeley.edu</span>
+3 -2
View File
@@ -1,9 +1,10 @@
import HorizontalLogo from "../../../components/logo/horizontal"; import HorizontalLogo from "../../../components/logo/horizontal";
import { LogoType } from "@nirvana/components/logo/full";
export default function Header() { export default function Header() {
return ( return (
<div className="container mx-auto p-0 flex flex-row justify-start"> <div className="container mx-auto md:px-20 px-10 pt-5 flex flex-row justify-center md:justify-start">
<HorizontalLogo className="scale-[0.5]" /> <HorizontalLogo type={LogoType.small} />
</div> </div>
); );
} }
+11 -11
View File
@@ -18,28 +18,28 @@ const Home: NextPage = () => {
{/* header */} {/* header */}
<Header /> <Header />
<div className="container mx-auto px-20"> {/* above fold experience */}
{/* above fold experience */} <div className="container mx-auto md:px-20 px-10">
<div className="flex flex-row items-center my-10"> <div className="flex md:flex-row flex-col items-center my-10">
<div className="flex flex-col items-start"> <div className="flex flex-col items-start">
<span className="text-white text-6xl leading-[1.2] font-extrabold"> <span className="text-white text-5xl md:text-6xl leading-[1.2] font-extrabold text-center md:text-left">
The <span className="text-nirvanaTeal">walkie-talkie</span> <br />{" "} The <span className="text-nirvanaTeal">walkie-talkie</span> <br />{" "}
for remote teams. for remote teams.
</span> </span>
<span className="text-zinc-400 text-xl mt-5"> <span className="text-zinc-400 text-lg md:text-xl mt-5 text-center md:text-left">
The <span className="text-nirvanaTeal">{"'less is more'"}</span>{" "} The <span className="text-nirvanaTeal">{"'less is more'"}</span>{" "}
approach. Skip zoom scheduling, <br></br> slack notifications, and approach. Skip zoom scheduling, <br></br> slack notifications, and
email threads. <br /> Just talk to your team. email threads. <br /> Just talk to your team.
</span> </span>
{/* download */} {/* download */}
<span className="flex flex-col justify-start mt-20"> <div className="flex flex-col justify-start mt-20 text-center md:text-left w-full items-center md:items-start">
<span className="text-white text-md mb-2"> <span className="text-white text-md mb-2">
Download the desktop app (coming soon) Download the desktop app <br></br> (coming soon)
</span> </span>
<span className="flex flex-row space-x-2"> <span className="flex flex-row space-x-2 justify-center">
<span className="p-2 rounded bg-zinc-500 cursor-pointer blur-[2px]"> <span className="p-2 rounded bg-zinc-500 cursor-pointer blur-[2px]">
<BsWindows className="text-white text-xl" /> <BsWindows className="text-white text-xl" />
</span> </span>
@@ -48,18 +48,18 @@ const Home: NextPage = () => {
<BsApple className="text-white text-xl" /> <BsApple className="text-white text-xl" />
</span> </span>
</span> </span>
</span> </div>
</div> </div>
<img <img
src="/illustrations/undraw_co-working_re_w93t.svg" src="/illustrations/undraw_co-working_re_w93t.svg"
className="h-[30em] ml-auto" className="h-[30em] ml-auto md:block hidden"
/> />
</div> </div>
</div> </div>
{/* value points */} {/* value points */}
<div className="flex flex-row w-full mx-auto px-20 py-10 bg-zinc-500 my-10 space-x-5 justify-center"> <div className="flex flex-col md:flex-row w-full mx-auto px-20 py-10 bg-zinc-500 my-10 gap-5 justify-center">
<span className="p-5 bg-zinc-600 max-w-md flex flex-col items-start flex-1 shadow"> <span className="p-5 bg-zinc-600 max-w-md flex flex-col items-start flex-1 shadow">
<span className="flex flex-row items-center space-x-2"> <span className="flex flex-row items-center space-x-2">
<FaRunning className="text-white text-xl" /> <FaRunning className="text-white text-xl" />