|
by via HTML5 Weekly
"Mr Branding" is a blog based on RSS for everything related to website branding and website design, it collects its posts from many sites in order to facilitate the updating to the latest technology.
To suggest any source, please contact me: Taha.baba@consultant.com
|
Though I often talk about both Sketch App and Photoshop, my slight crush on Sketch means I tend to spend more time with it.
However, the fact remains that I need to use both sometimes. One such example is when I’m designing for screens in Sketch App, but I want to mockup the screen as if it were being viewed on an actual device, and for that I need Photoshop’s “Smart Object” functionality. But why go through the effort?
Sometimes the visual aesthetic of a design doesn't really come to life until you take it off the flat canvas and show it off from a 3D perspective; in other words, how you might see it, realistically, with the naked eye.
Not only that, but it helps the mockup fit into a horizontal frame (for sharing on Behance and Dribbble) and many clients simply love how it looks.
Perspective mockups are very trendy, there’s no argument about it!
MagicMirror Plugin works like a Photoshop Action for Sketch, and there’s a terrific free version available. You design your screen in an artboard as normal, and a keyboard shortcut creates a sort-of smart object mockup of your screen.
Let's take it for a spin!
You can either use a screen that you’ve already designed or download a .sketch freebie, such as this epic Dark Dialer interface by Bootstrap Guru.
[author_more]
Atomic: A Faster Way To Design Beautiful Interactions?
Photoshop vs. Sketch: The Battle for the Cleanest HTML/CSS
The 10 Best Productivity Plugins for Sketch App
[/author_more]
Before you open it though, download the MagicMirror Plugin and try to open the .sketchplugin file that comes with it. Just like with Photoshop Actions, this will automatically install it.
Now you can open your .sketch design!
It’s not really a smart object, but it is smart. Press “A” to open the Artboard dialog in the inspector or simply Duplicate (command+d) the "source" artboard and remove its contents.
What we want to achieve here is two artboards of the same width and height, but one of them should be empty to ensure that our smart object retains the same aspect ratio as the design.
Press “R” to create a Rectangle and draw it out so that it fills up all of the whitespace in the new, empty artboard, then turn your eyes to the menu bar and hit the “Transform” tool.
It’s vital that we use Transform and not “Edit”; Edit will create an irregular shape whereas Transform will make sure that our shape retains the correct aspect ratio of our design.
Move the corners of the shape until you have the angle that you want. Perspective is assured if you’re using Transform.
It might be useful to save your favourite mockup shots in a single .sketch file so that you can use them as templates later on, or you download some of the mockups from the site: here’s a brilliant one.
We now need to connect our shape to the design so that they can be mirrored, but that’s really easy. Just make sure that the shape layer is renamed to match the artboard.
[caption id="attachment_117304" align="aligncenter" width="700"] Connecting the Screen to the Shape[/caption]
Press control+shift+m to start the mirroring (this works across “Pages” as well, like Shared Styles and Symbols). You might end up with something like this (below), but there are other keyboard shortcuts that we can utilise to achieve our aims.
[caption id="attachment_117305" align="aligncenter" width="700"] Rotating and Other Keyboard Shortcuts[/caption]
In our dilemma, we'll need to select the rectangle shape and use command+control+shift+r (I know, that's a crazy shortcut!) to rotate our design inside the shape; MagicMirror actually uses the “Fill” style to create a background image, but how they rotate it, I have no idea. It must be magic!
[caption id="attachment_117306" align="aligncenter" width="700"] Now Everything Is in Perspective[/caption]
Here're two other keyboard shortcuts to remember:
Continue reading %Creating a Perspective Mockup in Sketch with MagicMirror%
We’re stoked to finally kick off our Tutorials category in our Resources section!
The aim of the tutorials category is to provide our own articles or links to classes we think will help improve your One Page website design and development skills.
First up is a class we’d recommend on Designing a Responsive Landing Page.
Details are below but there are few things you need to know:
Official title: Design a responsive landing page to promote your favorite movie or band
In this class, you’ll learn the fundamentals of responsive design. You will walk through the steps needed to create a mobile-first site or web-app, how to prepare your design files, techniques for adjusting content and layout, and even a basic introduction to how this translates to HTML and CSS.
Web Designers, UX Designers, and Developers anxious to learn the fundamentals of responsive design, this is the class for you.
As a final project, students will submit a single-page design for a website promoting your favorite band or movie. The availability of high-quality photographs, posters and even videos for bands or movies, makes an ideal candidate for visually rich and engaging websites.
Your responsive landing page will be designed to fit at least 3 screen sizes – mobile, tablet, and laptop. Ambitious students can take their project beyond, creating additional designs to fit widescreen monitors or even convert their designs to a functioning website.
This is a design-focused course, though a basic introduction to responsive development will be presented for those students eager to bring their designs to life.
Meet John Ashenden (twitter)
“My portfolio includes 6 years as Grooveshark SVP and Creative Director, where I helped build one of the largest on-demand music services in the world. I was the creative force behind many first-to-market branded experiences that leveraged Grooveshark’s market in conjunction with Fortune 500 brands.”
“Today, I run H1 – a web and mobile design, branding, and development studio in Brooklyn New York helping companies like Salesforce, iHeart Radio, Quirky, Desk.com, and many others define their brand and reach new customers both online and offline. I am also a partner in The BKRY, a platform producer and proving ground for new applications Socialist and Sponsr.”
The class is a Premium class but if you enrol with this linkK you get your first month of Premium membership – absolutely free. So you can try Premium risk free and decided if you want to go all in at $9.99 after that.
|
In September, I made the first successful pitch of my career. Fortunately, I was alone when I received the news, as I immediately pumped my fist and shouted in triumph. You would have thought I’d won the lottery.
In truth, that moment had been building up for four months, hence the disproportionate excitement.
I had been working as a freelance writer for a couple of years before I made the pitch, which was a story about Bernie Sanders, defeatist news headlines, and voter psychology. The bulk of my writing jobs were (and still are) coming from referrals, and my writing “beat” never strayed far from the digital marketing realm, but I’d been wanting to stretch my writing muscles and expand my repertoire for a long time.
Continue reading %The Four Month Pitch: A Freelancer’s Struggle%
The CSS spec does not mention it, but you can mimic C-style and/or Unix-style line comments in CSS files (with some caveats). Others have written about them before (see in particular, SitePoint’s Web Foundations post covering CSS Comments). The present post examines them in further detail.
CSS parsers, per the spec, officially bless one style for comments, the multi-line comment from C-style languages, which uses a start token, /*, and an end token, */, as follows:
[code language="css"]
/*
characters between, and including, the start and
end tokens are ignored by the parser,
*/
[/code]
And so a rule declaration in comments will be ignored:
[code language="css"]
body {
background: red;
/*
background: white;
*/
}
[/code]
A block declaration in comments will be ignored:
[code language="css"]
/*
body {
background: red;
}
*/
[/code]
In each of those examples, we are using the comment syntax intentionally to instruct the parser to ignore the content.
However, we can do that by accident, as with malformed declarations, such as
[code language="css"]
body {
background: red /* missing semi-colon */
background: blue;
}
[/code]
In this example, neither background declaration is applied because of the missing semi-colon. The parser scans for the next semi-colon, determines the entire two-line statement is malformed, and so ignores the entire lexed content. The same thing happens if we leave out the property value altogether:
[code language="css"]
body {
background:
background: blue; /* this declaration is not applied */
}
[/code]
And that shows that we can use malformed declarations as…
We’ll refer to these as “pseudo-comments” because, properly speaking, these are not comments that terminate at an end-of-line character. Instead they work by malforming the input that follows them, even on subsequent lines. And this is due to the error handling process for Rule sets, declaration blocks, and selectors:
“the whole statement should be ignored if there is an error anywhere in the selector, even though the rest of the selector may look reasonable in CSS 2.1.”
In the following example, taken from the spec, the second ruleset is ignored due to the presence of the invalid “&” character in the selector:
[code language="css"]
h1, h2 {color: green }
h3, h4 & h5 {color: red } /* <= ignored */
h6 {color: black }
[/code]
Again, in the following, the second and third declarations are ignored due to the presence of extra characters in the background property name:
[code language="css"]
body {
background: red;
xbackground: white; /* property name is not recognized */
y background: blue; /* property name is not well-formed */
}
[/code]
A quick tour around the English language keyboard shows the following special characters will act as single-line declaration comments:
[code language="css"]
selector {
~ property-name: ignored;
` property-name: ignored;
! property-name: ignored;
@ property-name: ignored;
# property-name: ignored;
$ property-name: ignored;
% property-name: ignored;
^ property-name: ignored;
& property-name: ignored;
* property-name: ignored;
_ property-name: ignored;
- property-name: ignored;
+ property-name: ignored;
= property-name: ignored;
| property-name: ignored;
\ property-name: ignored;
: property-name: ignored;
< property-name: ignored;
. property-name: ignored;
> property-name: ignored;
, property-name: ignored;
? property-name: ignored;
/ property-name: ignored;
}
[/code]
Rather than use just any character, though, stick with C and Unix convention, and use either # or //:
Continue reading %Pseudo-comments in CSS (Or, How Browsers Parse Styles)%