Skip to content

Commit fa4fa10

Browse files
author
Daniel Del Core
committed
updates the site
1 parent 4f50ca3 commit fa4fa10

File tree

6 files changed

+79
-71
lines changed

6 files changed

+79
-71
lines changed

website/docusaurus.config.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
/** @type {import('@docusaurus/types').DocusaurusConfig} */
22
module.exports = {
3-
title: 'CodeshiftCommunity',
3+
title: 'Hypermod Community',
44
tagline: 'Codemods for everyone ✨',
55
url: 'https://www.codeshiftcommunity.com',
66
baseUrl: '/',
77
onBrokenLinks: 'throw',
88
onBrokenMarkdownLinks: 'warn',
99
favicon: 'img/favicon.ico',
10-
organizationName: 'CodeshiftCommunity',
11-
projectName: 'CodeshiftCommunity',
10+
organizationName: 'Hypermod',
11+
projectName: 'Hypermod',
1212
themeConfig: {
1313
image: 'img/TwitterBanner.png',
1414
metadata: [
@@ -33,10 +33,11 @@ module.exports = {
3333
darkTheme: require('prism-react-renderer/themes/palenight'),
3434
},
3535
navbar: {
36-
title: 'CodeshiftCommunity',
36+
title: 'Hypermod Community',
3737
logo: {
38-
alt: 'CodeshiftCommunity Logo',
38+
alt: 'Hypermod Logo',
3939
src: 'img/logo.svg',
40+
srcDark: 'img/logo_dark.svg',
4041
},
4142
items: [
4243
{
@@ -65,7 +66,6 @@ module.exports = {
6566
],
6667
},
6768
footer: {
68-
style: 'dark',
6969
links: [
7070
{
7171
title: 'Docs',

website/src/css/custom.css

Lines changed: 17 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,23 @@
66

77
/* You can override the default Infima variables here. */
88
:root {
9-
--ifm-color-primary: #7d4bd5;
10-
--ifm-color-primary-dark: #7244c1;
11-
--ifm-color-primary-darker: #673eaf;
12-
--ifm-color-primary-darkest: #4d2e83;
13-
--ifm-color-primary-light: #9c6eec;
14-
--ifm-color-primary-lighter: #ad89ec;
15-
--ifm-color-primary-lightest: #c0a4f1;
9+
--ifm-color-primary: #000;
10+
--ifm-color-primary-dark: #000;
11+
--ifm-color-primary-darker: #000;
12+
--ifm-color-primary-darkest: #000;
13+
--ifm-color-primary-light: #000;
14+
--ifm-color-primary-lighter: #000;
15+
--ifm-color-primary-lightest: #000;
16+
}
17+
18+
[data-theme='dark'] {
19+
--ifm-color-primary: #fff;
20+
--ifm-color-primary-dark: #fff;
21+
--ifm-color-primary-darker: #fff;
22+
--ifm-color-primary-darkest: #fff;
23+
--ifm-color-primary-light: #fff;
24+
--ifm-color-primary-lighter: #fff;
25+
--ifm-color-primary-lightest: #fff;
1626
}
1727

1828
.docusaurus-highlight-code-line {

website/src/pages/index.js

Lines changed: 11 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -25,19 +25,15 @@ export default function Home() {
2525
<h1 className={clsx(styles.heroHeadingBanner)}>
2626
The community-owned codemod registry.
2727
</h1>
28-
<p className="hero__subtitle">
28+
<p>
2929
Discover the power of codemods for your development workflow. Our
3030
tools and resources allow you to easily manage dependencies,
3131
automate refactoring, and transform your codebase.
3232
</p>
33-
<p className="hero__subtitle">
33+
<p>
3434
With support for code migration and evolution, you can modernize
3535
your code and keep it up-to-date with the latest best practices.
3636
</p>
37-
<p className="hero__subtitle">
38-
Try our tools today and improve your development process.
39-
</p>
40-
<p></p>
4137
<Link
4238
to={useBaseUrl('docs/')}
4339
className={clsx(
@@ -139,17 +135,17 @@ export default function Home() {
139135
<div className="row">
140136
<div className={clsx('col col--4')}>
141137
<CodeBlock className="language-diff">
142-
{`+import Button from '@my-lib/button';
138+
{`import Button from '@my-lib/button';
143139
144140
145-
+const App = () => (
146-
+ <Button
147-
+ appearance="bold"
148-
+ handleClick=()
149-
+ >
150-
+ Submit
151-
+ </Button>
152-
+);`}
141+
const App = () => (
142+
<Button
143+
appearance="bold"
144+
handleClick=()
145+
>
146+
Submit
147+
</Button>
148+
);`}
153149
</CodeBlock>
154150
<div className={clsx(styles.center)}>
155151
<span className={clsx(styles.lozenge)}>v1.0.0</span>
@@ -344,14 +340,6 @@ export default transformer;`}</CodeBlock>
344340
</div>
345341
</div>
346342
</section>
347-
<section className={clsx(styles.logoBanner)}>
348-
<div className={clsx(styles.containerCenter)}>
349-
<Logo
350-
title="Hypermod logo"
351-
style={{ maxWidth: '160px', width: '100%' }}
352-
/>
353-
</div>
354-
</section>
355343
</main>
356344
</Layout>
357345
);

website/src/pages/styles.module.css

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -8,20 +8,9 @@
88
}
99

1010
.valueContainer {
11-
padding: 1.5rem;
12-
border-radius: 1rem;
1311
margin-bottom: 2rem;
1412
}
1513

16-
[data-theme='light'] .valueContainer {
17-
box-shadow: 0px 0px 1px rgb(124 58 162 / 50%),
18-
0px 10px 24px -7px rgb(145 0 218 / 10%);
19-
}
20-
21-
[data-theme='dark'] .valueContainer {
22-
box-shadow: 0px 0px 1px var(--ifm-color-primary-dark);
23-
}
24-
2514
.valueContainer p:last-child {
2615
margin-bottom: 0;
2716
}

website/static/img/logo.svg

Lines changed: 22 additions & 24 deletions
Loading

website/static/img/logo_dark.svg

Lines changed: 23 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)