Monday, June 23

Author: phpInfo

CSS Tricks

Preventing a Grid Blowout

Say you have a very simple CSS grid layout with one column fixed at 300px and another taking up the rest of the space at 1fr. .grid { display: grid; grid-template-columns: 1fr 300px; } That's somewhat robust. That 1fr column will take up any remaining space left behind by the fixed 300px column. It's true that the auto value would do the same, but auto isn't quite as robust since it's size is based on the content inside. So, if you had too little content, then your column might not fill the entire space you want it to. But while 1fr is slightly more robust, it won't quite protect you from content that is too big!   Here's the grid behaving just fine with some text content: Now, watch that right column get blown off the page when we drop a gigantic image in that colum...
Best Packages and Themes for Hyper: The Terminal Built on Web Technologies
Web Tricks

Best Packages and Themes for Hyper: The Terminal Built on Web Technologies

Hyper is a terminal built on web technologies, based on JavaScript, HTML and CSS providing a beautiful and extensible experience for command-line interface users. Hyper achieves a lot of its speed and functionality thanks to the power of hterm underneath, the terminal emulator of the Chromium project. If you're just getting started with Hyper terminal I'd suggest you definitely head to Hyper website, they have an extensive installation guide and usage documentation Today we'll be looking at the best packages and themes to make our Hyper terminal much cooler. Prerequisites Note Important words are highlighted. Bold words emphasis a point. Previous / Next code appears like this . . . . Material Theme for Hyper are link to package/theme npm repository. This project requires Node.js v6.11.0...
CSS Tricks

The Shapes of CSS

CSS is capable of making all sorts of shapes. Squares and rectangles are easy, as they are the natural shapes of the web. Add a width and height and you have the exact size rectangle you need. Add border-radius and you can round that shape, and enough of it you can turn those rectangles into circles and ovals. We also get the ::before and ::after psuedo elements in CSS, which give us the potential of two more shapes we can add to the original element. By getting clever with positioning, transforming, and many other tricks, we can make lots of shapes in CSS with only a single HTML element.   Square #square { width: 100px; height: 100px; background: red; } Rectangle #rectangle { width: 200px; height: 100px; background: red; } Circle #circle { wid...
Web Tricks

The New Framer X: Initial Impressions

The Framer team recently released a new prototyping tool, Framer X, and I was lucky enough to be able to test it during the beta phase. In this article, I’d like to share my thoughts about this new tool and its features. I’ll make a comparison with the “legacy” Framer app as well as other tools, and I’ll discuss its brand new features such as Stacks and Scroll, and its new Code and Design components. This article is intended for UI and UX designers who would like to learn more about Framer X’s prototyping abilities. Since it is (in many ways) a brand new product, you don’t need to be familiar with the older Framer application to read along. However, a little bit of familiarity with HTML, CSS, React, JavaScript and Node.js are beneficial. For the purpose of this tutorial, I have also ...
3 Essential Design Trends, October 2018
Web Tricks

3 Essential Design Trends, October 2018

