Skip to content

Commit

Permalink
Improvement/home page (#483)
Browse files Browse the repository at this point in the history
* edit home page

* mark popular articles

* change popular articles, sort them
  • Loading branch information
VladyslavBondarenko authored Sep 8, 2021
1 parent 1208b37 commit 2109656
Show file tree
Hide file tree
Showing 14 changed files with 451 additions and 36 deletions.
3 changes: 2 additions & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
/layouts/partials/breadcrumbs.html
/layouts/partials/breadcrumbs.html
/layouts/partials/popular-articles.html
181 changes: 174 additions & 7 deletions assets/scss/_homepage.scss
Original file line number Diff line number Diff line change
@@ -1,22 +1,189 @@
.page--home {
#hero {
padding: 70px 0;
background-color: #f5f8ff;
@mixin arrowRight($marginLeft, $color) {
.arrow-right {
position: relative;
margin-left: $marginLeft;
transition: all 160ms ease-in-out;
left: 0;

.inner {
max-width: 800px;
path {
fill: $color;
}
}
&:hover .arrow-right {
left: 2px;
}
}

.page--home {
#hero {
h1 {
color: $black-l;
color: white;
font-size: 40px;
text-align: center;

@media (max-width: 1000px) {
font-size: 30px;
}
}
.popular-topics {
color: white;
text-align: center;
margin-top: 20px;
line-height: 1.4;

a {
color: white !important;
font-weight: 600;
}
}
}
.hero__top {
padding: 70px 0;
background-color: $blue;
}
.hero__bottom {
padding-top: 130px;
background: url(https://static.codemagic.io/media/docs/hero-bg.svg);
background-position: top center;
background-repeat: no-repeat;
background-size: contain;
}
.inner--search {
max-width: 800px;
}

.cards {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 100px;

@media (max-width: 1200px) {
gap: 30px;
}
@media (max-width: 1024px) {
grid-template-columns: 1fr;
}
}
.card {
display: flex;
align-items: center;
gap: 30px;
background-color: white;
box-shadow: 0px 4px 30px $shadow-blue;
border-radius: 20px;
padding: 30px;

&__content {
display: flex;
flex-direction: column;
gap: 30px;
}
&__title {
font-weight: 600;
font-size: 24px;
}
&__description {
font-size: 14px;
line-height: 2;
}
&__button {
border-radius: 10px;
padding: 15px 40px;
width: fit-content;
background-color: $blue-xl;
color: $black-l;
font-weight: 600;
font-size: 14px;
transition: all 200ms ease-in-out;

&:hover {
background-color: $blue-xl-border;
}
}
@media (max-width: 1024px) {
&__content {
gap: 10px;
}
}
@media (max-width: 768px) {
&__image {
width: 40%;

svg {
width: 100%;
}
}
}
@media (max-width: 560px) {
flex-direction: column;

&__button {
width: 100%;
box-sizing: border-box;
text-align: center;
}
}
}

#links {
padding: 100px 0;

h2 {
font-size: 30px;
text-align: center;
margin-bottom: 80px;
}
a.view-all {
color: $blue;
@include arrowRight(20px, $blue);
}
}

.footer {
background: #f0f4ff;
padding: 85px 0;

.inner {
display: flex;
justify-content: space-between;
align-items: center;
gap: 30px;
}
&__title {
color: $black-l;
font-weight: 600;
font-size: 30px;
margin-bottom: 15px;
}
&__subtitle {
line-height: 1.4;
}
&__button {
padding-right: 60px;
background: $blue;
color: white;
padding: 15px 30px;
border-radius: 10px;
font-weight: 600;
font-size: 14px;
position: relative;
height: fit-content;
display: flex;
align-items: center;
justify-content: space-between;
@include arrowRight(40px, white);
}

@media (max-width: 480px) {
.inner {
display: block;
}
&__content {
margin-bottom: 30px;
}
&__button {
justify-content: center;
}
}
}
}
2 changes: 1 addition & 1 deletion assets/scss/_search.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
position: relative;

@at-root .page--home & {
margin: 30px 0;
margin-top: 30px;
}
&__input {
position: relative;
Expand Down
17 changes: 13 additions & 4 deletions assets/scss/modules/_links-group.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.links-group-wrap {
display: grid;
grid-template-columns: repeat(4, 1fr);
grid-template-columns: repeat(3, 1fr);
gap: 40px;

@media (max-width: 1000px) {
Expand All @@ -13,19 +13,28 @@
}
.links-group {
h3 {
font-size: 24px;
font-size: 20px;
padding-bottom: 25px;
border-bottom: 1px solid #cdddff;

@media (max-width: 1400px) {
font-size: 20px;
}
}
li {
margin: 15px 0;
margin: 25px 0;
}
a {
color: $black;
color: $black-l;
font-weight: 600;

&:hover {
color: $blue;
}
}
@media (max-width: 560px) {
li {
margin: 15px 0;
}
}
}
62 changes: 42 additions & 20 deletions content/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,39 +4,61 @@ description: Browse the Codemagic documentation for a quick overview of how to c
title: Codemagic Documentation
---

## Browse articles by topic

<div class="links-group-wrap">

{{<links-group title="Sample projects">}}
{{<links-group title="Getting started">}}

- [React Native](https://github.com/codemagic-ci-cd/codemagic-sample-projects/tree/main/react-native)
- [iOS code signing](https://github.com/codemagic-ci-cd/codemagic-sample-projects/tree/main/ios/ios-automatic-code-signing-demo-project)
- [SonarCloud](https://github.com/codemagic-ci-cd/sonarcloud-sample-project)
- [AWS Device Farm](https://github.com/codemagic-ci-cd/codemagic-sample-projects/tree/main/android/android-espresso-demo-project)
{{</links-group>}}
- [Signup](/getting-started/signup/)
- [Adding repositories](/getting-started/github/)
- [Project types](/getting-started/projects/)

{{</links-group>}}

{{<links-group title="Codemagic.yaml">}}

- [Quick start guides](../yaml-quick-start/codemagic-sample-projects)
- [Code signing](../yaml-code-signing/signing-ios/)
- [Publishing and deployment](../yaml-publishing/distribution/)
- [codemagic.yaml syntax](../yaml/yaml-getting-started)
- [Quick start guides](/yaml-quick-start/codemagic-sample-projects/)
- [Testing](/yaml-testing/testing/)
- [Code signing](/yaml-code-signing/signing-ios/)
- {{<link-with-arrow text="View all" href="/yaml/yaml-getting-started/">}}

{{</links-group>}}
{{</links-group>}}

{{<links-group title="Flutter Workflow Editor">}}

- [Building Flutter apps](../flutter-configuration/flutter-projects/)
- [Build configurations](/flutter-configuration/flutter-projects/)
- [Testing](/flutter-testing/running-automated-tests/)
- [Code signing](/flutter-code-signing/ios-code-signing/)
- [Publishing to App Store Connect](../flutter-publishing/publishing-to-app-store/)
- [Publishing to Google Play](../flutter-publishing/publishing-to-google-play/)
- {{<link-with-arrow text="View all" href="/flutter-configuration/flutter-projects/">}}

{{</links-group>}}
{{</links-group>}}

{{<links-group title="Popular articles">}}
{{<links-group title="Sample projects">}}

- [React Native](https://github.com/codemagic-ci-cd/codemagic-sample-projects/tree/main/react-native)
- [iOS code signing](https://github.com/codemagic-ci-cd/codemagic-sample-projects/tree/main/ios/ios-automatic-code-signing-demo-project)
- [SonarCloud](https://github.com/codemagic-ci-cd/sonarcloud-sample-project)
- {{<link-with-arrow text="View all" href="https://github.com/codemagic-ci-cd/codemagic-sample-projects">}}

{{</links-group>}}

{{<links-group title="Codemagic API & CLI tools">}}

- [Overview](/rest-api/overview/)
- [Applications](/rest-api/applications/)
- [Builds](/rest-api/builds/)
- [CLI tools](/cli/codemagic-cli-tools/)

- [Environment variables](../variables/environment-variables)
- [Build versioning](../configuration/build-versioning)
- [Build machine specs](../specs/machine-type/)
- [Codemagic CLI tools](../cli/codemagic-cli-tools/)
{{</links-group>}}

{{<links-group title="Account management">}}

- [Creating and managing teams](/teams/teams/)
- [Counting users in teams](/teams/users/)
- [Billing](/billing/billing/)
- [Pricing](/billing/pricing/)

{{</links-group>}}

</div>
1 change: 1 addition & 0 deletions content/variables/environment-variable-groups.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ title: Environment variable groups
weight: 3
aliases: [/building/environment-variable-groups, /variables/encrypting, /building/encrypting]
platform: yaml
popular: 3
---

You can add environment variables in the following places:
Expand Down
1 change: 1 addition & 0 deletions content/yaml-publishing/distribution.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ weight: 1
aliases:
- '../yaml/distribution'
- /publishing-yaml/distribution
popular: 2
---

All generated artifacts can be published to external services. The available integrations currently are email, Slack, Google Play, and App Store Connect. It is also possible to publish elsewhere with custom scripts; see the examples below.
Expand Down
1 change: 1 addition & 0 deletions content/yaml/yaml-getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ aliases:
- '../yaml/yaml'
- /getting-started/yaml
- /yaml-quick-start/yaml
popular: 1
---

`codemagic.yaml` is a highly customizable configuration file for setting up your CI/CD pipeline with Codemagic. Configure all your workflows in a single file and commit the file to version control.
Expand Down
Loading

0 comments on commit 2109656

Please sign in to comment.