Coder Social home page Coder Social logo

marcodca / hackyourfuture.dk Goto Github PK

View Code? Open in Web Editor NEW

This project forked from zuhairtaha/hackyourfuture.dk

0.0 1.0 0.0 25.06 MB

The official website for HackYourFuture Copenhagen

Home Page: https://hackyourfuture.dk/

JavaScript 84.54% SCSS 15.46%

hackyourfuture.dk's Introduction

HackYourFuture.dk

content

This is a fork from Kevin's repo

To preview on Heroku hosting https://hyf-dk.herokuapp.com/

Why Next.js

nodejs is react server-rendering universal-rendering. It is a framework that most notably allows you to write server-rendered React apps easily โ€“ amongst other cool things. Also one of the most important features is SEO-friendly.

Run project

Set the node_env. This is how you do in git bash: export NODE_ENV=develop cmder set NODE_ENV=develop Now you can run npm run start or run nodemon

Dependencies vs devDependencies

All modules that are used by heroku must be in dependencies! Fx compression-webpack-plugin, node-sass, sass-loader. Are all in dependencies. The issue is this: vercel/next.js#6478 and this: vercel/next.js#198

Staging environment

The develop branch automatically deploys to https://dashboard.heroku.com/apps/test-hackyourfuture-dk This heroku app is registred at staging.hackyourfuture.dk with the NODE_ENVIRONMENT set to develop

project structure refs

The project is depend on Next.js & Express.js, and here is a tutorial about the same structure using both next.js and express.js

Website Fonts

there is two basic fonts: Space Mono, and Work Sans

 @import url('https://fonts.googleapis.com/css?family=Space+Mono|Work+Sans');
 //font-family: 'Space Mono', monospace;
 //font-family: 'Work Sans', sans-serif;

UI components

Many components are coming from Material UI

project structure:

structure

  • server.js is the entry point for this project, which is node.js server based on express.js
  • the backend folder contains express.js routes where we can connect the database later and create our API
  • static folder contains the assets like: images, fonts, icons...
  • pages folder contains the next.js files. Each one of the represent a route or a link at the website. For example: about.js file on the root of this folder represents hackyourfuture.dk/about and so on. We can also make sub-folders contains files to create links like hackyourfuture/folder-name/file-name
  • components folder contains our react components. we are importing these components at pages files.

pages content

most of pages content is comming from components/content/... content is stored in these files as variables. and at pages we are importing them marked module is used to convert the content from markup to html and the component <content> is the wrapper div for them example:

content

Many components are using data coming from json files. You can find these files in the same component folder.

Note: These files are temporary, and the real date will come later from database

JSX styling

the default way to add css for components with next.js is jsx at the components we can add something like:

<style jsx>{`
  body {
    font-size : 16px;
  }
`}
</style>

Navbar

content

components/navbar

This component is a Material-UI component. you can read more about it here.

the content exists at links.json file at the same component folder. Some menus has sub menus which are Material UI Menus component

When is screen is small you will see hamburger icon, which opens left menu, which is Drawer Material UI component

content

Members card

card-memeber

This component is exists under team/card-member and it is responsible for viewing each of:

  • team components/team/index.js
  • core team components/core-team/index.js
  • alumni components/hire/index.js at hire page

Icons

icons

At static/social-icons/font there is an icons font contains some social icons. These icons collected from flaticon.com

Usage example: <i className="flaticon-twitter-logo" />

Hire page

hire

alumni.json file contains temporary list of alumni. At components/hire/index.js we view them with a drop-down menu for filtering them according to there skills. The current options at this list are coming from tags at alumni array.

hackyourfuture.dk's People

Contributors

benna100 avatar zuhairtaha avatar kevinsimper avatar nmoskaleva avatar tahasoft avatar arcevit avatar athraen avatar keerthi1822 avatar dpfernandes avatar afshinromml avatar hackash96 avatar kwenealete avatar mohamedaldahoul avatar daryan-kf avatar jawkha avatar kseniiazar avatar nabbotsio avatar abdualrhman avatar abedsujan avatar laila1222 avatar nayanakamtekar avatar nirmalathapa avatar ismailirahim avatar sanahayat avatar elilovna avatar fawadik avatar marcodca avatar younesmln avatar

Watchers

James Cloos avatar

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.