Giter Site home page Giter Site logo

ns-r / ns-links Goto Github PK

View Code? Open in Web Editor NEW
3.0 3.0 0.0 1.19 MB

(Head over to https://github.com/ninest/nsr) Links and resources to help people serving National Service in Singapore

Home Page: https://github.com/ninest/nsr

License: MIT License

CSS 20.46% Vue 58.61% JavaScript 20.74% HTML 0.19%
national-service singapore army military

ns-links's Introduction

NSR has been moved to ninest/nsr

This repository will be archived soon

Made with Nuxt PRs Welcome GitHub HitCount

Links and resources to help people serving National Service in Singapore.

๐ŸŽ† Gallery (WIP)

desktop view desktop view desktop view

Built with

  • Nuxt
  • Vue
  • Pug + SCSS โค๏ธ

All the content can be found in pages/index.md. The links are in the markdown-link format, along with extra styling to make the unordered list look like a button group.

๐Ÿ› ๏ธ Development features

Features

  • Create siteConfig.yml for site metadata
  • Use a single YAML plugin
  • Set up pre-rendering correctly

โœ๏ธ Contribution

๐Ÿ”— Adding a link

All links will show up here. To add a link, you can either message me on reddit (u/themindstorm), or create an issue/pull request here if you have the technical knowledge.

All guides go in content/index.md, in the markdown links format. For example, if I want to add the website "https://www.example.com" under the category "General", sub-category "Free time", I will do it like so:

## General
### Free time
- [Making use of free time (1)](https://www.reddit.com/r/singapore/comments/9lwo39/how_much_free_time_are_u_given_during_ns_and_how/)
- [Making use of free time (2)](https://www.reddit.com/r/singapore/comments/ds06fe/what_can_i_do_to_make_best_use_of_free_time_in/)
- [LINK DESCRIPTION](https://www.example.com)

Change LINK DESCRIPTION to an appropriate description.

๐Ÿ“„ Adding a guide

All guides show up All links will show up here. If you do not know you to use Git/GitHub and markdown, you can message me on Reddit here. Any information in the guide must be non-confidential.

First, look for your category in siteConfig.yml. Each category has a name and slug. If the category is not there, add it like so:

# pages list
list:
  ...
  # all previous categories here
  ...
  - name: Technology
    slug: technology
    pages:

The slug should be the slugified name. See these examples:

  • "BMT" -> "bmt"
  • "Vocation" -> "vocation"
  • "Intersting discussions" -> "intersting-discussions"

Leave pages empty for now, we will fill it later.

Create a folder in the content directory. The folder's name should be the category's slug. In this case, it should be technology (lower case).

To be completed ...

ns-links's People

Contributors

ninest avatar themindstorm avatar xenonshawn avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

ns-links's Issues

Only use one yaml loader plugin

Currenlty using js-yaml-loader as it has a webpack loader. However, it cannot be used inside nuxt.config.js because it is a loader and requires the webpack initialization.

YAML can help with it, but it doesn't have a loader yet

Implement side drawer scroll snapping

HTML

<div class='container'>
  <section class='child'></section>
  <section class='child'></section>
  <section class='child'></section>
  ...
</div>

CSS

.container {
  scroll-snap-type: x mandatory;
}

.child {
  scroll-snap-align: start;
}

This has been implemented, but is likely not working because the side drawer (aside) is not 100% wide.

Automate posts injection

The Saber inject posts cannot be used to inject posts into component files. Currently doing this manually

Find a way to reuse styling

Layout of the index page and topic pages (for commands, ranks, ...) are very similar. Merge the styles into one single 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.