Skip to content

mlbiche/vhmavi-website

Repository files navigation

VHMaVi Website V3

http://vhmavi.edu.np/

Introduction

This project was initially realised on January and Febrary 2019 by Thibaud Malbert, a volunteer from the school. It is designed for the nepalese school Victor Hugo Manjushree Vidyapith, in Chapali - Budhanilkanta municipality - Katmandou.

This README.md gives a basic review about the architecture.

You can also find :

Tree view

bootstrap

This folder contains all the components of Bootstrap framework. This framework provides performant style and animations in order to reach faster a beautiful result. It also provides a responsive grid.

In this folder, you will find :

  • Bootstrap CSS resources in css folder. bootstrap.css is used for development, providing complete code. bootstrap.min.css is used in production environment : code is minified so it is loaded faster.
  • Bootstrap and JQuery JavaScript resources in js folder. Bootstrap uses JQuery so both are needed. Same as for CSS code, the full code for development is in bootstrap.js and jquery.js and the minified code in bootstrap.min.js and jquery.min.js.

components

This folder contains all the components used by one or several pages. This architecture add a modularity layer. A component can easily be moved to another page, can easily be updated, replaced or removed.

  • donation-sponsor : components specific to the page donation-sponsor.php. Its form and the sponsoring option component that is include in the form.
  • index : components specific to the page index.php. The picture carousel, a description and a data presentation.
  • news : components specific to the page news.php. Its form and the past newsletter list.
  • team : components specific to the page team.php. The direction presentation and the team list.
  • vhmavi-accordion : a custom accordion component. It is used in different components.
  • vhmavi-file-input : a custom file input component. It is used in the volunteer application form.
  • vhmavi-footer : the web page footer component. It is included in each page.
  • vhmavi-form : a custom form component. It is used in different component and web pages.
  • vhmavi-full-width-img : a container for image that occupies the full width of the screen. It is used in different web pages.
  • vhmavi-header : the web page header component, containing the school name and logo and the menu. It is included in each page.
  • vhmavi-phone-input : a custom phone input component that provides a basic validation function for phone numbers. It is used in the donation-sponsor-form component.
  • vhmavi-post-code-input : a custom post code input component that provides a basic validation function for post codes. It is used in the donation-sponsor-form component.
  • vhmavi-txt-img-shared-row : a container for rows shared between text and image. The image occupies all the free space, without any margin. It is used in different web pages.
  • volunteer : component specific to the page volunteer.php. It is its form.

css

This folder contains all the CSS resources.

  • styles.css are the common styles, shared by all the pages.
  • Each page has is own specific styles. For example, index.css are the specific styles to the index.php page (home page).
  • There is also a stylesheet vhmavi-icon.css that provides a font containing a set of icons.

extern

This folder contains the different external resources. It is the different newsletters of the school.

icon

This folder contains the related icon files. It contains the 4 font files used by the font defined in css/vhmavi-icon.css.

It also contains the origin icon files in the icon/origin folder. These files are used to generate the icon font thanks to https://icomoon.io/app. They are not needed in production environment.

img

This folder contains all the media used by the website.

In this folder, you will find a folder for each page containing its own media.

includes

This folder contains common HTML content for the page definition.

  • head.php : This file contains the common content for <head> tag in all pages. It contains the common stylesheets (Bootstrap, header, footer and styles.css).
  • script-loader.php : This file loads the common scripts (Bootstrap and JQuery).

These two files need to be changed for production environment in order to include and load the minified CSS and JS files.

js

This folder contains the JavaScript files related to the web pages.

In this folder, you will find a JavaScript file for each page. For example, contact.js contains scripts specific to contact.php page (home page).

You will also find a JavaScript file that updates the figures related to the school in all pages.

services

This folder contains the different server-side services that are called on asynchronous form submissions.

  • children_sponsor.php is used for the submission of the donation and sponsoring form defined in the component donation-sponsor-form. It sends to the administrator an email containing the different information taken by the user. It sends a confirmation email to the user. It subscribes the user to the newsletter if needed. It uses the module subscribe_newsletter_mod.php.
  • send_mail.php is used for the submission of the contact form defined in the page contact.php. It sends to the administrator containing an email the different information taken by the user. It sends a copy of this email to the user if needed.
  • subscribe_newsletter_mod.php is a module that definie a function for all the newsletter subscription process.
  • subscribe_newsletter.php is used for the newsletter sbscription from the form defined in the component news-newsletter-form.
  • volunteer_application.php is used for the submission of the volunteer application form defined in the component volunteer-form. It sends to the administrator an email containing the different information taken by the user. It sends a confirmation email to the user.
  • read-config.php is a module that define a function for reading an entry in the config.json file.
  • recaptcha_validation is used to process a server-side Google reCAPTCHA validation.

Root

In the root folder, you will find all the PHP/HTML files for each pages. Those files contains HTML code, combined with some PHP for server-side preprocessing.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published