From 4198faa4b796c44c74032d61ca50ad770cb50fda Mon Sep 17 00:00:00 2001 From: Hamcha Date: Fri, 19 Jun 2020 20:43:58 +0200 Subject: [PATCH] Resize and rename sections --- .drone.yml | 20 +++++++++----------- src/sections.ts | 39 +++++++++++++++++---------------------- style/main.scss | 2 ++ 3 files changed, 28 insertions(+), 33 deletions(-) diff --git a/.drone.yml b/.drone.yml index 535f426..4ff82f4 100644 --- a/.drone.yml +++ b/.drone.yml @@ -53,13 +53,13 @@ steps: depends_on: - dependencies - - name: build_master + - name: build_branch image: node commands: - yarn build environment: - SUBPATH: /tghandbook/latest - OUTDIR: ./dist-master + SUBPATH: /tghandbook/${DRONE_COMMIT_BRANCH/\//_} + OUTDIR: ./dist-branch when: event: - push @@ -106,7 +106,7 @@ steps: depends_on: - build_pr - - name: upload_build_master + - name: upload_build_branch image: plugins/s3 settings: bucket: tghandbook @@ -114,18 +114,16 @@ steps: from_secret: minio_access secret_key: from_secret: minio_secret - source: dist-master/**/* - target: /latest/ - strip_prefix: dist-master/ + source: dist-branch/**/* + target: /${DRONE_COMMIT_BRANCH/\//_}/ + strip_prefix: dist-branch/ path_style: true endpoint: https://artifacts.fromouter.space when: event: - push - branch: - - master depends_on: - - build_master + - build_branch - name: rebuild-cache image: drillster/drone-volume-cache @@ -146,4 +144,4 @@ volumes: path: /opt/gitea/drone-cache/hamcha/tghandbook --- kind: signature -hmac: 9f4b08596bdaa078a6c60fc63d932084bab117c340a310903bbe96f31c0122bb +hmac: 95ed9609f0ead6f8b59dbee87b8f0a5d1e68fe8eb264fbc6410a314a7289ffff diff --git a/src/sections.ts b/src/sections.ts index a6e50ac..6a188ab 100644 --- a/src/sections.ts +++ b/src/sections.ts @@ -8,31 +8,26 @@ const sections = [ { page: "Guide_to_medicine", icon: null }, { page: "Guide_to_chemistry", icon: chemistry }, { page: "Guide_to_plumbing", icon: null }, - { page: "Grenade", icon: null }, + { page: "Grenade", text: "nade", icon: null }, { page: "Guide_to_genetics", icon: null }, - { page: "Infections", text: "VIRS", icon: null }, + { page: "Infections", text: "virus", icon: null }, { page: "Surgery", icon: null }, - { page: "Guide_to_Traumas", icon: null }, - { page: "Guide_to_Wounds", icon: null }, - { page: "Guide_to_Ghetto_Chemistry", text: "ghet", icon: null }, + { page: "Guide_to_Traumas", text: "trauma", icon: null }, + { page: "Guide_to_Wounds", text: "wound", icon: null }, + { page: "Guide_to_Ghetto_Chemistry", text: "ghetto", icon: null }, ], }, { name: "Engineering", tabs: [ { page: "Guide_to_construction", icon: null }, - { - page: "Guide_to_advanced_construction", - text: "mach", - icon: null, - }, - { page: "Solars", icon: null }, - { page: "Guide_to_the_Supermatter", text: "SUPM", icon: null }, - { page: "Singularity_Engine", text: "SING", icon: null }, - { page: "Tesla_Engine", text: "TESL", icon: null }, + { page: "Machines", icon: null }, + { page: "Guide_to_power", text: "power", icon: null }, + { page: "Solars", text: "solar", icon: null }, + { page: "Guide_to_the_Supermatter", text: "smatt", icon: null }, + { page: "Singularity_and_Tesla_engines", text: "sing/tesl", icon: null }, { page: "Gas_turbine", text: "GAS", icon: null }, - { page: "Guide_to_power", icon: null }, - { page: "Guide_to_Atmospherics", icon: null }, + { page: "Guide_to_Atmospherics", text: "atmos", icon: null }, { page: "Guide_to_Telecommunications", icon: null, text: "tcomm" }, ], }, @@ -41,20 +36,20 @@ const sections = [ tabs: [ { page: "Guide_to_Research_and_Development", text: "R&D", icon: null }, { page: "Guide_to_robotics", icon: null }, - { page: "Guide_to_toxins", icon: null }, + { page: "Guide_to_toxins", text: "toxin", icon: null }, { page: "Guide_to_xenobiology", icon: null }, { page: "Guide_to_genetics", icon: null }, { page: "Guide_to_telescience", icon: null }, - { page: "Guide_to_Nanites", icon: null }, + { page: "Guide_to_Nanites", text: "nanite", icon: null }, ], }, { name: "Security", tabs: [ - { page: "Guide_to_security", icon: null }, - { page: "Space_Law", text: "LAW", icon: null }, - { page: "Standard_Operating_Procedure", text: "SOP", icon: null }, - { page: "Guide_to_Trials", icon: null }, + { page: "Guide_to_security", text: "security", icon: null }, + { page: "Space_Law", text: "space law", icon: null }, + { page: "Standard_Operating_Procedure", text: "S.O.P.", icon: null }, + { page: "Guide_to_Trials", text: "trials", icon: null }, ], }, { diff --git a/style/main.scss b/style/main.scss index 9eb1319..2dc4ba9 100644 --- a/style/main.scss +++ b/style/main.scss @@ -175,6 +175,8 @@ $tab-active: lighten($nanotrasen, 10%); padding: 2px 4px; padding-bottom: 0; text-transform: uppercase; + flex: 1; + max-width: 100px; img { height: 80%;