Skip to content

christcame/gemini-pro-button

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 

Repository files navigation

Cat, Surprised

Gemini-Pro Powered Crazy Button Generator


Description

This repository contains a Google Colab notebook that utilizes the Gemini-Pro AI model to generate the HTML, CSS, and JavaScript onclick() function for a button. The JavaScript functionality occasionally produces unexpected but intriguing results. The notebook showcases several examples of this phenomenon.

Prerequisites

  • Gemini API Key
  • A Google account with access to Google Colab (Google Colab)
  • Basic understanding of Python 3
  • Familiarity with HTML, CSS, and JavaScript concepts

Installation

  1. Clone the Repository: Clone this repository to your local machine using the following command:
git clone https://github.com/christcame/gemini-pro-button.git
  1. Open in Google Colab: Upload the gemini_pro_create_crazy_button.ipynb notebook to your Google Colab environment.

Instructions

  1. Set up Gemini-Pro API: Refer to Gemini-Pro's documentation for instructions on setting up your API key and installing any necessary libraries within the Colab notebook.

  2. Generated Output: In the notebook, the Gemini-Pro model creates:

    • Button Text: AI-generated one-word text.
    • Click Action: AI-generated JavaScript function called upon click.
    • CSS: AI-generated CSS for the button.
  3. Run the Code: Execute the code cells in the notebook. Gemini-Pro will process your input and generate the corresponding HTML, CSS, and JavaScript code.

  4. Copy and Paste: Copy the generated code and paste it into your web development project.

Example Usage

Imagine you desire a button labeled "FART" that triggers an alert saying "Surprise!" and temporarily rotates your notebook 30 degrees when clicked. With Gemini AI, your unconventional button dreams can become a reality!

Contributing

We welcome contributions to enhance this generator! Feel free to submit pull requests or open issues.

License

This project is licensed under the MIT License - see the LICENSE.md file for details.


Join me on Telegram! @ROCKMURPHY

Releases

No releases published

Packages

No packages published