Giter VIP home page Giter VIP logo

Comments (3)

migueravila avatar migueravila commented on July 17, 2024 6

Hi! @MohamedAliBouzaiene I've read all and It's awesome what you've done there.

I'm thinking on add it in a different way but I'll keep this Issue open in order to mark it solved when It's implemented. I'll also use some of your code so I'll add you in the collaborators inside the code.

from bento.

migueravila avatar migueravila commented on July 17, 2024 3

Hey! @MohamedAliBouzaiene I've been thinking about adding a Search bar to Bento, but I don't know what kind of design it should be.

I've been thinking a Tilde's like search bar (fullscreen) showing it by start typing. But can you share me your code? It looks fantastic and how you design it!

from bento.

MedAliBZ avatar MedAliBZ commented on July 17, 2024

yeah sure @MiguelRAvila!

Just check my fork : https://github.com/MohamedAliBouzaiene/Bento

So let me explain what I did, first of all I started by adding an input tag nested inside a form tag with an action attribute and a GET method .

image

And then I added 2 variables in the SCSS file searchBoxColor (which is 95% transparent) and imgGoogle (which is the icon) as you can see I added 2 icons , one for the dark mode and the other for the light one

image

Then I fixed some SCSS to make it look that way

image

And finally I added some javascript code to make the search bar automatically clear itself after clicking enter and opening the google search engine.

image

from bento.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.