GithubHelp home page GithubHelp logo

adidas / adidas.github.io Goto Github PK

View Code? Open in Web Editor NEW
73.0 11.0 12.0 7.62 MB

adidas GitHub Portal

Home Page: https://adidas.github.io

License: MIT License

Dockerfile 0.18% JavaScript 27.08% Groovy 1.25% Vue 45.87% SCSS 25.62%
nuxt travis-ci gh-pages vue

adidas.github.io's Introduction

adidas GitHub Portal

Website to display adidas Open Source projects.

How To

Show a REPOSITORY in adidas GitHub Portal

A repository must comply with the following:

  1. Belongs to https://github.com/adidas
  2. .meta.yml file exists

.meta.yml definition

Key Defaults Description
imageUrl '/img/source.jpg' A representative image of the project
backgroundColor N/A Background color for the card
display.name "" Overrides the repository name from GitHub
display.description "" Overrides the repository description from GitHub
keywords [] A list of keywords to search for this repo

Show a PROJECT in adidas GitHub Portal

To show a project in the GitHub portal, go to adidas GitHub portal CMS.

Project configuration

Key Required Defaults Description
id Yes N/A A unique identifier for the project
name Yes N/A The name of the project
description Yes N/A A brief description of the project
url Yes N/A The link to the public website of the project
config.imageUrl Yes N/A A representative image of the project
config.backgroundColor No N/A Background color for the card
config.keywords No [] A list of keywords to search for this project

Development

Requirements

  • node >= 8
  • npm >= 5

npm scripts

npm start

Runs a development server on localhost:3000. Runs nuxt under the hood.

npm run build

Builds the project distributables. Runs nuxt generate --spa under the hood so the website is ready to be deployed as a Single Page Application.

npm run serve

Runs the site on a server with SSR capabilities. Runs nuxt build && nuxt start under the hood.

npm run lint

Runs eslint to check that all the source JS and Vue files are compliant.

Style and font definitions

This project style is based on adidas YARN Design System with some customizations.

adidas is using this project as GitHub page, and the fonts used to deploy it on GitHub do not have public rights. For that reason, this project has been configured to use Poppins and Roboto as default fonts, however, they can be changed (see YARN documentation).

Deployment

GitHub Pages

git checkout develop
npm install
npm run build
git add -f ./dist
git commit -m "Update gh-pages"
git subtree split --prefix dist -b gh-pages
git push -f origin gh-pages:master

Dockerize

npm install
npm run build
npm prune --production
docker build -t adidas-github-io .

docker run -dit \
           --name adidas-github-io \
           -p 1337:80 \
           adidas-github-io

Deploy to k8s

Set up your k8s cluster to deploy the Docker image.

npm install
npm run build
npm prune --production
docker build -t IMAGE .
docker push IMAGE
envsubst < deploy/all.yml > deploy.yml
kubectl apply -f deploy.yml

adidas.github.io's People

Contributors

dependabot[bot] avatar moelders avatar recuencojones avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

adidas.github.io's Issues

Negative margin on sidebar

Screenshot 2021-06-16 at 15 46 56

At screen sizes between 110em and 115em wide, the sidebar class gets a negative margin-left value between -5em and -0em.

As shown in the screenshot above this negative margin causes the sidebar to render partially outside the viewport.

Removing the -5em from the highlighted calc correctly repositions the sidebar. However I'm not sure what the original motivation for the -5em was and if removing it can be done safely without impacting some other layout.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.