Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add travel_website #253

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 42 additions & 0 deletions firstspot/.github/workflows/codeql.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: 'CodeQL'

on:
push:
branches: ['main']
pull_request:
branches: ['main']
schedule:
- cron: '19 19 * * 0'

jobs:
analyze:
name: Analyze
runs-on: ${{ (matrix.language == 'swift' && 'macos-latest') || 'ubuntu-latest' }}
timeout-minutes: ${{ (matrix.language == 'swift' && 120) || 360 }}
permissions:
actions: read
contents: read
security-events: write

strategy:
fail-fast: false
matrix:
language: ['javascript-typescript']

steps:
- name: Checkout repository
uses: actions/checkout@v4

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}

- name: Autobuild
uses: github/codeql-action/autobuild@v3

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
with:
category: '/language:${{matrix.language}}'
4 changes: 4 additions & 0 deletions firstspot/.vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"liveServer.settings.port": 5503,
"git.ignoreLimitWarning": true
}
101 changes: 101 additions & 0 deletions firstspot/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,101 @@
# FirstSpot - A Haven for Travelers

### PROJECT DESCRIPTION AND OUTLINE

## <b> Introduction <br></b>
First spot is designed for tourists so they can now explore new destinations where a guide will always be there to help you explore new paths where you can create your paths as well. Planning a multi-city trip helps you relax and stirs in an extra element of excitement since you get to explore new destinations on the go.

