Skip to content

Commit

Permalink
fix: searched all files for statik links and converted them
Browse files Browse the repository at this point in the history
  • Loading branch information
mjztsystem committed Nov 28, 2024
1 parent 3f201a4 commit 3255358
Show file tree
Hide file tree
Showing 4 changed files with 84 additions and 80 deletions.
45 changes: 23 additions & 22 deletions src/components/HomepageContribute/index.tsx
Original file line number Diff line number Diff line change
@@ -1,26 +1,27 @@
import clsx from 'clsx';
import Heading from '@theme/Heading';
import styles from './styles.module.css';
import useBaseUrl from '@docusaurus/useBaseUrl';

export default function HomepageContribute(): JSX.Element {
return (
// <section className="container" style={{ paddingTop: '20px', paddingBottom: '45px' }}>
<div className={clsx("row row--no-gutters", styles.item)}>
<div className={clsx("col col--12", styles.item__inner)}>
<div>
<h1 className="margin-bottom--md">Contribute</h1>
<p className="margin-bottom--md">
Share with our vibrant community all that cool staff you've built with Open Telekom Cloud.
</p>
<a href="/docs/features/version-and-publish" className="button button--secondary" style={{ marginRight: '10px', marginBottom: '10px' }} >
Join us on GitHub
</a>
<a href="/docs/features/version-and-publish" className="button button--secondary" style={{ marginRight: '10px', marginBottom: '10px' }}>
Join us on Medium
</a>
</div>
</div>
{/* <div
return (
// <section className="container" style={{ paddingTop: '20px', paddingBottom: '45px' }}>
<div className={clsx("row row--no-gutters", styles.item)}>
<div className={clsx("col col--12", styles.item__inner)}>
<div>
<h1 className="margin-bottom--md">Contribute</h1>
<p className="margin-bottom--md">
Share with our vibrant community all that cool staff you've built with Open Telekom Cloud.
</p>
<a href={useBaseUrl("/docs/features/version-and-publish")} className="button button--secondary" style={{ marginRight: '10px', marginBottom: '10px' }} >
Join us on GitHub
</a>
<a href={useBaseUrl("/docs/features/version-and-publish")} className="button button--secondary" style={{ marginRight: '10px', marginBottom: '10px' }}>
Join us on Medium
</a>
</div>
</div>
{/* <div
className="col col--6"
aria-hidden="true"
style={{
Expand All @@ -30,7 +31,7 @@ export default function HomepageContribute(): JSX.Element {
backgroundPosition: "right",
}}
></div> */}
</div>
// </section>
);
}
</div>
// </section>
);
}
75 changes: 38 additions & 37 deletions src/components/HomepageFeaturedServices/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,46 +3,47 @@ import Heading from '@theme/Heading';
import styles from './styles.module.css';
import FeaturedServices from '../ServiceCallouts/FeaturedServices';
import NewServices from '../ServiceCallouts/NewServices';
import useBaseUrl from '@docusaurus/useBaseUrl';

