Skip to content

Commit

Permalink
♻️ Layout changes (#104)
Browse files Browse the repository at this point in the history
* Change sold to I'm keen

* Swap GitHub and SharePoint card

* Add contact button to nav bar

* Fix nav styling for mobile

* Move GitHub logo to nav bar

* Add embed for Done Video
  • Loading branch information
Jord-Gui authored Nov 24, 2023
1 parent 55c20a5 commit 187abba
Show file tree
Hide file tree
Showing 2 changed files with 51 additions and 29 deletions.
Binary file modified content/bun.lockb
100644 → 100755
Binary file not shown.
80 changes: 51 additions & 29 deletions content/src/app/page.tsx
Original file line number Diff line number Diff line change
@@ -1,19 +1,48 @@
import ExportedImage from "next-image-export-optimizer";
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
import { faPhone } from "@fortawesome/free-solid-svg-icons";
import MarketingCard from "./marketingCard";
import Footer from "./footer";

function ContactButton() {
return (
<a href="https://www.ssw.com.au/company/contact-us" target="_blank">
<button className="overflow-hidden border-none py-3 px-5 text-[1.6rem] bg-sswRed text-white rounded">
<FontAwesomeIcon icon={faPhone} />
<span className="ml-2">CONTACT US</span>
</button>
</a>
);
}

export default function Home() {
return (
<main className="flex min-h-screen flex-col items-center">
<nav className="bggrey w-full h-24 p-4 flex justify-center">
<div className="w-full">
<nav className="bggrey w-full h-full p-4 flex justify-center">
<div className="w-full flex flex-col items-center md:flex-row md:justify-between">
<ExportedImage
src="/sswdory-logo.png"
alt="SSW Dory Logo"
width={300}
height={40}
priority
/>
<div className="flex flex-col items-center md:flex-row">
<a
href="https://github.com/SSWConsulting/SSW.Dory"
target="_blank"
className="hidden mb-3 md:block md:mb-0 md:mr-3"
>
<ExportedImage
src="/github-mark.svg"
alt="Invertocat Logo"
width={50}
height={50}
priority
/>
</a>
<ContactButton />
</div>
</div>
</nav>
<div className="container mx-auto">
Expand All @@ -24,33 +53,27 @@ export default function Home() {
Be informed before someone tells you they&apos;re blocked
</h1>
</div>
<a href="https://github.com/SSWConsulting/SSW.Dory" target="_blank">
<ExportedImage
src="/github-mark.svg"
alt="Invertocat Logo"
width={100}
height={100}
priority
/>
</a>
<div className="lg:flex-grow flex flex-col md:items-start md:text-left items-center text-center">
<h3 className="leading-relaxed max-w-xl mt-10">
This project is on GitHub.
</h3>
</div>
<iframe
className="max-w-full"
width="560"
height="315"
src="https://www.youtube.com/embed/R2-2icVTie0?si=rT5o62WawDZKDTW5"
title="SSWDory Done Video"
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"
></iframe>
</div>
</section>

<MarketingCard
title="Remind users of their checked-out SharePoint pages"
description="Connect SSW Dory to your SharePoint site and find any pages that have been left checked-out."
imgURL="/old-sharepoint.png"
/>

<MarketingCard
title="Remind users of their unmerged GitHub pull requests"
description="SSW Dory uses the GitHub API to scan for any Pull Requests in your GitHub repositories that have been open for longer than a certain period of time e.g. one day."
imgURL="/old-github.png"
/>

<MarketingCard
title="Remind users of their checked-out SharePoint pages"
description="Connect SSW Dory to your SharePoint site and find any pages that have been left checked-out."
imgURL="/old-sharepoint.png"
reverse={true}
/>

Expand All @@ -76,14 +99,13 @@ export default function Home() {
<section className="text-gray-700 body-font">
<div className="container mx-auto mb-32 md:mb-0 flex px-5 py-10 items-center justify-center flex-col">
<h2 className="title-font leading-tight sm:text-4xl text-3xl mb-4 font-medium text-gray-900">
Sold?
I&apos;m keen!
</h2>
<a href="https://www.ssw.com.au/company/contact-us" target="_blank">
<button className="overflow-hidden border-none py-3 px-10 text-[1.6rem] bg-sswRed text-white rounded">
Contact Us
</button>
</a>
<h3 className="leading-relaxed max-w-xs mt-4 text-center">Contact an Account Manager to discuss how we can set this up for you.</h3>
<ContactButton />
<h3 className="leading-relaxed max-w-xs mt-4 text-center">
Contact an Account Manager to discuss how we can set this up for
you.
</h3>
</div>
</section>
</div>
Expand Down

0 comments on commit 187abba

Please sign in to comment.