-
Notifications
You must be signed in to change notification settings - Fork 11
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
docs: Add landing page #78
Merged
Merged
Changes from 9 commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
b66266b
Add docs button to navbar
jakmro c18330d
Add features list
jakmro 56a5b0b
Add ExecuTorch introduction section
jakmro d53ac60
Add logo
jakmro 1345725
Add waves and changle colors
jakmro 16ef7b1
Change defaultMode to dark
jakmro d8eb2ba
Fix buttons styles and waves
jakmro 9fea389
Fix linter errors
jakmro 08bc0be
Add requested changes
jakmro bed4d22
Add requested changes v2
jakmro 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import React from 'react'; | ||
import styles from './styles.module.css'; | ||
|
||
const ExecuTorchIntroduction = () => { | ||
return ( | ||
<div className={styles.introductionContainer}> | ||
<h2 className={styles.title}>What is ExecuTorch?</h2> | ||
<p className={styles.introduction}> | ||
ExecuTorch is a novel AI framework from the PyTorch team which provides | ||
tools to export and run PyTorch models on edge devices like mobile | ||
phones and microcontrollers. | ||
</p> | ||
</div> | ||
); | ||
}; | ||
|
||
export default ExecuTorchIntroduction; |
38 changes: 38 additions & 0 deletions
38
docs/src/components/ExecuTorchIntroduction/styles.module.css
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,38 @@ | ||
.introductionContainer { | ||
max-width: 996px; | ||
display: flex; | ||
flex-direction: column; | ||
margin-bottom: -8rem; | ||
gap: 4rem; | ||
} | ||
|
||
.introduction { | ||
font-size: 24px; | ||
font-weight: 400; | ||
} | ||
|
||
.title { | ||
font-size: var(--swm-h2-font-size); | ||
} | ||
|
||
@media (max-width: 768px) { | ||
.introduction { | ||
font-size: 20px; | ||
} | ||
|
||
.introductionContainer { | ||
gap: 0; | ||
margin-bottom: -6rem; | ||
} | ||
|
||
.title { | ||
margin-bottom: 1rem; | ||
} | ||
} | ||
|
||
@media (max-width: 420px) { | ||
.title { | ||
margin-bottom: 1.5rem; | ||
font-size: 24px; | ||
} | ||
} |
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,21 @@ | ||
import React from 'react'; | ||
import usePageType from '@site/src/hooks/usePageType'; | ||
import WaveBottom from '@site/src/components/Wave/WaveBottom'; | ||
import styles from './styles.module.css'; | ||
|
||
const FooterBackground = () => { | ||
const { isLanding } = usePageType(); | ||
|
||
return ( | ||
<div className={styles.waveContainer}> | ||
{isLanding && ( | ||
<> | ||
<WaveBottom /> | ||
<div className={styles.linearGradient} /> | ||
</> | ||
)} | ||
</div> | ||
); | ||
}; | ||
|
||
export default FooterBackground; |
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,46 @@ | ||
.waveContainer { | ||
position: relative; | ||
margin-top: 2rem; | ||
z-index: 0; | ||
} | ||
|
||
[class*='footerLanding'] { | ||
margin-top: -106px; | ||
} | ||
|
||
.linearGradient { | ||
height: 106px; | ||
width: 100%; | ||
background: linear-gradient(#7394FF, #FFFFFF 150%); | ||
} | ||
|
||
[data-theme='dark'] .linearGradient { | ||
background: linear-gradient(#313C9C, #160042 150%); | ||
} | ||
|
||
@media (max-width: 996px) { | ||
[class*='footerLanding'] { | ||
margin-top: -121px; | ||
} | ||
.linearGradient { | ||
height: 121px; | ||
} | ||
} | ||
|
||
@media (max-width: 700px) { | ||
[class*='footerLanding'] { | ||
margin-top: -147px; | ||
} | ||
.linearGradient { | ||
height: 147px; | ||
} | ||
} | ||
|
||
@media (max-width: 376px) { | ||
[class*='footerLanding'] { | ||
margin-top: -173px; | ||
} | ||
.linearGradient { | ||
height: 173px; | ||
} | ||
} |
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,15 @@ | ||
import React from 'react'; | ||
import useScreenSize from '@site/src/hooks/useScreenSize'; | ||
import LogoIcon from '@site/static/img/logo-hero.svg'; | ||
|
||
const Logo = () => { | ||
const { windowWidth } = useScreenSize(); | ||
|
||
if (windowWidth <= 768) { | ||
return null; | ||
} | ||
|
||
return <LogoIcon />; | ||
}; | ||
|
||
export default Logo; |
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 |
---|---|---|
|
@@ -7,17 +7,12 @@ | |
text-wrap: nowrap; | ||
|
||
color: var(--swm-off-white); | ||
background-color: var(--swm-landing-button-purple); | ||
background-color: var(--swm-navy-light-100); | ||
|
||
cursor: pointer; | ||
transition: background-color 0.3s, color 0.3s; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. picky but I would slow it down a little bit, like 0.4s |
||
} | ||
|
||
[data-theme='dark'] .homepageButton { | ||
background-color: var(--swm-purple-light-100); | ||
border-color: var(--swm-purple-light-100); | ||
} | ||
|
||
a.homepageButtonLink:hover { | ||
text-decoration: none !important; | ||
} | ||
|
@@ -67,45 +62,30 @@ a.homepageButtonLink:hover { | |
/* Button - transparent styling */ | ||
|
||
.buttonTransparentStyling { | ||
background-color: transparent; | ||
color: var(--swm-landing-button-purple); | ||
color: var(--swm-navy-light-100); | ||
} | ||
|
||
.buttonTransparentStyling svg { | ||
stroke: var(--swm-landing-button-purple); | ||
} | ||
|
||
.buttonTransparentStyling:hover { | ||
background-color: var(--swm-landing-button-purple); | ||
color: var(--swm-off-white); | ||
} | ||
|
||
.buttonTransparentStyling:hover svg { | ||
stroke: var(--swm-off-white); | ||
stroke: var(--swm-navy-light-100); | ||
} | ||
|
||
/* Button - purple styling */ | ||
|
||
.buttonPurpleStyling { | ||
background-color: var(--swm-landing-button-purple); | ||
color: var(--swm-off-white); | ||
} | ||
/* Button - navy styling */ | ||
|
||
.buttonPurpleStyling svg { | ||
stroke: var(--swm-off-white); | ||
} | ||
|
||
.buttonPurpleStyling:hover { | ||
background-color: transparent; | ||
color: var(--swm-landing-button-purple); | ||
color: var(--swm-navy-light-100); | ||
} | ||
|
||
.buttonPurpleStyling:hover svg { | ||
stroke: var(--swm-landing-button-purple); | ||
stroke: var(--swm-navy-light-100); | ||
} | ||
|
||
.buttonPurpleBorderStyling { | ||
border: 1px solid var(--swm-landing-button-purple); | ||
border: 1px solid var(--swm-navy-light-100); | ||
} | ||
|
||
.arrow { | ||
|
@@ -117,3 +97,41 @@ a.homepageButtonLink:hover { | |
width: 24px; | ||
height: 24px; | ||
} | ||
|
||
[data-theme='dark'] .homepageButton { | ||
background-color: var(--swm-cornflower-100); | ||
border-color: var(--swm-cornflower-100); | ||
} | ||
|
||
[data-theme='dark'] .homepageButton:hover { | ||
border-color: var(--swm-off-white); | ||
} | ||
|
||
/* Button - transparent styling */ | ||
|
||
[data-theme='dark'] .buttonTransparentStyling { | ||
color: var(--swm-cornflower-100); | ||
} | ||
|
||
[data-theme='dark'] .buttonTransparentStyling svg { | ||
stroke: var(--swm-cornflower-100); | ||
} | ||
|
||
/* Button - navy styling */ | ||
|
||
[data-theme='dark'] .buttonPurpleStyling svg { | ||
stroke: var(--swm-off-white); | ||
} | ||
|
||
[data-theme='dark'] .buttonPurpleStyling:hover { | ||
background-color: transparent; | ||
color: var(--swm-off-white); | ||
} | ||
|
||
[data-theme='dark'] .buttonPurpleStyling:hover svg { | ||
stroke: var(--swm-off-white); | ||
} | ||
|
||
[data-theme='dark'] .buttonPurpleBorderStyling { | ||
border: 1px solid var(--swm-cornflower-100); | ||
} |
Oops, something went wrong.
Oops, something went wrong.
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.
I think we should use the same copy as is present on the official website, which is:
ExecuTorch is an end-to-end solution for enabling on-device inference capabilities across mobile and edge devices including wearables, embedded devices and microcontrollers. It is part of the PyTorch Edge ecosystem and enables efficient deployment of various PyTorch models (vision, speech, Generative AI, and more) to edge devices.
Possibly shorten it a little bit, maybe skip parentheses