export default function HomepageFeaturedServices(): JSX.Element {
return (
return (
<section className="container" style={{ paddingTop: '20px', paddingBottom: '45px' }}>
<div className={clsx("row row--no-gutters", styles.item)}>
<div className={clsx("col col--4", styles.item__inner)}>
<div>
<h1 className={clsx("margin-bottom--md", styles.item__title)}>
Explore our Featured Services
</h1>
<p className="margin-bottom--md">
Check out our collection of technical solutions, best practices and cool tips for the most popular services of Open Telekom Cloud.
</p>
<a className="button button--secondary" href="/docs/best-practices">
Explore our Best Practices
</a>
</div>
<div className={clsx("row row--no-gutters", styles.item)}>
<div className={clsx("col col--4", styles.item__inner)}>
<div>
<h1 className={clsx("margin-bottom--md", styles.item__title)}>
Explore our Featured Services
</h1>
<p className="margin-bottom--md">
Check out our collection of technical solutions, best practices and cool tips for the most popular services of Open Telekom Cloud.
</p>
<a className="button button--secondary" href={useBaseUrl("/docs/best-practices")}>
Explore our Best Practices
</a>
</div>
<div className="col col--8" aria-hidden="true" style={{ paddingTop: '40px' }}>
<FeaturedServices />
</div>
{/* <scale-divider></scale-divider> */}
<div className={clsx("col col--4", styles.item__inner)}>
<div>
<h1 className={clsx("margin-bottom--md", styles.item__title)}>
What's new?
</h1>
<p className="margin-bottom--md">
Explore the technical documentation of our brand new services in Help Center.
</p>
<a className="button button--secondary" href="https://www.open-telekom-cloud.com/en/products-services/roadmap" target="_blank">
Check the Portfolio Roadmap
</a>
</div>
</div>
<div className="col col--8" aria-hidden="true" style={{ paddingTop: '40px' }}>
<NewServices />
</div>
<div className="col col--8" aria-hidden="true" style={{ paddingTop: '40px' }}>
<FeaturedServices />
</div>
{/* <scale-divider></scale-divider> */}
<div className={clsx("col col--4", styles.item__inner)}>
<div>
<h1 className={clsx("margin-bottom--md", styles.item__title)}>
What's new?
</h1>
<p className="margin-bottom--md">
Explore the technical documentation of our brand new services in Help Center.
</p>
<a className="button button--secondary" href="https://www.open-telekom-cloud.com/en/products-services/roadmap" target="_blank">
Check the Portfolio Roadmap
</a>
</div>

</div>
</section>
);
}
<div className="col col--8" aria-hidden="true" style={{ paddingTop: '40px' }}>
<NewServices />
</div>

</div>
</section >
);
}
41 changes: 21 additions & 20 deletions src/components/HomepageNewServices/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,28 +2,29 @@ import clsx from 'clsx';
import Heading from '@theme/Heading';
import styles from './styles.module.css';
import NewServices from '../ServiceCallouts/NewServices';
import useBaseUrl from '@docusaurus/useBaseUrl';

export default function HomepageNewServices(): JSX.Element {
return (
return (
<section className="container" style={{ paddingTop: '20px', paddingBottom: '45px' }}>
<div className={clsx("row row--no-gutters", styles.item)}>
<div className="col col--8" aria-hidden="true" style={{ paddingTop: '40px' }}>
<NewServices />
</div>
<div className={clsx("col col--4", styles.item__inner)}>
<div>
<h1 className={clsx("margin-bottom--md", styles.item__title)}>
Meet the New Comers
</h1>
<p className="margin-bottom--md">
Explore the new services added in Open Telekom Cloud portfolio.
</p>
<a className="button button--secondary" href="/docs/best-practices">
Check the Roadmap Portfolio
</a>
</div>
<div className={clsx("row row--no-gutters", styles.item)}>
<div className="col col--8" aria-hidden="true" style={{ paddingTop: '40px' }}>
<NewServices />
</div>
<div className={clsx("col col--4", styles.item__inner)}>
<div>
<h1 className={clsx("margin-bottom--md", styles.item__title)}>
Meet the New Comers
</h1>
<p className="margin-bottom--md">
Explore the new services added in Open Telekom Cloud portfolio.
</p>
<a className="button button--secondary" href={useBaseUrl("/docs/best-practices")}>
Check the Roadmap Portfolio
</a>
</div>
</div>
</section>
);
}
</div>
</section>
);
}
3 changes: 2 additions & 1 deletion src/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import Layout from '@theme/Layout';
import HomepageFeatures from '@site/src/components/HomepageFeatures';
import Heading from '@theme/Heading';
import { useColorMode, useThemeConfig } from '@docusaurus/theme-common';
import useBaseUrl from '@docusaurus/useBaseUrl';

import styles from './index.module.css';
import HomepageFeaturedServices from '../components/HomepageFeaturedServices';
Expand All @@ -24,7 +25,7 @@ function HomepageHeader() {
</Heading>
<p className="hero__subtitle">Open Telekom Cloud {siteConfig.tagline}</p>
<div className={styles.buttons}>
<scale-button href="/docs/blueprints" variant={buttonVariant}>
<scale-button href={useBaseUrl("/docs/blueprints")} variant={buttonVariant}>
Get Started <scale-icon-navigation-right></scale-icon-navigation-right>
</scale-button>
</div>
Expand Down

0 comments on commit 3255358

Please sign in to comment.