Skip to content

Commit

Permalink
Merge pull request #552 from subquery/rebrand
Browse files Browse the repository at this point in the history
Rebrand
  • Loading branch information
jamesbayly authored Aug 21, 2024
2 parents 0cb57f0 + abc68fb commit e6b6d2e
Show file tree
Hide file tree
Showing 22 changed files with 2,932 additions and 2,356 deletions.
2 changes: 1 addition & 1 deletion docs/.vuepress/components/BaseCard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
height: 100%;
&:hover {
border: 1px solid #4388dd;
border: 1px solid #E968DD;
text-decoration: none;
}
}
Expand Down
2 changes: 1 addition & 1 deletion docs/.vuepress/components/Button.vue
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ defineProps<{
height: 48px;
line-height: 48px;
border-radius: 48px;
background: #4388dd;
background: #E968DD;
font-weight: 400;
font-size: 16px;
color: #fff;
Expand Down
34 changes: 2 additions & 32 deletions docs/.vuepress/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { defineUserConfig } from "vuepress";
import { hopeTheme } from "vuepress-theme-hope";
import { googleAnalyticsPlugin } from "@vuepress/plugin-google-analytics";
import { registerComponentsPlugin } from "@vuepress/plugin-register-components";
import { redirectPlugin } from "vuepress-plugin-redirect";
import { redirectPlugin } from "@vuepress/plugin-redirect";
import { getSidebar } from "./sidebar";

export default defineUserConfig({
Expand All @@ -12,33 +12,6 @@ export default defineUserConfig({
"Learn how to build with SubQuery. SubQuery is a fast, flexible, and reliable open-source data indexer that provides you with custom APIs for your web3 project. Build your API anywhere across multiple chains in minutes with our open-source SDK.",
head: [
["link", { rel: "icon", href: "/assets/img/logo.png" }],
[
"link",
{
rel: "apple-touch-icon",
type: "image/png",
sizes: "180x180",
href: "/assets/favicons/apple-touch-icon.png",
},
],
[
"link",
{
rel: "icon",
type: "image/png",
sizes: "32x32",
href: "/assets/favicons/favicon-32x32.png",
},
],
[
"link",
{
rel: "icon",
type: "image/png",
sizes: "16x16",
href: "/assets/favicons/favicon-16x16.png",
},
],
[
"meta",
{
Expand Down Expand Up @@ -103,14 +76,11 @@ export default defineUserConfig({
apiKey: "fdae5afc6c3711a8b4f53a4801b43143",
indexName: "subquery_academy",
},
linksCheck: {},
mdEnhance: {
// this is the default option, so you can use it directly
hint: true,
codetabs: true,
checkLinks: {
// only check links in dev mode
status: "dev",
},
include: {
deep: true,
},
Expand Down
Binary file not shown.
Binary file removed docs/.vuepress/public/assets/favicons/favicon-16x16.png
Binary file not shown.
Binary file not shown.
Binary file modified docs/.vuepress/public/assets/favicons/favicon.ico
Binary file not shown.
Binary file added docs/.vuepress/public/assets/favicons/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed docs/.vuepress/public/assets/icons/icon-128x128.png
Binary file not shown.
Binary file removed docs/.vuepress/public/assets/icons/icon-144x144.png
Binary file not shown.
Binary file removed docs/.vuepress/public/assets/icons/icon-152x152.png
Binary file not shown.
Binary file removed docs/.vuepress/public/assets/icons/icon-192x192.png
Binary file not shown.
Binary file removed docs/.vuepress/public/assets/icons/icon-384x384.png
Binary file not shown.
Binary file removed docs/.vuepress/public/assets/icons/icon-48x48.png
Binary file not shown.
Binary file removed docs/.vuepress/public/assets/icons/icon-512x512.png
Binary file not shown.
Binary file removed docs/.vuepress/public/assets/icons/icon-72x72.png
Binary file not shown.
Binary file removed docs/.vuepress/public/assets/icons/icon-96x96.png
Binary file not shown.
Binary file modified docs/.vuepress/public/assets/img/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
34 changes: 15 additions & 19 deletions docs/.vuepress/styles/index.scss
Original file line number Diff line number Diff line change
@@ -1,34 +1,32 @@
// place your custom styles here
@font-face {
font-family: "Inter";
src:
local("Inter-Regular"),
src: local("Inter-Regular"),
url("https://static.subquery.network/design/fonts/Inter-Regular.ttf")
format("truetype");
font-display: swap;
}

@font-face {
font-family: "Inter-SemiBold";
src:
local("Inter-SemiBold"),
src: local("Inter-SemiBold"),
url("https://static.subquery.network/design/fonts/Inter-SemiBold.ttf")
format("truetype");
font-display: swap;
}

@font-face {
font-family: "Inter-Bold";
src:
local("Inter-Bold"),
src: local("Inter-Bold"),
url("https://static.subquery.network/design/fonts/Inter-Bold.ttf")
format("truetype");
font-display: swap;
}

@font-face {
font-family: 'Futura';
src: url('https://static.subquery.network/design/fonts/Futura-Medium.ttf') format('truetype');
font-family: "Futura";
src: url("https://static.subquery.network/design/fonts/Futura-Medium.ttf")
format("truetype");
font-display: swap;
}

Expand All @@ -54,7 +52,9 @@ iframe {
#navbar {
max-width: 1440px;
margin: 0 auto;
.vp-navbar-start, .vp-navbar-end, .vp-navbar-center {
.vp-navbar-start,
.vp-navbar-end,
.vp-navbar-center {
flex: 0;
}

Expand Down Expand Up @@ -157,7 +157,6 @@ iframe {
.vp-sidebar-group {
.vp-sidebar-group {
padding-inline-start: 0;

}
.vp-sidebar-links {
padding-inline-start: 24px;
Expand All @@ -169,7 +168,7 @@ iframe {
.vp-sidebar-links {
position: relative;
&::after {
content: '';
content: "";
position: absolute;
top: 0;
left: 24px;
Expand All @@ -180,10 +179,10 @@ iframe {
}
}

.vp-sidebar-link:hover, .vp-sidebar-link.active {
.vp-sidebar-link:hover,
.vp-sidebar-link.active {
background: var(--dark-mode-card);
color: var(--theme-color);

}
.vp-sidebar-heading.clickable:hover {
background: transparent;
Expand Down Expand Up @@ -215,7 +214,6 @@ iframe {
max-width: var(--max-width);
}


@media screen and (max-width: 768px) {
#navbar {
.vp-navbar-center {
Expand All @@ -231,7 +229,7 @@ iframe {
}
.DocSearch {
width: 100%;
}
}
}
}

Expand All @@ -240,16 +238,14 @@ iframe {
}
}



html[data-theme="dark"] {
--dark-grey: #fff;
--primary-color: var(--theme-color);
--secondary-color: #ff4581;
--light-grey: var(--gray-400);
--theme-color-mask: transparent;
--dark-mode-card: #1b2545;
--dark-mode-border: #34414b;
--dark-mode-card: #1a1a1a;
--dark-mode-border: #1a1a1a;
--dark-mode-background: var(--bg-color);
--gray-300: #efe3e8;
--gray-400: #c4cdd5;
Expand Down
10 changes: 5 additions & 5 deletions docs/.vuepress/styles/palette.scss
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
$theme-color: #4388dd;
$theme-color: #e968dd;
$primary-color: $theme-color;

$bg-color: #060f32;
$bg-color-secondary: #1b2545;
$bg-color: #000000;
$bg-color-secondary: #1a1a1a;
$text-color: #fff;
$border-color: #34414b;
$border-color-dark: #34414b;
$border-color: #1a1a1a;
$border-color-dark: #1a1a1a;

$navbar-height: 80px;
$navbar-horizontal-padding: 24px;
Expand Down
19 changes: 10 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,18 @@
},
"packageManager": "[email protected]",
"devDependencies": {
"@vuepress/bundler-vite": "2.0.0-rc.8",
"@vuepress/helper": "2.0.0-rc.15",
"@vuepress/plugin-docsearch": "2.0.0-rc.19",
"@vuepress/plugin-google-analytics": "2.0.0-rc.15",
"@vuepress/plugin-register-components": "2.0.0-rc.21",
"@vuepress/bundler-vite": "2.0.0-rc.14",
"@vuepress/helper": "2.0.0-rc.41",
"@vuepress/plugin-docsearch": "2.0.0-rc.39",
"@vuepress/plugin-google-analytics": "2.0.0-rc.37",
"@vuepress/plugin-links-check": "2.0.0-rc.41",
"@vuepress/plugin-redirect": "2.0.0-rc.39",
"@vuepress/plugin-register-components": "2.0.0-rc.37",
"cross-env": "7.0.3",
"http-server": "14.1.1",
"vue": "^3.4.19",
"vuepress": "2.0.0-rc.8",
"vuepress-plugin-redirect": "2.0.0-rc.19",
"vuepress-theme-hope": "2.0.0-rc.25"
"vue": "^3.4.38",
"vuepress": "2.0.0-rc.14",
"vuepress-theme-hope": "2.0.0-rc.52"
},
"dependencies": {
"vue-router": "^4.3.0"
Expand Down
Loading

0 comments on commit e6b6d2e

Please sign in to comment.