Skip to content

Commit

Permalink
FW-5750 Update styling for Apps widget
Browse files Browse the repository at this point in the history
  • Loading branch information
gmcauliffe committed Sep 25, 2024
1 parent a96b308 commit 77d94bb
Showing 1 changed file with 42 additions and 21 deletions.
63 changes: 42 additions & 21 deletions src/components/WidgetApps/WidgetAppsPresentation.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,27 +11,48 @@ function WidgetAppsPresentation() {
const pwaUrl = `https://${site?.sitename}.firstvoicesapp.com/`

return (
<section className="px-4 md:px-0 py-3 md:py-6 bg-white">
<section className="px-4 lg:px-0 py-3 lg:py-6 bg-white">
<div className="mx-5 lg:mx-10 mb-4 md:mb-6 lg:mb-8 xl:mb-12">
<SectionTitle.Presentation title="DOWNLOAD MOBILE APP" />
<h2 className="text-center text-secondary text-sm md:text-base lg:text-2xl mt-2 md:mt-3.5 lg:mt-5">
{site?.title} Language
</h2>
</div>
<div className="grid grid-cols-6 gap-6 md:gap-4 mx-auto max-w-screen-lg">
<div className="col-span-6 md:col-span-4 space-y-2 md:space-y-8">
<p className="text-base font-medium">
Browse words and phrases in the dictionary
</p>
<p className="text-base font-medium">Practice with flashcards</p>
<p className="text-base font-medium">
Bookmark content and more with the {site?.title} mobile app!
</p>
<p className="text-base font-medium">
Compatible with iPhone, iPad, Android, Chromebook, Windows, and
more.
</p>
<p className="text-base font-medium">
<div className="grid grid-cols-7 gap-6 md:gap-4 mx-auto max-w-screen-lg">
<div className="md:text-lg text-fv-charcoal-light col-span-7 md:col-span-4 space-y-4 md:space-y-8">
<div className="space-y-4 md:space-y-8">
<div className="flex">
<div className="flex-none w-12 p-1">
{getIcon('Search', 'fill-current h-5 w-auto')}
</div>
<p className="grow">Browse words and phrases in the dictionary</p>
</div>
<div className="flex">
<div className="flex-none w-12 p-1">
{getIcon('Flashcard', 'fill-current h-5 w-auto')}
</div>
<p className="grow">Practice with flashcards</p>
</div>
<div className="flex">
<div className="flex-none w-12 p-1">
{getIcon('Bookmark', 'fill-current h-5 w-auto')}
</div>
<p className="grow">
Bookmark content and more with the {site?.title} mobile app!
</p>
</div>
<div className="flex">
<div className="flex-none w-12 p-1">
{getIcon('Devices', 'fill-current h-5 w-auto')}
</div>
<p className="grow">
Compatible with iPhone, iPad, Android, Chromebook, Windows, and
more.
</p>
</div>
</div>

<p>
<a
className="inline-url"
href={pwaUrl}
Expand All @@ -43,21 +64,21 @@ function WidgetAppsPresentation() {
directly from the web by selecting “Install” or “Add to Homescreen”
in your browser.
</p>
<p className="text-base font-medium">
<p>
<a
className="inline-url"
className="inline-url text-base italic"
href="https://firstvoices.atlassian.net/wiki/spaces/FIR1/pages/644579350"
target="_blank"
rel="noopener noreferrer"
>
Installation Help
Installation Help Link
</a>
</p>
</div>
<div className="col-span-6 md:col-span-2">
<div className="col-span-7 md:col-span-3">
<div className="flex-col items-center justify-center space-y-6 md:space-y-20">
<img
className="h-44 lg:h-52 w-44 lg:w-52 rounded-lg mx-auto border"
className="h-44 w-44 rounded-lg mx-auto border"
src={appLogoSrc}
loading="lazy"
alt={`${site?.title} App Logo`}
Expand All @@ -67,7 +88,7 @@ function WidgetAppsPresentation() {
href={pwaUrl}
target="_blank"
rel="noopener noreferrer"
className="btn-contained bg-secondary"
className="w-80 btn-contained bg-secondary"
>
{getIcon('Download', 'btn-icon')}
<span>Install now</span>
Expand Down

0 comments on commit 77d94bb

Please sign in to comment.