-
Notifications
You must be signed in to change notification settings - Fork 474
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Launch mobile replay to first-class product on site #9778
Closed
+163
−28
Closed
Changes from all commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
b64a83f
Update index.tsx
joethreepwood 9e7637d
Merge branch 'master' into mobile_case_study
corywatilo 76c1dc4
Take the beta tag off mobile replay
joethreepwood 0704cdb
Removes other beta labels
joethreepwood 9444067
Update Footer.tsx
joethreepwood 0ae45a5
fix variable
smallbrownbike 160af52
Merge branch 'mobile_case_study' of https://github.com/PostHog/postho…
joethreepwood b9ff834
Update src/components/Product/SessionReplay/index.tsx
joethreepwood 39b97cb
Update src/components/Product/SessionReplay/index.tsx
joethreepwood f368dac
Update src/components/Home/Slider/Slides.js
joethreepwood 8181504
Merge branch 'mobile_case_study' of https://github.com/PostHog/postho…
joethreepwood ab6f949
Adds in a mobile libraries section
joethreepwood 522e247
Merge branch 'master' into mobile_case_study
smallbrownbike 2040734
fix mobile libraries import
ivanagas e59b1cf
trying to fix the style a bit
joethreepwood 0119ad8
Merge branch 'mobile_case_study' of https://github.com/PostHog/postho…
joethreepwood File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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 |
---|---|---|
@@ -0,0 +1,137 @@ | ||
import CloudinaryImage from 'components/CloudinaryImage' | ||
import React from 'react' | ||
import { StaticImage } from 'gatsby-plugin-image' | ||
import Link from 'components/Link' | ||
import { IconEllipsis } from '@posthog/icons' | ||
import { CallToAction } from 'components/CallToAction' | ||
|
||
const librariesData = { | ||
web: { | ||
name: 'Web', | ||
description: 'Use autocapture to collect client-side events without any special instrumentation.', | ||
items: [ | ||
{ | ||
name: 'JavaScript', | ||
url: '/docs/libraries/js', | ||
icon: ( | ||
<CloudinaryImage | ||
src="https://res.cloudinary.com/dmukukwp6/image/upload/posthog.com/contents/images/docs/integrate/js.svg" | ||
alt="JavaScript" | ||
/> | ||
), | ||
}, | ||
{ | ||
name: 'Next.js', | ||
url: '/docs/libraries/next-js', | ||
icon: ( | ||
<CloudinaryImage | ||
src="https://res.cloudinary.com/dmukukwp6/image/upload/next_js_fa0f2983d8.svg" | ||
alt="Next.js" | ||
/> | ||
), | ||
}, | ||
{ | ||
name: 'React', | ||
url: '/docs/libraries/react', | ||
icon: ( | ||
<CloudinaryImage | ||
src="https://res.cloudinary.com/dmukukwp6/image/upload/posthog.com/contents/images/docs/integrate/react.svg" | ||
alt="React" | ||
/> | ||
), | ||
}, | ||
], | ||
}, | ||
mobile: { | ||
name: 'Mobile', | ||
description: 'Send custom events and identify users. Record mobile sessions and use feature flags.', | ||
items: [ | ||
{ | ||
name: 'Android', | ||
url: '/docs/libraries/android', | ||
icon: ( | ||
<CloudinaryImage | ||
src="https://res.cloudinary.com/dmukukwp6/image/upload/posthog.com/contents/images/docs/integrate/android.svg" | ||
alt="Android" | ||
/> | ||
), | ||
}, | ||
{ | ||
name: 'iOS', | ||
url: '/docs/libraries/ios', | ||
icon: ( | ||
<CloudinaryImage | ||
src="https://res.cloudinary.com/dmukukwp6/image/upload/posthog.com/contents/images/docs/integrate/ios.svg" | ||
className="dark:invert" | ||
alt="iOS" | ||
/> | ||
), | ||
}, | ||
{ | ||
name: 'React Native', | ||
url: '/docs/libraries/react-native', | ||
icon: ( | ||
<CloudinaryImage | ||
src="https://res.cloudinary.com/dmukukwp6/image/upload/posthog.com/contents/images/docs/integrate/react.svg" | ||
alt="React Native" | ||
/> | ||
), | ||
}, | ||
], | ||
}, | ||
} | ||
|
||
export default function MobileLibraries() { | ||
return ( | ||
<section className="max-w-7xl mx-auto px-5 sm:pt-8 mb-12 sm:mb-20 md:mb-12 lg:mb-20 xl:-mb-24"> | ||
<div className="sm:grid grid-cols-12"> | ||
<div className="col-span-5"> | ||
<div className="rotate-3"> | ||
<CloudinaryImage | ||
src="https://res.cloudinary.com/dmukukwp6/image/upload/posthog.com/src/components/Home/images/hogflix-mobile.png" | ||
alt="Hogflix mobile" | ||
placeholder="blurred" | ||
style={{ maxHeight: '50%', width: 'auto' }} // Ensures aspect ratio is maintained | ||
/> | ||
</div> | ||
</div> | ||
|
||
<div className="col-span-7 -mt-48 sm:mt-0 relative z-10 after:absolute after:left-0 after:w-full after:-top-60 after:h-60 after:bg-gradient-to-b after:from-tan/0 after:via-tan/75 after:to-tan dark:after:from-dark/0 dark:after:via-bg/75 dark:after:to-dark sm:overflow-hidden bg-tan dark:bg-dark"> | ||
<h3 className="text-5xl xl:text-6xl text-center sm:text-left mb-8"> | ||
Replay for <span className="text-blue">web</span> and{' '} | ||
<span className="text-red dark:text-yellow">mobile</span> | ||
</h3> | ||
|
||
<div className="flex flex-col gap-4 mb-4"> | ||
{Object.values(librariesData).map((category) => ( | ||
<div key={category.name}> | ||
<h4 className="mb-0">{category.name}</h4> | ||
<p className="opacity-70 mb-4">{category.description}</p> | ||
<ul className="flex gap-3 sm:gap-4 list-none p-0 pb-2 m-0"> | ||
{category.items.map((item) => ( | ||
<li key={item.name}> | ||
<Link | ||
href={item.url} | ||
className="flex flex-col gap-2 items-center p-0 relative transition-all hover:scale-[1.02] hover:top-[-.5px] active:scale-[.98] active:top-[.5px]" | ||
> | ||
<figure className="size-14 bg-accent dark:bg-accent-dark p-3 rounded-md text-center flex items-center justify-center text-primary/50 dark:text-primary-dark/50"> | ||
{item.icon} | ||
</figure> | ||
<span className="text-red dark:text-yellow font-semibold text-sm"> | ||
{item.name} | ||
</span> | ||
</Link> | ||
</li> | ||
))} | ||
</ul> | ||
</div> | ||
))} | ||
</div> | ||
<CallToAction href="/docs/libraries" size="sm" type="secondary"> | ||
Browse all libraries | ||
</CallToAction> | ||
</div> | ||
</div> | ||
</section> | ||
) | ||
} |
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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing Flutter here now since the desc. Is more generic and not only about replay