Skip to content

Commit

Permalink
Merge pull request #35 from YTVanced/dev
Browse files Browse the repository at this point in the history
The End
  • Loading branch information
KevinX8 authored Mar 14, 2022
2 parents 5477747 + 041f4bf commit 3ed75da
Show file tree
Hide file tree
Showing 8 changed files with 5 additions and 108 deletions.
17 changes: 0 additions & 17 deletions src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,6 @@ const App = () => {

const [managerData, setManager] = useState({});

useEffect(() => {
fetch("https://api.github.com/repos/YTVanced/VancedManager/releases/latest")
.then(res => res.json())
.then(data => setManager(data));
}, []);

return (
<ShowBraveContext.Provider value={showBrave}>
Expand All @@ -63,24 +58,12 @@ const App = () => {
component={Home}
layout={LayoutDefault}
/>
<AppRoute
exact
path="/changelogs"
component={ChangeLog}
layout={LayoutDefault}
/>
<AppRoute
exact
path="/pc"
component={PC}
layout={LayoutDefault}
/>
<AppRoute
exact
path="/features"
component={Features}
layout={LayoutDefault}
/>
</Switch>
)}
/>
Expand Down
1 change: 0 additions & 1 deletion src/components/layout/Footer.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ const Footer = ({ className, topOuterDivider, topDivider, ...props }) => {
>
<div className="footer-top space-between text-xxs">
<Logo />
<FooterSocial />
</div>
<div className="footer-bottom space-between text-xxs invert-order-desktop">
<FooterNav />
Expand Down
30 changes: 0 additions & 30 deletions src/components/layout/Header.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,6 @@ const Header = ({
className,
);

const vancedManagerAPKUrl = "https://github.com/YTVanced/VancedManager/releases/latest/download/manager.apk";

return (
<header {...props} className={classes}>
Expand Down Expand Up @@ -114,40 +113,11 @@ const Header = ({
navPosition && `header-nav-${navPosition}`,
)}
>
<li title="Changelogs" onClick={closeMenu}>
<Link to="/changelogs">
Changelogs
</Link>
</li>
<li title="Features">
<a href="/#features">Features</a>
</li>
<li title="Vanced PC Experience" onClick={closeMenu}>
<Link to="/pc">
PC
</Link>
</li>
<li title="uYouPlus" onClick={closeMenu}>
<Link to="/ios">
iOS
</Link>
</li>
<li title="SmartTubeNext" onClick={closeMenu}>
<Link to="/tv">
TV
</Link>
</li>
</ul>
<ul className="list-reset header-nav-right">
<li>
<a
href={vancedManagerAPKUrl}
className="button button-primary button-wide-mobile button-sm"
onClick={closeMenu}
>
Download
</a>
</li>
</ul>
{/* {!hideSignin &&
<ul
Expand Down
7 changes: 0 additions & 7 deletions src/components/layout/partials/FooterNav.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,11 @@ import { ADGUARD, BRAVE } from "../../../constants/links";
const FooterNav = ({ className, ...props }) => {
const classes = classNames("footer-nav", className);

const vancedManagerAPKUrl = "https://github.com/YTVanced/VancedManager/releases/latest/download/manager.apk";
const showBrave = useContext(ShowBraveContext);

return (
<nav {...props} className={classes}>
<ul className="list-reset">
<li>
<Link to="/changelogs">Changelog</Link>
</li>
<li>
<a href={vancedManagerAPKUrl}>Download</a>
</li>
{showBrave && (
<li>
<a href={BRAVE} target="_blank" rel="noopener noreferrer">
Expand Down
38 changes: 1 addition & 37 deletions src/components/sections/FeaturesTiles.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,43 +88,7 @@ const FeaturesTiles = ({
<div className="features-tiles-item-content">
<h4 className="mt-0 mb-8">Vanced</h4>
<p className="m-0 text-sm" style={{ textAlign: "justify" }}>
Vanced provides a better video watching experience out of the box!
Includes adblocking, true amoled dark mode and a lot more.
SHA-256 Signature: 8b1dfe07 a73975ea 96419255 5492e1fe 1c8cf4f3 49006386 5ebe3f6b dfbe597d
</p>
</div>
</div>
</div>

<div
className="tiles-item reveal-from-bottom"
data-reveal-delay="900"
>
<div className="tiles-item-inner">
<div className="features-tiles-item-header">
<div
className="features-tiles-item-image mb-16"
style={{
height: "64px",
width: "64px",
}}
>
{/* <Image
src={require("./../../assets/images/feature-tile-icon-02.svg")}
alt="Features tile icon 02"
width={64}
height={64}
/> */}
<FaMusic size="2em" color="white" />
</div>
</div>
<div className="features-tiles-item-content">
<h4 className="mt-0 mb-8">Music</h4>
<p className="m-0 text-sm" style={{ textAlign: "justify" }}>
Vanced, but for Music! This is relatively less
feature rich compared to vanced but still features many
things you come to expect like adblocking and background
playback all inside Vanced Music!
Official Vanced SHA-256 Signature: 8b1dfe07 a73975ea 96419255 5492e1fe 1c8cf4f3 49006386 5ebe3f6b dfbe597d
</p>
</div>
</div>
Expand Down
12 changes: 3 additions & 9 deletions src/components/sections/Hero.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,14 +85,8 @@ const Hero = ({
tag="a"
color="primary"
wideMobile
href="https://github.com/YTVanced/VancedManager/releases/latest/download/manager.apk"
>
Vanced Manager ({vancedManager?.tag_name?.split('-')[0]})
<Image
src={DownloadImg}
alt="Features tile icon 01"
width={64}
/>
Vanced no Longer Available, instead:
</Button>
{showBrave && (
<Button
Expand All @@ -102,7 +96,7 @@ const Hero = ({
href={BRAVE}
target="_blank"
>
Support us <SiBrave size="2em" color="white" />
Use Brave (referral)<SiBrave size="2em" color="white" />
</Button>
)}
<Button
Expand All @@ -112,7 +106,7 @@ const Hero = ({
href={ADGUARD}
target="_blank"
>
Support us <SiAdguard size="2em" color="white" />
Use Adguard (referral)<SiAdguard size="2em" color="white" />
</Button>
</ButtonGroup>
</div>
Expand Down
1 change: 1 addition & 0 deletions src/utils/getRandomQuotes.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ const quotesArray = [
"Just read the instructions!",
"Download Brave to support us",
"Download Adguard to support us",
"Vanced is no longer available",
"Vanced doesn't include video downloading",
];

Expand Down
7 changes: 0 additions & 7 deletions src/views/Home.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,6 @@ const Home = () => {
<Suspense fallback={<div>Loading..</div>}>
<Hero className="illustration-section-01" />
<FeaturesTiles />
<FeaturesSplit
id="features"
invertMobile
topDivider
imageFill
className="illustration-section-02"
/>
{/* <Testimonial topDivider /> */}
{/* <Cta split /> */}
</Suspense>
Expand Down

0 comments on commit 3ed75da

Please sign in to comment.