From 6e660fe4cfe1924c77e5a0f356e9e0871783b430 Mon Sep 17 00:00:00 2001 From: Alvaro Prataviera Filho Date: Mon, 28 Aug 2023 09:38:03 -0300 Subject: [PATCH] feat(tutorial): complete step 4 --- src/components/InfoSection/InfoCard.vue | 83 ++++++++++++++++++++++ src/components/InfoSection/InfoSection.vue | 25 +++++++ src/components/InfoSection/index.js | 4 ++ src/styles/_carbon.scss | 2 +- src/views/LandingPage/LandingPage.vue | 46 +++++++++--- src/views/LandingPage/_mixins.scss | 2 +- src/views/RepoPage/RepoPage.vue | 4 +- 7 files changed, 154 insertions(+), 12 deletions(-) create mode 100644 src/components/InfoSection/InfoCard.vue create mode 100644 src/components/InfoSection/InfoSection.vue create mode 100644 src/components/InfoSection/index.js diff --git a/src/components/InfoSection/InfoCard.vue b/src/components/InfoSection/InfoCard.vue new file mode 100644 index 000000000..462893477 --- /dev/null +++ b/src/components/InfoSection/InfoCard.vue @@ -0,0 +1,83 @@ + + + + + diff --git a/src/components/InfoSection/InfoSection.vue b/src/components/InfoSection/InfoSection.vue new file mode 100644 index 000000000..9645bf6fd --- /dev/null +++ b/src/components/InfoSection/InfoSection.vue @@ -0,0 +1,25 @@ + + + + + diff --git a/src/components/InfoSection/index.js b/src/components/InfoSection/index.js new file mode 100644 index 000000000..7972fe703 --- /dev/null +++ b/src/components/InfoSection/index.js @@ -0,0 +1,4 @@ +import InfoSection from './InfoSection'; +import InfoCard from './InfoCard'; + +export { InfoSection, InfoCard }; diff --git a/src/styles/_carbon.scss b/src/styles/_carbon.scss index c2ce4d257..1854f9040 100644 --- a/src/styles/_carbon.scss +++ b/src/styles/_carbon.scss @@ -1,5 +1,5 @@ $feature-flags: ( - grid-columns-16: true, + grid-columns-16: true ); @import 'carbon-components/scss/globals/scss/styles'; diff --git a/src/views/LandingPage/LandingPage.vue b/src/views/LandingPage/LandingPage.vue index b9d5a2a2c..fdeccc6b0 100644 --- a/src/views/LandingPage/LandingPage.vue +++ b/src/views/LandingPage/LandingPage.vue @@ -60,14 +60,23 @@ -
-
-

The Principles

-
-
Carbon is Open
-
Carbon is Modular
-
Carbon is Consistent
-
+ + + + + @@ -124,3 +133,24 @@ @include carbon--type-style('heading-01'); } + + diff --git a/src/views/LandingPage/_mixins.scss b/src/views/LandingPage/_mixins.scss index d349416d3..5d9c72b00 100644 --- a/src/views/LandingPage/_mixins.scss +++ b/src/views/LandingPage/_mixins.scss @@ -14,6 +14,6 @@ > * { // lift above position absolute - position: relative;; + position: relative; } } diff --git a/src/views/RepoPage/RepoPage.vue b/src/views/RepoPage/RepoPage.vue index 93014abc5..e7d072213 100644 --- a/src/views/RepoPage/RepoPage.vue +++ b/src/views/RepoPage/RepoPage.vue @@ -23,7 +23,7 @@ import gql from 'graphql-tag'; const REPO_QUERY = gql` query REPO_QUERY { # Let's use carbon as our organization - organization(login: "carbon-design-system") { + organization(login: "amiyou-project") { # We'll grab all the repositories in one go. To load more resources # continuously, see the advanced topics. repositories(first: 75, orderBy: { field: UPDATED_AT, direction: DESC }) { @@ -115,7 +115,7 @@ export default { methods: { onPagination(val) { this.pageSize = val.length; - this.pageStart = val.start; + this.pageStart = val.start - 1; this.page = val.page; } },