Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions src/components/homepage-users.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
align-items: center;
flex-wrap: wrap;
gap: 48px 32px;
margin-top: 64px;
}

.userRow img {
Expand Down Expand Up @@ -79,3 +80,22 @@ html[data-theme='dark'] .testimonialWrapper {
margin-right: 0.5rem;
}
}

.usageGraphs {
display: flex;
justify-content: center;
align-items: center;
gap: 16px;
flex-wrap: wrap;

figure {
flex-basis: 320px;
flex-grow: 1;
margin: 0;
}

img {
background: white;
border-radius: 0.4rem;
}
}
31 changes: 30 additions & 1 deletion src/components/homepage-users.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import clsx from 'clsx';
import React, { useEffect, useState } from 'react';
import Link from '@docusaurus/Link';
import { Carousel } from 'react-responsive-carousel';
import styles from './homepage-users.module.scss';
import 'react-responsive-carousel/lib/styles/carousel.min.css';
Expand Down Expand Up @@ -84,7 +85,35 @@ export function HomepageUsers(): JSX.Element {
return (
<section className={styles.users}>
<div className="container">
<h2>Trusted and used by</h2>
<h2>Trusted and used by thousands</h2>
<div className={styles.usageGraphs}>
<figure>
<a href="https://npm-compare.com/sequelize#timeRange=THREE_YEARS" target="_blank">
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
<a href="https://npm-compare.com/sequelize#timeRange=THREE_YEARS" target="_blank">
<a href="https://npm-compare.com/sequelize#timeRange=THREE_YEARS" target="_blank" rel="noreferrer">

<img
src="https://npm-compare.com/img/npm-trend/THREE_YEARS/sequelize.png"
alt="NPM Usage Trend of sequelize"
loading="lazy"
/>
</a>
<figcaption>
NPM Usage Trend of <Link to="/docs/v6/">Sequelize 6</Link>
</figcaption>
</figure>

<figure>
<a href="https://npm-compare.com/@sequelize/core#timeRange=THREE_YEARS" target="_blank">
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
<a href="https://npm-compare.com/@sequelize/core#timeRange=THREE_YEARS" target="_blank">
<a href="https://npm-compare.com/@sequelize/core#timeRange=THREE_YEARS" target="_blank" rel="noreferrer">

<img
src="https://npm-compare.com/img/npm-trend/THREE_YEARS/@sequelize/core.png"
alt="NPM Usage Trend of @sequelize/core"
loading="lazy"
/>
</a>
<figcaption>
NPM Usage Trend of <Link to="/docs/v7/">Sequelize 7</Link>
</figcaption>
</figure>
</div>

<div className={clsx(styles.userRow)}>
<Carousel
showArrows={false}
Expand Down
8 changes: 4 additions & 4 deletions src/css/variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ $brand-primary-dark: #2e3b69;
// using fluid will scale a pixel value based on the screen size, with a lower and upper bound.
// it's brilliant for responsive design.
@function fluid($min-vw, $max-vw, $min-size, $max-size) {
$u1: unit($min-vw);
$u2: unit($max-vw);
$u3: unit($min-size);
$u4: unit($max-size);
$u1: math.unit($min-vw);
$u2: math.unit($max-vw);
$u3: math.unit($min-size);
$u4: math.unit($max-size);

@if $u1 == $u2 and $u3 == $u4 {
@return max(
Expand Down
Loading