Skip to content

Commit 10ddcc3

Browse files
author
Predrag
authored
Community stats page (#6)
* Install dependencies * Copy all the changes from datacebo website * Make global css adjustments * Alter global xl container width and align it with the page * Adjust tailwind and global styling * Add header css class logic for community stats page * Remove comments * Use location instead of window * Add tabs for sdv in numbers section * Add static table for sdv in numbers section * Fix learn more link width * Install recharts library * Remove unused prop from Hero * Add logo and brand colors to pie chart * Remove unused imports and center button label * Make pie chart responsive * Add latest news subsection * Pass image dimensions to news update * Remove padding * Remove padding from news slider section * Add mobile version for community users section * Add the tablet version for community users section * Remove dot slider from community users section * Set text to blue 600 * Remove monthly column * Remove cursor pointer from table rows * Finalize community users section with mocked data * Adjust sdv in numbers table * Adjust sdv core table * Adjust pie charts colors and font * Update subsection heading * Adjust slider svg illustrations * Update colors in pie chart * Add swiping for cards on md viewports * Remove the divider * Adjust padding for table charts section * Adjust tabs for both tables * Set current year as table column label * Remove responsive container from pie chart * Install xlsx library * Add custom arrow labels to pie chart * Fetch data from excel for sdv in numbers section * Display fetched data in sdv in numbers pie and table * Enlarge pie chart and adjust the dimensions * Add custom svg for one of the vendors * Adjust tablet UI for pie chart * Adjust tabs for table * Adjust pie chart colors * Adjust font size for pie chart desktop * Adjust active tab state text color * Adjust table width and tab hover state * Display data from second sheet tab * Update world map hero image * Adjust padding for latest news section * Add new announcement to news slider section * Reupload slides for open core section * Comment out sdv ten millions news * Adjust data fetching and pie chart * Fetch and pass dependencies data to sdv core section * Update pie chart colors * Add angled lines for desktop pie chart * Add angled lines for pie chart tablet * Update colors for pie chart arrows * Add different colors for polylines * Change hover color for table row * Adjust the font size of the labels * Fix percentages to two digits * Adjust circle fill for be-great * Adjust gradients for tablet pie chart * Set the color for active tabs * Set circles to 2px * Adjust labels as in presentation * Add logos for community users section * Update pre-footer banner bg image * Comment out latest new sub section underneath pie chart * Switch from semibold to medium for name of tables * Install heroicons react * Adjust title for section * Add new header * Delete unsued Layout component * Adjust pie chart from value for polyline * Update footer * Adjust section paddings * reupload slides * Adjust table UI * Update table styles * Switch order of sections * Add font consolas to table numbers * Enforce font weight 400 for consolas * Upload new community users images * Upgrade gradient * Set bg white to the table * Fix links for hero section * Remove not needed community users section items * Adjust the table gradient * Install gatsby ghost plugin * Set up ghost in config * Configure Ghost page route in gatsby node * Require dotenv in gatsby config * Create the template for case studies * Remove cta bg image for banner * Adjust slug for tag * Reupload second slide * Update tag slug and format yml * Remove unused styled components * Update pie chart dots position * Add sd gym with hero section * Add news slider and banner section to sd gym * Add SdGym about image and initiate section * Add about sd gym cards with dummy text * Create Status Badge component for leaderboard * Add leaderboard tags for sm viewport * Add border to pre-footer banner * Display tags for larger screens * Add plain table with dimensions * Add table header icons * Update yarn lock after node update * Adjust font sizes and paddings for tags and badge * Adjust dot positions in pie chart * Restrict node version in package.json * Fetch sd gym leaderboard excel * Add second layer nav * Add correct links for second layer navbar * Adjust top margin on all pages due to second layer nav * Add dynamic filter data tags for leaderboard * Display data in leaderboard table * Add same shadow to submenu items as with second layer navigation * Adjust navigation feedback * Increase margin top for subitems * Fix mobile UI for sdv community table * Comment out secetion and change order with title * Rename title * Set the title and the link for MAPFRE case study * Adjust old navigation with new content * Add redirection to community stats sections * Update subtitles of the page * Check for window * Check for window * Adjust tables width * Change label * Adjust font size * Adjust font size * Adjust navigation * Configure ghost * Hide sd-gym temporarily * Add styles for announcement-like case studies * Display external tag * Update fortawesome to have twitter icon * Add plugin image to gatsby config * Add link label for author link * Pass isDark to Article template to control nav color * Add origin for mapfre link * Comment out unused section * Add border to button in white nav * Adjust navbar color and Contact Us button style * Change contact us button * Change black to midnight 950 for nav * Remove emotion related libraries * Rename user stories to case studies in navigation
1 parent 67fe326 commit 10ddcc3

File tree

122 files changed

+8312
-1325
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

122 files changed

+8312
-1325
lines changed

.github/workflows/build_publish.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ jobs:
1616
with:
1717
access-token: ${{ secrets.HOME_TOKEN }}
1818
deploy-branch: gh-pages-home
19-
20-
env:
19+
env:
2120
SITEURL: "https://sdv.dev"
22-
SITEPATH: ""
21+
SITEPATH: ""
22+
GHOST_API_URL: ${{ secrets.GHOST_API_URL }}
23+
GHOST_CONTENT_API_KEY: ${{ secrets.GHOST_CONTENT_API_KEY }}

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
node_modules
22
.cache
33
public
4-
.DS_Store
4+
.DS_Store
5+
.env

gatsby-config.js

Lines changed: 161 additions & 139 deletions
Original file line numberDiff line numberDiff line change
@@ -1,153 +1,175 @@
1-
const path = require(`path`)
1+
const path = require(`path`);
2+
require("dotenv").config();
23

3-
const config = require(`./src/utils/siteConfig`)
4+
const config = require(`./src/utils/siteConfig`);
45

56
/**
6-
* This is the place where you can tell Gatsby which plugins to use
7-
* and set them up the way you want.
8-
*
9-
* Further info 👉🏼 https://www.gatsbyjs.org/docs/gatsby-config/
10-
*
11-
*/
7+
* This is the place where you can tell Gatsby which plugins to use
8+
* and set them up the way you want.
9+
*
10+
* Further info 👉🏼 https://www.gatsbyjs.org/docs/gatsby-config/
11+
*
12+
*/
13+
let ghostConfig;
14+
15+
try {
16+
ghostConfig = require(`./.ghost`);
17+
} catch (e) {
18+
ghostConfig = {
19+
production: {
20+
apiUrl: process.env.GHOST_API_URL,
21+
contentApiKey: process.env.GHOST_CONTENT_API_KEY,
22+
},
23+
development: {
24+
apiUrl: process.env.GHOST_API_URL,
25+
contentApiKey: process.env.GHOST_CONTENT_API_KEY,
26+
},
27+
};
28+
}
29+
1230
module.exports = {
13-
pathPrefix: "/",
14-
siteMetadata: {
15-
siteUrl: process.env.SITEURL || config.siteUrl,
16-
url: process.env.SITEURL || config.siteUrl,
17-
twitterUsername: "@sdv_dev",
18-
image: config.image,
31+
pathPrefix: "/",
32+
siteMetadata: {
33+
siteUrl: process.env.SITEURL || config.siteUrl,
34+
url: process.env.SITEURL || config.siteUrl,
35+
twitterUsername: "@sdv_dev",
36+
image: config.image,
37+
},
38+
flags: {
39+
// PRESERVE_WEBPACK_CACHE: true,
40+
// PRESERVE_FILE_DOWNLOAD_CACHE: true,
41+
},
42+
plugins: [
43+
{
44+
resolve: `gatsby-source-ghost`,
45+
options: ghostConfig.production,
1946
},
20-
flags: {
21-
// PRESERVE_WEBPACK_CACHE: true,
22-
// PRESERVE_FILE_DOWNLOAD_CACHE: true,
47+
{
48+
resolve: `gatsby-plugin-google-gtag`,
49+
options: {
50+
// You can add multiple tracking ids and a pageview event will be fired for all of them.
51+
trackingIds: [
52+
"G-VS2E5NF00K", // Google Analytics / GA
53+
// "AW-CONVERSION_ID", // Google Ads / Adwords / AW
54+
// "DC-FLOODIGHT_ID", // Marketing Platform advertising products (Display & Video 360, Search Ads 360, and Campaign Manager)
55+
],
56+
},
2357
},
24-
plugins: [
25-
{
26-
resolve: `gatsby-plugin-google-gtag`,
27-
options: {
28-
// You can add multiple tracking ids and a pageview event will be fired for all of them.
29-
trackingIds: [
30-
"G-VS2E5NF00K", // Google Analytics / GA
31-
// "AW-CONVERSION_ID", // Google Ads / Adwords / AW
32-
// "DC-FLOODIGHT_ID", // Marketing Platform advertising products (Display & Video 360, Search Ads 360, and Campaign Manager)
33-
],
34-
},
35-
},
36-
/**
37-
* Content Plugins
38-
*/
39-
{
40-
resolve: `gatsby-source-filesystem`,
41-
options: {
42-
path: path.join(__dirname, `src`, `pages`),
43-
name: `pages`,
44-
},
45-
},
46-
// Setup for optimised images.
47-
// See https://www.gatsbyjs.org/packages/gatsby-image/
48-
{
49-
resolve: `gatsby-source-filesystem`,
50-
options: {
51-
path: path.join(__dirname, `src`, `images`),
52-
name: `images`,
53-
},
54-
},
55-
{
56-
resolve: `gatsby-source-filesystem`,
57-
options: {
58-
name: `images`,
59-
path: path.join(__dirname, `static`),
60-
},
58+
/**
59+
* Content Plugins
60+
*/
61+
{
62+
resolve: `gatsby-source-filesystem`,
63+
options: {
64+
path: path.join(__dirname, `src`, `pages`),
65+
name: `pages`,
66+
},
67+
},
68+
// Setup for optimised images.
69+
// See https://www.gatsbyjs.org/packages/gatsby-image/
70+
{
71+
resolve: `gatsby-source-filesystem`,
72+
options: {
73+
path: path.join(__dirname, `src`, `images`),
74+
name: `images`,
75+
},
76+
},
77+
{
78+
resolve: `gatsby-source-filesystem`,
79+
options: {
80+
name: `images`,
81+
path: path.join(__dirname, `static`),
82+
},
83+
},
84+
{
85+
resolve: "gatsby-plugin-react-svg",
86+
options: {
87+
rule: {
88+
include: /assets/, // See below to configure properly
6189
},
62-
{
63-
resolve: "gatsby-plugin-react-svg",
90+
},
91+
},
92+
`gatsby-plugin-scroll-reveal`,
93+
`gatsby-plugin-sharp`,
94+
`gatsby-transformer-sharp`,
95+
{
96+
resolve: `gatsby-transformer-remark`,
97+
options: {
98+
plugins: [
99+
{
100+
resolve: `gatsby-remark-prismjs`,
64101
options: {
65-
rule: {
66-
include: /assets/, // See below to configure properly
67-
},
68-
},
69-
},
70-
`gatsby-plugin-scroll-reveal`,
71-
`gatsby-plugin-sharp`,
72-
`gatsby-transformer-sharp`,
73-
{
74-
resolve: `gatsby-transformer-remark`,
75-
options: {
76-
plugins: [
77-
{
78-
resolve: `gatsby-remark-prismjs`,
79-
options: {
80-
// Class prefix for <pre> tags containing syntax highlighting;
81-
// defaults to 'language-' (e.g. <pre class="language-js">).
82-
// If your site loads Prism into the browser at runtime,
83-
// (e.g. for use with libraries like react-live),
84-
// you may use this to prevent Prism from re-processing syntax.
85-
// This is an uncommon use-case though;
86-
// If you're unsure, it's best to use the default value.
87-
classPrefix: "language-",
88-
// This is used to allow setting a language for inline code
89-
// (i.e. single backticks) by creating a separator.
90-
// This separator is a string and will do no white-space
91-
// stripping.
92-
// A suggested value for English speakers is the non-ascii
93-
// character '›'.
94-
inlineCodeMarker: null,
95-
// This lets you set up language aliases. For example,
96-
// setting this to '{ sh: "bash" }' will let you use
97-
// the language "sh" which will highlight using the
98-
// bash highlighter.
99-
aliases: {},
100-
// This toggles the display of line numbers globally alongside the code.
101-
// To use it, add the following line in gatsby-browser.js
102-
// right after importing the prism color scheme:
103-
// require("prismjs/plugins/line-numbers/prism-line-numbers.css")
104-
// Defaults to false.
105-
// If you wish to only show line numbers on certain code blocks,
106-
// leave false and use the {numberLines: true} syntax below
107-
showLineNumbers: false,
108-
// If setting this to true, the parser won't handle and highlight inline
109-
// code used in markdown i.e. single backtick code like `this`.
110-
noInlineHighlight: false,
111-
// This adds a new language definition to Prism or extend an already
112-
// existing language definition. More details on this option can be
113-
// found under the header "Add new language definition or extend an
114-
// existing language" below.
115-
languageExtensions: [
116-
{
117-
language: "superscript",
118-
extend: "javascript",
119-
definition: {
120-
superscript_types: /(SuperType)/,
121-
},
122-
insertBefore: {
123-
function: {
124-
superscript_keywords: /(superif|superelse)/,
102+
// Class prefix for <pre> tags containing syntax highlighting;
103+
// defaults to 'language-' (e.g. <pre class="language-js">).
104+
// If your site loads Prism into the browser at runtime,
105+
// (e.g. for use with libraries like react-live),
106+
// you may use this to prevent Prism from re-processing syntax.
107+
// This is an uncommon use-case though;
108+
// If you're unsure, it's best to use the default value.
109+
classPrefix: "language-",
110+
// This is used to allow setting a language for inline code
111+
// (i.e. single backticks) by creating a separator.
112+
// This separator is a string and will do no white-space
113+
// stripping.
114+
// A suggested value for English speakers is the non-ascii
115+
// character '›'.
116+
inlineCodeMarker: null,
117+
// This lets you set up language aliases. For example,
118+
// setting this to '{ sh: "bash" }' will let you use
119+
// the language "sh" which will highlight using the
120+
// bash highlighter.
121+
aliases: {},
122+
// This toggles the display of line numbers globally alongside the code.
123+
// To use it, add the following line in gatsby-browser.js
124+
// right after importing the prism color scheme:
125+
// require("prismjs/plugins/line-numbers/prism-line-numbers.css")
126+
// Defaults to false.
127+
// If you wish to only show line numbers on certain code blocks,
128+
// leave false and use the {numberLines: true} syntax below
129+
showLineNumbers: false,
130+
// If setting this to true, the parser won't handle and highlight inline
131+
// code used in markdown i.e. single backtick code like `this`.
132+
noInlineHighlight: false,
133+
// This adds a new language definition to Prism or extend an already
134+
// existing language definition. More details on this option can be
135+
// found under the header "Add new language definition or extend an
136+
// existing language" below.
137+
languageExtensions: [
138+
{
139+
language: "superscript",
140+
extend: "javascript",
141+
definition: {
142+
superscript_types: /(SuperType)/,
143+
},
144+
insertBefore: {
145+
function: {
146+
superscript_keywords: /(superif|superelse)/,
147+
},
125148
},
126149
},
150+
],
151+
// Customize the prompt used in shell output
152+
// Values below are default
153+
prompt: {
154+
user: "root",
155+
host: "localhost",
156+
global: false,
127157
},
128-
],
129-
// Customize the prompt used in shell output
130-
// Values below are default
131-
prompt: {
132-
user: "root",
133-
host: "localhost",
134-
global: false,
158+
// By default the HTML entities <>&'" are escaped.
159+
// Add additional HTML escapes by providing a mapping
160+
// of HTML entities and their escape value IE: { '}': '&#123;' }
161+
escapeEntities: {},
135162
},
136-
// By default the HTML entities <>&'" are escaped.
137-
// Add additional HTML escapes by providing a mapping
138-
// of HTML entities and their escape value IE: { '}': '&#123;' }
139-
escapeEntities: {},
140163
},
141-
},
142-
],
164+
],
165+
},
143166
},
144-
},
145-
`gatsby-plugin-styled-components`,
146-
`gatsby-plugin-sass`,
147-
`gatsby-plugin-catch-links`,
148-
`gatsby-plugin-react-helmet`,
149-
`gatsby-plugin-force-trailing-slashes`,
150-
`gatsby-plugin-offline`,
151-
`gatsby-plugin-anchor-links`
152-
],
153-
}
167+
`gatsby-plugin-image`,
168+
`gatsby-plugin-sass`,
169+
`gatsby-plugin-catch-links`,
170+
`gatsby-plugin-react-helmet`,
171+
`gatsby-plugin-force-trailing-slashes`,
172+
`gatsby-plugin-offline`,
173+
`gatsby-plugin-anchor-links`,
174+
],
175+
};

0 commit comments

Comments
 (0)