Back to Projects

Drâa Tafilalet Travel

A travel agency website for Morocco's Drâa-Tafilalet region showcasing tours, hotels, restaurants, and transportation with an interactive Google Maps integration.

2022

Duration

May 2022 – Jun 2022

Contributors

3 contributors

Technologies

7+ tech

Drâa Tafilalet Travel

Drâa Tafilalet Travel is a travel agency website showcasing Morocco's Drâa-Tafilalet region — its tours, hotels, restaurants and transport options — with an interactive Google Map pinning the places worth visiting.

Built as a university web development project.

The region#

Drâa-Tafilalet, in south-eastern Morocco, is the land of the Merzouga dunes, the Todra gorges, the kasbahs of Ouarzazate and the palm groves of the Drâa valley. It is one of the country's most striking destinations — and its attractions are spread across hundreds of kilometres, which makes a map the most useful thing a travel site can offer.

The site was designed around that: a visitor should be able to see where things are, what there is to do and where to stay, and get in touch with the agency, without leaving the page they're on.

What it does#

  • Interactive map — Google Maps with pinned tour locations across the region
  • Tours and hotels — packages with pricing and booking options
  • Restaurants and activities — recommendations for travellers
  • Transport — services to plan getting around the region
  • Contact form — inquiries and booking requests sent with AJAX, without leaving the page
  • Responsive design — built for both desktop and mobile

How it works#

The map#

The Google Maps JavaScript API is initialized when the page loads, and the markers are created from a local data file describing each location — its name, coordinates and a short description. Adding a destination means adding an entry to the data, not writing more map code.

js
function initMap() {
  const map = new google.maps.Map(document.getElementById('map'), {
    center: { lat: 31.0, lng: -5.0 },
    zoom: 7,
  });

  locations.forEach(({ name, lat, lng, description }) => {
    const marker = new google.maps.Marker({ position: { lat, lng }, map, title: name });
    const info = new google.maps.InfoWindow({ content: `<h3>${name}</h3><p>${description}</p>` });
    marker.addListener('click', () => info.open(map, marker));
  });
}

Simplified — the real data covers the tour stops across the region.

The contact form#

Inquiries are submitted with AJAX through jQuery: the form is serialized and sent in the background, and the page shows a confirmation or an error in place. Visitors don't lose their scroll position or the map they were looking at.

Layout#

Bootstrap's grid handles the layout, so the same pages work on a phone and a desktop. The whole visual design is built with HTML, CSS and Bootstrap components — no front-end framework.

Working as a team#

With three people building pages in parallel, the main risk was a site that looked like three sites. Shared styles, common Bootstrap components and agreed page templates kept every page consistent, whoever built it.

Stack#

AreaTechnologies
Markup & styleHTML, CSS, Bootstrap
InteractivityJavaScript, jQuery, AJAX
MapsGoogle Maps JavaScript API

Results#

  • A fully navigable multi-page website showcasing the Drâa-Tafilalet region
  • An interactive map that shows tour destinations at a glance
  • A responsive Bootstrap layout that adapts to every screen size

Team#

Built with Ayoub ZITANE and Zakia RHIOUI.

Share:Share on Twitter / XShare on LinkedInShare on Facebook

Draa-Tafilalet-Travel

Mon Projet de Fin d'Etude (PFE) de la Licence Sciences et Techniques Génie Logiciel (LST-GL) à la Faculté des Sciences et Techniques d'Errachidia

Le présent projet est un site web dynamique de tourisme pour une agence de voyage « Drâa Tafilalet Travel » pour promouvoir ses offres et permettre ses clients de trouver facilement leurs endroits touristiques, réserver dans un hôtel et pour proposer des circuits et leur descriptif au sein de la région Drâa Tafilalet et de les réserver en ligne.

Ce projet a fait l’objet d’une expérience intéressante qui permet d’améliorer nos connaissances et nos compétences dans le domaine de la programmation. Nous avons appris à mieux manipuler les langages PHP, HTML, SQL et JAVASCRIPT.

Equipe du projet

L’équipe du projet se compose de quatre personnes :

  • Pr. FARHAOUI Youssef : l’encadrant du groupe, Professeur à la Faculté des Sciences et Techniques Errachidia ;
  • ZAHIR Ismail : membre de l’équipe, étudiant à la Faculté des Sciences et Techniques Errachidia ;
  • RHIOUI Zakia : membre de l’équipe, étudiante à la Faculté des Sciences et Techniques Errachidia ;
  • ZITANE Ayoub : membre de l’équipe, étudiant à la Faculté des Sciences et Techniques Errachidia ;
MIT LicenseView on GitHub
MIT License

Copyright (c) 2023 Ismail ZAHIR

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

More Projects

Dr Maroc
2024Current
A healthcare SaaS live at drmaroc.com, grown from a single app into a platform: four Angular portals in one Nx monorepo, a modular Spring Boot backend, self-hosted Keycloak, shared contracts, and a delivery pipeline where GitHub is the source of truth.
AngularNxNext.js+8
ngx-auth-client
2026Current
A published npm package that exposes Angular authentication as signals instead of getters, ships Keycloak and HTTP adapters behind a provider-agnostic port, and keeps tokens out of localStorage entirely.
AngularTypeScriptKeycloak+7