The Brave browser logo. Stephen Shankland/CNET Startup Brave has begun showing ads in its web browser with privacy-focused new technology. Later this year, other software makers could start doing. Brave Software's logo. Brave Software Brave, a new web browser challenging bigger rivals like Google Chrome and Mozilla Firefox, wants to take privacy on the internet to the next level.

  • It’s probably not going to be a problem. Truth be told, it’s not an inspiring concept. They’re fine designs, but they can be quite generic. Below are some lion head logos I designed and colored them orange.
  • I have been using BRAVE browser since last 4 months. I would admit that I was also using IE, Chrome and Mozilla parallelly just to evaluate BRAVE browser, to see which browser is smooth and flawless. Initially Brave had some issues but with the newer versions, almost all issues got fixed.

Nowadays, CSS is considered the soul of web development. From styling a text to creating complex shapes with gradient, CSS can do almost anything. In this tutorial, we'll discover a creative way to replicate the Brave Browser's logo using plain CSS.

Take a look at the header of this blog post to see what we are going to create in CSS :)

Step 1. The Structure

First, take a cup of coffee and get started.

To create the Brave logo, we need a container and a wrapper. And they are also few<div> elements.
The container element would hold all the nested elements and the wrapper would maintain the aspect ratio of the graphic. Let's assume the following code snippet.

Here, the .logo class is the container element and the .wrapper class is the wrapper, of course.
The wrapper contains all the curved shapes that we need to create the inner figure.

In the above code snippet, we declared the logo dimensions and colors we need for the work.
We took 768px for the with as initial dimensions to match the source graphic.

Step 2. Creating the basic shape

Although the source graphic is geometric, it's possible to create a rough shape to fill most of the space .clip-path can do this very efficiently, also clip-path: polygon() has a good browser support at present. You can find more details about this property at CanIUse.

To set the polygon coordinates, we can use a very cool tool called Clippy. Feel free to play with Clippy here.

The visual tool gives us:

...and we got:

Don't worry, we'll fine-tune the coordinates later.

Step 3. Rounded corners and color shades

We can use gradients as layers! So to create rounded corners, we can do something like this:

And we can use same approach goes for the color shades:

...and also we make it full-width and absolute:

This lengthy CSS code saved 8 elements, so it's a good investment.

Step 4. The inner figure

Though we've added all details in the background, let's work with the inner figure now.

As mentioned in Step-2, we'll create a rough fill for the inner figure as well.

Step 5. Smooth Curves

The clip-path edges are sharp and we can't make them smooth using only CSS. So we've to fake the curves with certain <div> elements and their pseudo-elements. 14 elements can be a good figure, as we get 28 pseudo-elements to work with. But before that, we need to suppress the acute clipped corners that might interfere with the rounded curves. There are two concepts to do this.

  1. Pop-edges
  2. Pour-edges

Stacking background colored objects over the sharp-corner object (foreground object) is called Pop-edges and over-lapping the sharp-corner (foreground object) using an extensive foreground colored object is called Pour-edges.

In the case of pop-edges, we can add a background-colored rectangle (or circle/oval) to the corner side (foreground). So the keen curves would look cracked,

Opposed to pop-edges, we can add a foreground-colored rectangle (or circle/oval) to the corner side (which is foreground as well). So the edges would look poured. Now we can apply a circle (or an oval) over the poured edges with a specific border-radius and outlined thick borders. Thus it will look way smoother,

In both cases, the rectangle, oval, outlined rectangle, etc. are pseudo-elements that we're talking about, and the poped/poured edges are stacked CSS gradients. Handling many stacked gradients can be tough as we've to take care of so many numbers at the same time. So we can divide the stacks into pieces and place them in the <div> elements as comfortable. Although all div are already stacked.

So, our code would be:

Yes, it's a bit longer but based on the above concept.

Step 6. Scalability

Our logo is almost ready.
Now only one thing left, that's scalability. All coordinates were in pixels, so they're quite not responsive. We can still resize it ingeniously, like this:

Here things got a bit interesting. We're setting the dimensions comparing its current dimensions with 768! (How crazy is that? :D)

We're doing this to perform a uniform scale without even breaking the logo. Hopefully the clip-path coordinates were responsive.

Note: The --dimensions variable must be an integer between 1-768 or higher, to avoid complex calc() algorithms that could flatter on most mobile browsers.

Step 7. Major imperfections

While we've tried to make it as accurate as possible, there is still some problem we might encounter.

  • First of all, CSS is rendered in different ways in different browsers, so the properties.
  • CSS gradients might appear sharp or antialiased on Chromium browsers, we can get rid of them using irrational gradients, just what we did in Step-3 and further ones.
  • The curves/blobs might get misplaced in Firefox as the design was made in Chrome, so we've to account for both of them individually and target one of them. For example:

Step 8. The live view

Disclaimer

The Brave logo is copyrighted by Brave and is used with Brave’s permission.

Summary

Et voilà, we've created the Brave browser's logo with CSS.
I hope you've enjoyed this tutorial and you've learnt a bit about CSS. Happy Coding.

I would like to send a very special thank to @ShadowShahriar (he knows why).


    A lire également

© Provided by Popular Science With a VPN, it'll be hard for people and companies to figure out where you are. And not just because you're using a white phone, wearing a white shirt, and standing in front of a white wall.

Put a virtual private network (VPN) between you and the internet, and your connection to the web becomes much more difficult to track and locate—whether the potential eavesdropper is a government agency or someone sitting behind you at a coffee shop.

It doesn't give you total anonymity, but it sends everything you do online through an encrypted tunnel that's exceptionally hard for anyone else to break into. That means a lot for your online security and privacy.

