-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
## Description Add Landing Page ### Type of change - [ ] Bug fix (non-breaking change which fixes an issue) - [ ] New feature (non-breaking change which adds functionality) - [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected) - [x] Documentation update (improves or adds clarity to existing documentation) ### Checklist - [x] I have performed a self-review of my code - [x] I have commented my code, particularly in hard-to-understand areas - [x] I have updated the documentation accordingly - [x] My changes generate no new warnings
- Loading branch information
Showing
27 changed files
with
931 additions
and
69 deletions.
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,19 @@ | ||
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 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 to | ||
edge devices. | ||
</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
Oops, something went wrong.