This month’s trends have something in common: You’ve probably seen all of these ideas before, maybe just presented in a slightly different way. Designers are returning to dark backgrounds, large headers and cards to encourage engagement, and get users interested in content on the screen. Here’s what’s trending in design this month: 1. Dark Backgrounds It seems like designers were focusing on light, white minimal styles for a long time, but that era is starting to end. Dark backgrounds are making a comeback in a big way. Dark backgrounds provide a design opportunity quite different from white Maybe it’s the idea that cooler weather is coming. (Many of these dark backgrounds do have a cool feel.) Or maybe it’s just a shift in order to try something different. (Dark backgrounds...
Popular Design News of the Week: September 24, 2018 – September 30, 2018
Web Tricks

Popular Design News of the Week: September 24, 2018 – September 30, 2018

Every week users submit a lot of interesting stuff on our sister site Webdesigner News, highlighting great content from around the web that can be of interest to web designers. The best way to keep track of all the great stories and news being posted is simply to check out the Webdesigner News site, however, in case you missed some here’s a quick and useful compilation of the most popular designer news that we curated from the past week. Note that this is only a very small selection of the links that were posted, so don’t miss out and subscribe to our newsletter and follow the site daily for all the news. 16 CSS Border Animations DebugBear – Front-end Code Monitoring Scheme Color – The Quick, Simple and Easiest Way to Browse Color Schemes Framer X is Awesome, but it’s not R...
Building a Google search clone SPA with Vue and Flask
Web Tricks

Building a Google search clone SPA with Vue and Flask

Introduction A few weeks ago, in the course of seeking for a developer role, I completed a technical assessment test and the entirety of this article is based on the development process; I thought it would be great to write about how I completed it, so open up your favourite code editor and let’s build something awesome and learn a few tricks. The technical assessment test asked that I built an app with the following features: Before anything else, I pulled out my pen and tore out a piece of paper, drew a basic representation of the app and decided to make it into a Google search clone. The app could have been anything really, but it sounds much better to tell my friends that I just built a Google search clone, don't you think? I decided to use Vue for the frontend and Flask for the backe...
Developing With Automad
CSS Tricks

Developing With Automad

Selecting the right CMS for a blog or website can be difficult. Every web project has its own needs and requirements, meaning one CMS may be a better fit for one site but not so much for a different site. Simple solutions might be lacking some essential features, while more complex systems can create easily overhead for a given task. I want to cover Automad, a CMS that is less-known than, say, a behemoth like WordPress, but still offers some powerful features like it while maintaining the nimbleness of smaller, simpler solutions, like static site generators.   Specifically, Automad fills a gap between larger and smaller offerings in a few key ways: It is file-based, but does not require a database. This ensures quick setup, portability, security, speed, and easy deployme...
The Freelancer’s Guide to Paying Tax
Web Tricks

The Freelancer’s Guide to Paying Tax

When you take the leap into freelancing and self-employment, it’s really exciting at the start. Eventually, the honeymoon phase wears off and you comfortably adjust to life as a freelancer, which, in all honesty, is a really great deal. You get to run your design business the way you want. Work with clients you like. Make as much money as your schedule allows for. Live and work from anywhere in the world (and move as frequently as you want!) This business is yours to shape and mold into whatever you want it to be and to support whatever sort of lifestyle you want to lead outside of it. That said, while the structure of the business may fully be under your control, the income you make from it is not. Every country holds its residents accountable for paying taxes. When you have an e...
Web Tricks

Privacy By Design: How To Sell Privacy And Make Change

Privacy is a fundamental human right that allows us to be our true selves. It’s what allows us to be weirdos without shame. It allows us to have dissenting opinions without consequence. And, ultimately, it’s what allows us to be free. This is why many nations have strict laws concerning privacy. However, in spite of this common understanding, privacy on the Internet is one of the least understood and poorly defined topics to date because it spans a vast array of issues, taking shape in many different forms, which makes it incredibly difficult to identify and discuss. However, I’d like to try to resolve this ambiguity. In the United States, it is a federal offense to open someone’s mail. This is considered a criminal breach of privacy that could land someone in prison for up to five year...
Using Parcel In A Vue.js App
Web Tricks

Using Parcel In A Vue.js App

When it comes to bundler, Webpack seems to be the de-facto bundler within the Vue.js community. In this tutorial, I will be showing you how to use Parcel in a Vue.js application completely from scratch. What is Parcel Parcel is a blazing fast, zero configuration web application bundler. It is a relatively new to the application bundler world. One of Parcel’s main selling point is it zero configuration as you don’t need have some kind of configurations to it. If you have ever used Webpack prior to version 4, then this will be a relief. In addition to this, Parcel has out of the box support for JS, CSS, HTML, file assets etc, with no plugins needed, and it builds all these assets in a blazing fast bundle time. Getting started To get started using Parcel, we need to first install the Parcel b...
Create Vue Apps Visually with the Vue CLI User Interface Tool
Web Tricks

Create Vue Apps Visually with the Vue CLI User Interface Tool

Most JavaScript frameworks these days usually have some sort of Command Line Interface (CLI) that enables users quickly scaffold applications and get straight to building apps, without doing repetitive set up tasks. Some common ones are: Vue CLI Angular CLI Create React App Ember CLI Sometimes these CLIs come with a lot of configurations, which may be fun to use, but also a bit complex, since some commands may take in a lot of parameters and flags. The Vue CLI introduced a Graphical User Interface (GUI), which can save us a lot of time and give us clarity on what we are actually doing while building a Vue App generated with the CLI. NOTE The UI Tool is till in Beta, and a lot may change. Prerequisites You should have a basic to intermediate understanding of JavaScript and VueJS You should...
Mailchimp Unveils Quirky Rebrand
Web Tricks

Mailchimp Unveils Quirky Rebrand

If any single tech company embodies the spirit of web-savvy, then it is Mailchimp. Since its beginnings as a side-project in the early-2000s the marketing service has walked the line between creative experiences, and simple usability. Mailchimp is one of those companies that saunters onto the court, lobs a shot over its shoulder, and gets nothing but net. Now, with their latest rebrand courtesy of brand agency Collins (as ever, alongside an in-house team) Mailchimp has got almost everything right. Almost. Chimp lovers will be relieved to discover that Freddie has survived the rebrand, and remains as the logomark, albeit redrawn in a simpler form. He’s lost his “M”, a bit of fur’s gone, the ear’s simpler. Essentially Freddie is more usable, more translatable, more international. The most...
Nested Links
CSS Tricks

Nested Links

The other day I posted an image, quite literally as a thought exercise, about how you might accomplish "nested" links. That is, a big container that is linked to one URL that contains a smaller container or text link inside of it that goes to another URL. That's harder than it might seem at first glance. The main reason being that... <!-- this is invalid and won't render as expected --> <a href="#one"> Outside <a href="#two"> Inside </a> </a> Eric Meyer once called for more flexible linking, but even that doesn't quite handle a situation where one link is nested inside another. Here's what happens with that HTML, by the way: The nested link gets kicked out.My first inclination would be to simply not nest the links in the markup, but make them appear...
CSS Tricks

Test out the cloud platform developers love for free with a $100 credit

(This is a sponsored post.)DigitalOcean invites you to experience a better, faster and simpler cloud platform designed to scale based on your needs. Get started for free with a $100 credit toward your first project and discover why the most innovative companies are already hosting on DigitalOcean. Direct Link to Article — PermalinkThe post Test out the cloud platform developers love for free with a $100 credit appeared first on CSS-Tricks. Source: CSS-tricks.com