Dozens of top-quality VPN providers are ready and willing to set this service up for you, but if you want to cut out the middle man, there’s another option: Pick a browser with a VPN attached. It’s quick and convenient, and there are a growing number to choose from.

VPN basics

Download Brave Browser For Windows

Windows

At first glance, VPNs can seem technical and complex, but they’re actually pretty straightforward. When you type an address into the search bar or click a link, you don’t go directly to the site. Instead, you connect to servers provided by your VPN, and then to the page you wanted to visit. Everything along the way—your entire digital path—is hidden from view.

© NordWood Themes/Unsplash With a VPN, it'll be hard for people and companies to figure out where you are. And not just because you're using a white phone, wearing a white shirt, and standing in front of a white wall.

This means your internet service provider (ISP) won’t know what you’re looking at, which can be useful in countries with heavily censored access to the web. It also means you can pretend to be from a different location, which might give you access to streaming content you couldn’t otherwise get at.

Before you rush in and sign up for a VPN, though, take note: VPNs don’t make you anonymous online, and if you sign into Facebook, Amazon, or anywhere else, those sites will still be able to track your activity. So will your VPN provider, so look for one that explicitly states that it doesn’t keep any logs of browsing activity.

Adding a VPN can also have a negative impact on your browsing speed, as you're taking a roundabout route to the websites you want to get to. This isn't usually a major issue, however, and many people consider the privacy and security trade-off worth it.

The benefit of having a VPN right inside your browser is that there are no separate app settings to configure and no separate user account to sign up for. Because of the way VPNs work at the system level, even the ones that are associated with specific browsers are technically separate programs, but you can easily switch between them without having to log in multiple times. It's almost the same as having a built-in browser feature.

We’re going to look at two browsers already well-known for user privacy and security: Firefox and Brave. While we don’t have space for a full browser vs. browser comparison, you’ll find them both speedy and simple to use, with plenty of options for limiting how you’re tracked on the web.

Switch to Firefox

© Provided by Popular Science You can activate and disable Mozilla VPN with a single switch.

Firefox developer Mozilla now has its own VPN called Mozilla VPN. It’ll set you back $5 a month, and while there’s no free trial, there is a 30-day, money-back guarantee if you decide it’s not for you. Having just launched, the VPN is only available for Windows on the desktop, but a macOS version is coming soon, and you can also enable the Mozilla VPN on Android and iOS.

© David Nield You can activate and disable Mozilla VPN with a single switch.

You’ll need a Firefox account to sign up for the Mozilla VPN, after which you can download and log into the apps. On Android, for example, open and sign into the app, tap the toggle switch under VPN to enable it and... that’s all there is to it. You’ve now got a secure and encrypted connection to the web (Android lets you know by sticking a key logo in the status bar).

Underneath the toggle switch is a drop-down menu that lets you pick which of the Mozilla VPN servers you connect to. If you’re experiencing slow speeds, or you want your phone to appear as if it’s located in a particular country, make a different selection than the one that’s automatically given to you.

By default, this VPN protection applies to every app on your Android device, including Firefox. If you want only certain apps to use a VPN, you can make your choices under Settings and App permissions. You can install Mozilla VPN on up to five devices, and you can check on your registered devices via Settings and My devices.

Getting the Firefox browser on Android, iOS, Windows or macOS is straightforward too, and the same account you used to register for Mozilla VPN will keep your data synced between devices. To import data like bookmarks and browsing history from another browser, use the desktop Firefox app—it’s under File and Import from Another Browser on macOS, and under Library > Bookmarks > Show All Bookmarks > Import and Backup > Import Data from Another Browser on Windows.

© David Nield You can switch to the Brave VPN right inside the browser.

Mozilla VPN makes use of the WireGuard VPN protocol, which is one of the newer and faster protocols (ways of configuring a VPN, essentially). It’s also built on top of infrastructure provided by the Mullvad VPN service that’s based in Sweden.

Switch to Brave

© Provided by Popular Science You can switch to the Brave VPN right inside the browser.

Brave is another mobile and desktop browser that just added integrated VPN capabilities, built in partnership with the Guardian firewall and VPN apps. For now, the functionality is only available in the Brave app for iOS, but Brave says the same protection is coming to other platforms later this year. The cost is double what you’ll pay for Mozilla VPN though: $10 a month (after a 7-day free trial).

You’ll have to activate the Brave VPN through the iPhone or iPad app: Tap the three dots in the lower right-hand corner of the browser window, then hit Brave VPN (this option will also let you toggle the VPN on and off once you’ve signed up). It’ll ask if you want to start a free trial, and if you don’t cancel before a week is up, your Apple ID billing details will be used to continue your subscription.

Brave asks to install a VPN profile, which is standard—you can see your VPN profiles on iOS by opening Settings and choosing General and VPN. (If you have multiple VPNs installed, you can switch between them here.) On iOS, if a VPN is active, a VPN logo shows next to the carrier name in the top left corner (swipe down from the top right corner of the screen if you can’t see it).

You're then good to go—you can carry on browsing, safe in the knowledge that you're now protected by the Brave and Guardian VPN. As with any VPN you install on your phone, every app makes use of it, not just the Brave browser.

Brave Browser Download Mac

To configure the browser further, tap on the three dots in the lower right-hand corner of the browser interface, then choose Settings and Brave Firewall + VPN. You won’t get a choice of locations for your VPN server—Brave will simply fix a secure, encrypted connection to whichever server is closest.

Brave Lion Browser

You can install the Brave VPN on up to five devices, the same as the Mozilla VPN, though it’s based on the more traditional IKEv2 protocol rather than WireGuard—a technical difference that shouldn’t really matter to your user experience. Whichever option you go with (more browsers will hopefully follow in the future), you can be sure that all the browsing you do inside the app is VPN-protected.