![FirstSpot Image](https://user-images.githubusercontent.com/69755312/194810054-c785c9b6-4dea-46b8-86e6-c19b090de964.png)

### About Introduction and Techniques

- **Search with Filters:** Utilize search filters to refine results based on user ratings, alphabetical order, and budget preferences.

- **Login/Sign up:** Clicking the 'Sign Up' button invokes a form with two registration options. Toggle between Tourist and Tourist Guide sign-up for respective user profiles.

- **Feeling Lucky:** Engage the "Feeling Lucky" feature for a random location suggestion, sparking spontaneous and adventurous journeys.

- **Explore:** Our unique 'Explore' feature allows visitors to create their own routes. Seek suggestions from verified guides, ensuring a safe and joyful journey.

- **Predefined Routes:** Save time with predefined routes created by our guides. No need to spend hours planning your own route.

- **Help from Tourist Guides:** Choose your dedicated tourist guide for personalized route recommendations. They are available in chat to address queries about paths or destinations.

### Objective of the Work

The primary aim of our website is to make it easy for travelers to explore, manage plans, and connect with popular tourist guides, ensuring a trip that is easy, convenient, and safe.
<h3 align="left">Languages and Tools:</h3>
<p align="left"> <a href="https://www.w3schools.com/css/" target="_blank" rel="noreferrer"> <img src="https://raw.githubusercontent.com/devicons/devicon/master/icons/css3/css3-original-wordmark.svg" alt="css3" width="40" height="40"/> </a> <a href="https://www.w3.org/html/" target="_blank" rel="noreferrer"> <img src="https://raw.githubusercontent.com/devicons/devicon/master/icons/html5/html5-original-wordmark.svg" alt="html5" width="40" height="40"/> </a> <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript" target="_blank" rel="noreferrer"> <img src="https://raw.githubusercontent.com/devicons/devicon/master/icons/javascript/javascript-original.svg" alt="javascript" width="40" height="40"/> </a> <a href="https://www.php.net" target="_blank" rel="noreferrer"> <img src="https://raw.githubusercontent.com/devicons/devicon/master/icons/php/php-original.svg" alt="php" width="40" height="40"/> </a> </p>

# ⭐ How to get started with open source?
<img src="https://github.com/Vi1234sh12/Face-X/blob/master/.github/Assests/isometric.png" height="290px" align="right"/>


## Getting Started with Open Source

### 🚀 How to Get Started

If you're new to open source, these resources will guide you through the basics of Git and GitHub.

- [Watch this introductory video for a quick start](https://youtu.be/SYtPC9tHYyQ)
- [Forking a Repository](https://help.github.com/en/github/getting-started-with-github/fork-a-repo)
- [Cloning a Repository](https://help.github.com/en/desktop/contributing-to-projects/creating-a-pull-request)
- [Creating a Pull Request](https://opensource.com/article/19/7/create-pull-request-github)
- [Getting Started with Git and GitHub](https://towardsdatascience.com/getting-started-with-git-and-github-6fcd0f2d4ac6)


### How to start

1. Start by making a Fork of the [**firstspot**](https://github.com/jaysomani/firstspot/fork) repository. Click on the ![Fork symbol](https://i.imgur.com/G4z1kEe.png) at the top right corner.

2. Clone your new fork of the repository in the terminal/CLI on your computer:

```bash
git clone https://github.com/<your-github-username>/firstspot
```

3. Navigate to the newly created `firstspot` project directory:

```bash
cd firstspot
```

4. Set upstream command:

```bash
git remote add upstream https://github.com/jaysomani/firstspot
```

5. Create a new branch:

```bash
git checkout -b YourBranchName
```

6. Sync your fork or your local repository with the origin repository:

- In your forked repository, click on "Fetch upstream"
- Click "Fetch and merge"

7. Make your changes to the source code.

8. Stage your changes and commit:

⚠️ **Make sure** not to run the commands `git add .` or `git add *`. Instead, stage your changes for each file/folder

```bash
git add public
```

```bash
git commit -m "<your_commit_message>"
```

9. Push your local commits to the remote repository:

```bash
git push origin YourBranchName
```

10. Create a [Pull Request](https://help.github.com/en/github/collaborating-with-issues-and-pull-requests/creating-a-pull-request)!

56 changes: 56 additions & 0 deletions firstspot/about.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
<!DOCTYPE html>
<html lang="en">

<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>FirstSpot</title>
<style>
body {
font-family: 'Arial', sans-serif;
margin: 0;
padding: 0;
background: url(pexels-asad-photo-maldives-1268855.jpg) center/cover no-repeat fixed;
display: flex;
flex-direction: column;
align-items: center;
height: 100vh;
}

header {
background-color: #40d7e1;
color: #fff;
padding: 20px;
text-align: center;
width: 100%;
box-sizing: border-box;
margin-bottom: 20px;
}

.card {
background: rgba(128, 209, 234, 0.9);
padding: 20px;
border-radius: 10px;
text-align: center;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
max-width: 600px;
width: 100%;
}
</style>
</head>

<body>

<header>
<h1 style="color:rgb(24, 29, 132); font-family:'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif; font-weight: bold;">FIRSTSPOT YOUR PATHWAY <span style="color: #0c1149; font-family:'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif; font-weight: bold;">TO EXPLORE NEW HORIZONS</span></h1>
</header>

<div class="card">
<p style="color: #0c1149; font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif; font-weight: bold; font-size: 18px;">
Welcome to FirstSpot, your premier travel companion offering a distinctive blend of personalized services. Our unique selling proposition encompasses personalized matching for tailored holidays, an exclusive selection of handpicked tours, and unwavering 24/7 expert support. At FirstSpot, we transcend traditional travel, transforming each journey into a seamless fusion of discovery and joy. Our commitment is to be your comprehensive travel planning hub, making travel dreams a reality. Join us in exploring new horizons and creating unforgettable memories. FirstSpot – where every adventure is curated, every experience is unique, and your travel aspirations find their perfect destination.
</p>
</div>

</body>

</html>
97 changes: 97 additions & 0 deletions firstspot/bat/ReCaptcha/ReCaptcha.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,97 @@
<?php
/**
* This is a PHP library that handles calling reCAPTCHA.
*
* @copyright Copyright (c) 2015, Google Inc.
* @link http://www.google.com/recaptcha
*
* 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.
*/

namespace ReCaptcha;

/**
* reCAPTCHA client.
*/
class ReCaptcha
{
/**
* Version of this client library.
* @const string
*/
const VERSION = 'php_1.1.2';

/**
* Shared secret for the site.
* @var type string
*/
private $secret;

/**
* Method used to communicate with service. Defaults to POST request.
* @var RequestMethod
*/
private $requestMethod;

/**
* Create a configured instance to use the reCAPTCHA service.
*
* @param string $secret shared secret between site and reCAPTCHA server.
* @param RequestMethod $requestMethod method used to send the request. Defaults to POST.
*/
public function __construct($secret, RequestMethod $requestMethod = null)
{
if (empty($secret)) {
throw new \RuntimeException('No secret provided');
}

if (!is_string($secret)) {
throw new \RuntimeException('The provided secret must be a string');
}

$this->secret = $secret;

if (!is_null($requestMethod)) {
$this->requestMethod = $requestMethod;
} else {
$this->requestMethod = new RequestMethod\Post();
}
}

/**
* Calls the reCAPTCHA siteverify API to verify whether the user passes
* CAPTCHA test.
*
* @param string $response The value of 'g-recaptcha-response' in the submitted form.
* @param string $remoteIp The end user's IP address.
* @return Response Response from the service.
*/
public function verify($response, $remoteIp = null)
{
// Discard empty solution submissions
if (empty($response)) {
$recaptchaResponse = new Response(false, array('missing-input-response'));
return $recaptchaResponse;
}

$params = new RequestParameters($this->secret, $response, $remoteIp, self::VERSION);
$rawResponse = $this->requestMethod->submit($params);
return Response::fromJson($rawResponse);
}
}
42 changes: 42 additions & 0 deletions firstspot/bat/ReCaptcha/RequestMethod.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
<?php
/**
* This is a PHP library that handles calling reCAPTCHA.
*
* @copyright Copyright (c) 2015, Google Inc.
* @link http://www.google.com/recaptcha
*
* 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.
*/

namespace ReCaptcha;

/**
* Method used to send the request to the service.
*/
interface RequestMethod
{

/**
* Submit the request with the specified parameters.
*
* @param RequestParameters $params Request parameters
* @return string Body of the reCAPTCHA response
*/
public function submit(RequestParameters $params);
}
Loading
Loading