package com.groverchou.www;

import system.site.SiteList;
import system.redirect.Redirection;

/**
 * The program Homepage used for welcome visitors and redirect them to other pages.
 * 
 * @author GroverChouT
 */

public class Homepage {
    public static void main(String[] args) {
        SiteList mSiteList = new SiteList();
        mSiteList.add(new Redirection("about", "Grover's About Me", "https://blog.groverchou.com/about"));
        mSiteList.add(new Redirection("blog", "Grover's Blog", "https://blog.groverchou.com/"));
        mSiteList.add(new Redirection("twitter", "Grover's Twitter Userpage", "https://twitter.com/GroverChouT"));
        mSiteList.add(new Redirection("github", "Grover's GitHub Userpage", "https://github.com/GroverChouT"));
        mSiteList.add(new Redirection("catio", "CatIO Network", "https://www.catio.network/"));

        try {
            mSiteList.get(args[0]).go();
        } catch (SiteNotFoundException e) {
            e.print();
        }
    }
}