-
Notifications
You must be signed in to change notification settings - Fork 179
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #524 from feature-sliced/feature/PROMO--companies-…
…marquee PROMO: Setup marquee for companies
- Loading branch information
Showing
12 changed files
with
186 additions
and
158 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
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,72 @@ | ||
/** | ||
* Companies using Feature-Sliced Design | ||
* @see https://github.com/feature-sliced/documentation/issues/131 | ||
* @see static/img/companies | ||
*/ | ||
export const companies = [ | ||
{ | ||
url: "https://redmadrobot.com/", | ||
src: "red_mad_robot.png", | ||
alt: "red_mad_robot", | ||
}, | ||
{ | ||
url: "https://kode.ru/", | ||
src: "kode.png", | ||
alt: "KODE", | ||
}, | ||
{ | ||
url: "https://uptarget.co/", | ||
src: "uptarget.png", | ||
alt: "Uptarget", | ||
}, | ||
{ | ||
url: "https://www.fxdd.com/", | ||
src: "fxdd.svg", | ||
alt: "FXDD", | ||
}, | ||
{ | ||
url: "https://foxford.ru/", | ||
src: "foxford.svg", | ||
alt: "Foxford", | ||
}, | ||
{ | ||
url: "https://vigo.ru/", | ||
src: "vigo.png", | ||
alt: "Vigo", | ||
}, | ||
{ | ||
url: "https://space307.com/", | ||
src: "space307.svg", | ||
alt: "~/.space307", | ||
}, | ||
{ | ||
url: "https://pmp-tech.ru/", | ||
src: "pmp-tech.png", | ||
alt: "PMP Tech", | ||
}, | ||
{ | ||
url: "https://www.aligntech.com/", | ||
src: "align.svg", | ||
alt: "Align", | ||
}, | ||
{ | ||
url: "https://smile2impress.com/", | ||
src: "impress.svg", | ||
alt: "Impress", | ||
}, | ||
{ | ||
url: "https://pochta.tech/", | ||
src: "pochtatech.svg", | ||
alt: "Почтатех", | ||
}, | ||
{ | ||
url: "https://befree.ru/", | ||
src: "befree.svg", | ||
alt: "befree", | ||
}, | ||
{ | ||
url: "https://www.softcery.com/", | ||
src: "softcery.png", | ||
alt: "Softcery", | ||
}, | ||
]; |
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,47 @@ | ||
import React from "react"; | ||
// It's utility, not hook =) | ||
import getBaseUrl from "@docusaurus/useBaseUrl"; | ||
import { translate } from "@docusaurus/Translate"; | ||
import Marquee from "react-fast-marquee"; | ||
import { Section } from "@site/src/shared/ui"; | ||
import { companies } from "./_config"; | ||
import styles from "./styles.module.scss"; | ||
|
||
export const Companies = () => { | ||
return ( | ||
<Section | ||
title={translate({ id: "pages.home.companies.using" })} | ||
className={styles.root} | ||
containerClass={styles.rootContainer} | ||
> | ||
<Marquee pauseOnHover> | ||
{companies.map(({ url, src, alt }) => ( | ||
<a | ||
key={src} | ||
className={styles.item} | ||
href={url} | ||
target="_blank" | ||
rel="noopener noreferrer" | ||
> | ||
<img | ||
className={styles.image} | ||
src={getBaseUrl(`img/companies/${src}`)} | ||
title={alt} | ||
alt={alt} | ||
/> | ||
</a> | ||
))} | ||
</Marquee> | ||
<span className={styles.addMe}> | ||
{translate({ id: "pages.home.companies.add_me" })}{" "} | ||
<a | ||
href="https://github.com/feature-sliced/documentation/issues/131" | ||
target="_blank" | ||
rel="noopener noreferrer" | ||
> | ||
{translate({ id: "pages.home.companies.tell_us" })} | ||
</a> | ||
</span> | ||
</Section> | ||
); | ||
}; |
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,47 @@ | ||
.root { | ||
/* Protected from dark mode (and flickering) */ | ||
color: #1c1e21; | ||
background: #ffffff; | ||
|
||
&Container { | ||
width: 100%; | ||
padding: 0 1rem; | ||
overflow: hidden; | ||
} | ||
} | ||
|
||
.item { | ||
display: flex; | ||
align-items: center; | ||
margin: 0 20px; | ||
filter: grayscale(1); | ||
opacity: 0.8; | ||
transition: 0.25s; | ||
|
||
&:hover { | ||
filter: grayscale(0); | ||
opacity: 1; | ||
} | ||
} | ||
|
||
.image { | ||
height: 50px; | ||
} | ||
|
||
.addMe { | ||
width: 100%; | ||
padding-top: 40px; | ||
font-size: 12px; | ||
font-style: italic; | ||
text-align: center; | ||
} | ||
|
||
@media screen and (max-width: 800px) { | ||
.item { | ||
margin: 0 10px; | ||
} | ||
|
||
.image { | ||
height: 20px; | ||
} | ||
} |
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
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 |
---|---|---|
|
@@ -15,6 +15,6 @@ | |
} | ||
|
||
.title { | ||
margin-bottom: 60px; | ||
margin-bottom: 40px; | ||
text-align: center; | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.