This is a simple web-based application where users can receive a random fortune based on an image they click. The application also personalizes the experience based on the user's location, showing a customized greeting depending on the country they are visiting from.
- Fortune Teller: Users can click on an image to receive a random fortune.
- Country-based Greeting: The app identifies the user's country and displays a personalized greeting.
- Delayed Paragraph Display: Some elements (like paragraphs) are delayed and appear 3 seconds after the page loads, enhancing the user experience.
- PNG Image Button: The app uses a transparent PNG image as a button with hover effects like radiating shadows.
- Node.js and Express: For server-side functionality.
- Handlebars.js: As the templating engine for rendering dynamic views.
- CSS: For styling, including custom hover effects and transition animations.
- JavaScript (Client-Side): Used for interacting with the DOM, local storage, and delaying content appearance.
git clone https://github.com/yourusername/fortune-teller.git
cd fortune-tellerTo install the required Node.js dependencies, run:
npm installEnsure that your .gitignore file contains the following line to prevent the node_modules/ folder from being tracked:
node_modules/To start the server, run:
node index.jsThe application will start on http://localhost:3000.
- Visit the home page to see a customized greeting based on your location.
- Click the fortune-teller image to receive a random fortune.
- Hover over the image to see the cursor and shadow effects.
Some content, such as specific paragraphs, will appear 2 seconds after the page loads.
This project is open source and available under the MIT License.