Showing posts with label Web Design. Show all posts
Showing posts with label Web Design. Show all posts

Monday, August 3, 2020

What is JavaScript? What Does It Do, and What Is It Used For?






 "What is JavaScript? What does it do and what is it used for?" 

Well, first, right off the bat, JavaScript is a programming language. But one of the things that makes it unique is that it runs right in your browser. 

Most programming languages for the web run on the server, and then what you get in your browser is a plain webpage. JavaScript's run by your browser and that makes it quite unique in the world of programming languages.

 We're here at JavaScript.comand one of their first examples is to simply type your name in quotes and hit enter. And there, when I did that it turned green, it put a checkmark on the left, and it made a button that said, "next challenge".

 My browser didn't go out to the server to get all that information, it just did it right here. So then, what can JavaScript do for us? There are lots and lots of great things. It's good at providing interactivity. Right here in this blog post, there's this little gallery of pictures. On some of them, if you hover, it pops up a description.

 And if you click, it fades the page out to black and brings up a large one with a space for comments below and arrows on the left and right and a little x here at the top. All kinds of interactivity. Another example of interactivity comes right here in this form field. It wants a date. When I click, it brings up a calendar and I can simply click. 

That helps remove the possibility of typing in a date incorrectly. And it helps you be sure about the date you're choosing. Another thing that JavaScript can enable is real-time content updates. We're looking here at a Google map and there are little pinpoints all over it. If I click one, it brings up some information. Now JavaScript went out to the server and got this little piece of information. It didn't reload the whole page. If I click on a different pinpoint, it goes to get different information. And then down in the bottom right are some tools for zooming. Each time I zoom it’s going out to the server, getting a new image. But it's doing it without reloading the entire browser.

 So, I don't lose whatever work I'm doing elsewhere on this page. JavaScript can also enable animation. This is a code example page. We have HTML, CSS, and JavaScript. But together they make this solar system. And it's more than just animation.

 You can choose different planets to watch. You could turn it into 2D. You could zoom it out so that you could see allot the planets at once. And you can have different focuses. Right now, we're looking at speed, but if you made size proper, this is what the sun is like in scale to Earth, not like this, and there's also distance. All of this is done with just a little bit of JavaScript. 

One last thing I want to show you is dealing with data. You can take data in the proper format and feed it into JavaScript and create charts and graphs. These charts and graphs cane automatically updated based on the data that gets fed into them. So, let's review. JavaScript is a programming language. And the thing that makes it unique is that it runs in your browser, as opposed to on the server. 

It can provide interactivity, real-time content updates, and quite a few animation options. JavaScript is an exceptionally powerful language. One last thing I'd like to point out is that JavaScript is not related to Java in any way. The name is an unfortunate coincidence. They're completely different languages written for different purposes by different people at different times and they run on different machines. The thing to remember is that JavaScript is the one that runs in your browser. 

Monday, July 27, 2020

How to configure the Yoast SEO Search Appearance settings: General tab | Yoast SEO for WordPress

 







Hi, we're on the Search Appearance settings for Yoast SEO. In this screencast, we'll focus on the first tab, called "General". You'll find three different sections here, indicated by three different headings, called "Title separator", "Homepage" and "Knowledge Graph & Schema.org". 

First of all, you can choose the title separator. The title separator determines what we use to separate different parts of your SEO title from each other in the search results. At Yoast, we tend to use this bullet between, for instance, the site name and the title of a page. Let me show you what that looks like in the search results. Let's google "keyword research Yoast". OK, if you look at the first result, you'll see the bullet appear between the name of the post (Keyword research for SEO: the ultimate guide) and the site name(which is Yoast). Of course, you can also use dashes or pipes, or something else. What you choose depends mostly on taste, but if you choose a longer one, like this em dash, the amount of space that you have for your title shrinks by the space that the title separator takes up in your title. 

So we usually recommend picking a shorter one, like dots, or a pipe. The problem that we have with a pipe is that it looks too much like the letter L. Let's move on to the second section, called "Homepage". What can we do here? Let's click the question mark to find out more. "This is what shows in the search results when people find your homepage Site. This means this is probably what they see when they search for your brand name." Okay, so, what you can do here is change the SEO title and meta description of your homepage. As we've seen before, you can use snippet variables to determine the SEO title. In our case, the SEO title of the homepage would say: "Yoast" (our site title), then a page number if there is any(our page), a bullet (or separator) and "SEO for everyone" (our tagline). You can easily adjust the SEO title clicking "Insert snippet variable". And you can always check which variables are available by clicking "Need help" and then "Snippet variables". In the next field, you can enter the meta description for your homepage. 
You can insert snippet variables here as well if you like. Now, let's have a quick look at our own homepage snippet. Let's just google "Yoast". Here it is, just below the ad. If people click this result, they will land directly on our homepage. Now, as you can see, we've customized our SEO title a bit. Instead of showing the site title "Yoast" first, we've chosen to first show the tagline "SEO for everyone". And our meta description explains one clear sentence what we do and which products we offer. The last section on this tab is called"Knowledge Graph & Schema.org". That sounds rather difficult. Is it? Well, no, not for you. 

Because we take care of the difficult stuff for you. Let's first discuss the knowledge graph. What is it? A knowledge graph panel in Google's search results appears when you search for an organization or a person. If I search for, for example, "Walt Disney Company", this panel at the right is the knowledge panel. If I search for "Walt Disney" only, this is the knowledge panel. Within the plugin, you can change the settings that will determine what shows up here, which logo shows, and which social profiles show in this panel. You first have to determine whether you're an organization or a person. If you're an organization, you can set a name and logo here.

 The social profiles, like Facebook and Twitter, are taken care of in the Tools section of Yoast SEO. And we'll come back to that later in this course. If you're a person, you have to select the one that represents the site. Make sure that the user profile information is up-to-date as this information will be used the search results. You can edit this information by clicking this link. We'll come back to that later in this course as well. And... cool, cool, cool...

you can also upload an image for persons. What happens next? Well, we will automatically generate-called JSON-LD metadata (you don't have to know exactly what this is right now) but we show this data on the front page of your site. So you won't see this anywhere on the design of your site, this will just show in the code and it might show up in the search results. Good luck and don't forget to hit "Save changes" of course! 

Payment Gateway Integration-PHP




1 Apply For Instamojo for payment
2 Copy this code and upload in your Files
3 Put The authentication Key 0r Private Key in your files
  

Code:
<!DOCTYPE html>
<html lang="en">
	<head>
		<meta charset="utf-8">
		<meta http-equiv="X-UA-Compatible" content="IE=edge">
		<meta name="viewport" content="width=device-width, initial-scale=1">
		<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
		<meta name="description" content="">
		<meta name="author" content="">
		<link rel="icon" href="../../favicon.ico">
		<title>Payment Mojo</title>
		<!-- Latest compiled and minified CSS -->
		<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" >
		<!-- Optional theme -->
		<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap-theme.min.css" >
		<!-- Latest compiled and minified JavaScript -->
		<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
	</head>
	<body>
    <div class="container">
	<div class="page-header">
        <h1><a href="index.php">Instamojo Payment</a></h1>
		<form action="pay.php" method="POST" accept-charset="utf-8">
			<input type="hidden" name="product_name" value="<?php echo $prd_name; ?>"> 
			<input type="hidden" name="product_price" value="<?php echo $prd_price; ?>"> 
			<div class="form-group">
			<label>Your Name</label>
			<input type="text" class="form-control" name="name" placeholder="Enter your name">	 
			</div>
			<div class="form-group">
			<label>Your Phone</label>
			<input type="text" class="form-control" name="phone" placeholder="Enter your phone number"> 
			</div>
			<div class="form-group">
			<label>Your Email</label>
			<input type="email" class="form-control" name="email" placeholder="Enter you email"> 
			</div>
			<div class="form-group">
			<label>Amount</label>
			<input type="email" class="form-control" name="amount" Value="100" readonly>
			</div>
			<p><input type="submit" class="btn btn-success btn-lg" value="Click here to Pay"></p>
		</form>
 
    
    </div> <!-- /container -->
		</div>


  </body>
</html>
PHP CODE:


<?php 
$purpose = "Payment";
$amount = $_POST["amount"];
$name = $_POST["name"];
$phone = $_POST["phone"];
$email = $_POST["email"];
include 'src/instamojo.php';
$api = new Instamojo\Instamojo('29b34070bf5867b7d36bf2586c4f4855', '40d161c14f252cc781066e0c685f5f4d','https://www.instamojo.com/api/1.1/');
try {
    $response = $api->paymentRequestCreate(array(
        "purpose" => $purpose,
        "amount" => $amount,
        "buyer_name" => $name,
        "phone" => $phone,
		"email" => $email,
        "send_email" => true,
        "send_sms" => true,
        'allow_repeated_payments' => false,
        "redirect_url" => "https://studentstutorial.com/instamojo/thankyou.php",
        "webhook" => "https://studentstutorial.com/instamojo/webhook.php"
        ));
   $pay_ulr = $response['longurl'];
    header("Location: $pay_ulr");
    exit();
}
catch (Exception $e) {
    print('Error: ' . $e->getMessage());
}     
 ?>

<?php
$data = $_POST;
$mac_provided = $data['mac'];  /* Get the MAC from the POST data*/
unset($data['mac']);  /* Remove the MAC key from the data. */
$ver = explode('.', phpversion());
$major = (int) $ver[0];
$minor = (int) $ver[1];
if($major >= 5 and $minor >= 4){
     ksort($data, SORT_STRING | SORT_FLAG_CASE);
}
else{
     uksort($data, 'strcasecmp');
}
/* You can get the 'salt' from Instamojo's developers page(make sure to log in first): https://www.instamojo.com/developers*/
/* Pass the 'salt' without the <>.*/
$mac_calculated = hash_hmac("sha1", implode("|", $data), "723a3b8f18014441b3a7aead136b6544");

if($mac_provided == $mac_calculated){
   
    if($data['status'] == "Credit"){
       /* Payment was successful, mark it as completed in your database  */
                
                $to = 'YOUR_EMAIL_ADDRESS';
                $subject = 'Website Payment Request ' .$data['buyer_name'].'';
                $message = "<h1>Payment Details</h1>";
                $message .= "<hr>";
                $message .= '<p><b>ID:</b> '.$data['payment_id'].'</p>';
                $message .= '<p><b>Amount:</b> '.$data['amount'].'</p>';
                $message .= "<hr>";
                $message .= '<p><b>Name:</b> '.$data['buyer_name'].'</p>';
                $message .= '<p><b>Email:</b> '.$data['email'].'</p>';
                $message .= '<p><b>Phone:</b> '.$data['phone'].'</p>';
                $message .= "<hr>";
				$headers .= "MIME-Version: 1.0\r\n";
                $headers .= "Content-Type: text/html; charset=ISO-8859-1\r\n";
                /* send email*/
                mail($to, $subject, $message, $headers);
		}
    else{
       /* Payment was unsuccessful, mark it as failed in your database*/
    }
}
else{
    echo "Invalid MAC passed";
}
?>
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
    <meta name="description" content="">
    <meta name="author" content="">
    <link rel="icon" href="../../favicon.ico">
	<title>Thank You, Mojo</title>
<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" >
<!-- Optional theme -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap-theme.min.css" 
<!-- Latest compiled and minified JavaScript -->
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script>
  </head>
	<body>
    <div class="container">
	<div class="page-header">
        <h1><a href="index.php">Instamojo Payment</a></h1>
        <p class="lead">A test payment integration for instamojo paypemnt gateway. Written in PHP</p>
    </div>
	<h3 style="color:#6da552">Thank You, Payment succus!!</h3>
<?php
include 'src/instamojo.php';
$api = new Instamojo\Instamojo('YOU_PRIVATE_API_KEY', 'YOUR_PRIVATE_AUTH_TOKEN','https://test.instamojo.com/api/1.1/');
$payid = $_GET["payment_request_id"];
try {
    $response = $api->paymentRequestStatus($payid);
	echo "<h4>Payment ID: " . $response['payments'][0]['payment_id'] . "</h4>" ;
    echo "<h4>Payment Name: " . $response['payments'][0]['buyer_name'] . "</h4>" ;
    echo "<h4>Payment Email: " . $response['payments'][0]['email'] . "</h4>" ;
echo "<pre>";
   print_r($response);
echo "</pre>";
}
catch (Exception $e) {
    print('Error: ' . $e->getMessage());
}
?>
</div> <!-- /container -->
</body>
</html>


 Pay U Money Download the files(pay form, success, failure). Save them to your htdocs or www folder. Open the files to edit. 

Now edit the form page, edit the success page and failure page URL as stored in your system(using FTP:// or https://). 

The mandatory fields are imported, to run the PayUMoney integration. Optional parameters can be skipped. 

Run the form page in the browser to fill all mandatory fields. Give anything as product info. Add the links to the file where the success page is located(in htdocs or www). Do the same with the failure page. Now submit the form. Entered into the PayUMoney site. 

Select any payment method. 
Here I'm using the Debit card method.


Now enter the details of any test debit card detail. PLEASE DON'T ENTER ACTUAL DETAILS. Test debit card details can be obtained online.


 Now submit this. Wait for it to connect. Please do not refresh or cancel the transaction. Success page appears, successful transaction. THANK YOU Please SUBSCRIBE for more. The success message can be edited here. 




Top 5 Web Design Trends in 2019

 





 The tops 5 upcoming web design trends in 2019an example of Awesome websites that are using them ready let's check it out video background is one of.
 the best design trend that we are going to see it more and more often in 2019 many marketers used video background to create a modern look.

why give thevisitors first impression and captured their attention at the same time hereare some examples grid layout has been very popular in thepast few years and almost becoming the goto layout for web design until recentlythere was an introduction of asymmetrical layout or broken grid layoutthis trend is still going strong this year and we are expecting to see manybig brands starting to use it on their sites parallax scrolling has been around formany years but recently we have noticed more and more creative websitescombining this technique with many awesome ideas some were good some wereokay nevertheless we are going to see more websites implement anon-traditional scroll in 2019 by the way if you are looking for a quickparallax scrolling tutorial using only CSS check out tutorial video from ourChannel and link below we are going to see more and morewebsites with interactive contents like animation and mouse controllable contentwebsite is not just a static presentation anymore but a medium tograb their attention and let them interact with the content here are somegood examples minimalism tren is still strong and it'sgoing to stay that way in 2019 the less is more and clean design allow thewebsite to load faster and have better screen compatibility why give the userselegant impression here are some samples so that's all for this video and if youare interested in cool CSS design tutorial check our channel for weeklytutorial videos and it's watching and see you next time bye 

What is Web Design?




 Web design is used to work with creative people to combine writing and graphical elements to create a compelling message online for your potential customers. The most important thing to think about there is the message flow. 

Oftentimes, marketers skip over that but you want to really think about telling a message from the top down. What it is, why it's beneficial, how your product or service solves that for them, and then who this is for. So this is a great time for testimonials or brands and of course, combine that page with your call-to-action.

 One of the biggest trends I'm noticing today in web design companies using sections to break out different aspects of their story. They're able to break out the what, why, who, how into sections, and into more of a consistent message flow.


 My favorite is probably the simplification of brand messaging. We're seeing the company focus more on their unique value proposition and then telling a story about how that unique value proposition is accomplished by that particular company. A great example is a company is using what I'm calling the why-how blend. They're saying why you want the product or service and how their service delivers that. 

Sunday, July 26, 2020

How to Become Web Designer With Full Information?





Hey, Welcome guys, I hope you’re all doing well I know this is kind of a tough time for everyone around the world and a lot of people are at home, I've got this mess of a set up behind me all these monitors if you look closely I've got a windows laptop that I switch between a Mac laptop and I’m just trying to work on all these different screens and still create content for Pacers gaming the YouTube channel and the sports team that I work for.

now I wanted to create a video because I know everyone's got a lot of time at home and whether or not you are in school out of school wanna learn graphic design or just interested in getting to know more about it I thought I'd create and compile a list of resources for you guys to get started with graphic design learning at home so first off if you don't even know this is pixel and bracket YouTube channel I create a ton of videos around learning graphic design especially tutorials, whether it's illustrator Photoshop premiere after effects any of the adobe programs so you can check this channel out for plenty of videos on all of those creative programs and I also, if you don't know, if you're already subbed then you can already know this, but you don’t know I do have two free courses over on skillshare one about Photoshop and one about the illustrator these are like what I would teach for any beginner that wants to learn illustrator learn Photoshop and hasn't ever even touch the program and it's also everything that I would recommend to a seasoned designer if they don't already know so those free you can sign up with just an email but I've got something even better if you guys go to the link in the description I can get you two free months of skill share premiums even if it's not graphic design which there are tons of other premium courses on skillshare that you can watch and learn from there are also all sorts of online learning opportunities over on skillshare now this video isn't sponsored but because I'm a teacher on skills here Icon offer that link I get a referral so you guys can help this channel out and you guys get two free months of all premium courses on skillshare.

Which is pretty awesome no matter what you want to learn with your time here at home so that's enough about me what I would recommend you start out with is there's a playlist created called well it's called learning graphic design but it's got videos from G.C. F.

 learn free dot org and that's you tube the channel has a ton of great resources for educational things it's not just a graphic design but they have some amazing graphic design videos that they've created over there and I put them in a playlist I think you should watch every a single second of those videos there's an intro to design threescore typography branding all sorts of things layout and composition I think is one of the best videos they even have that tweet tends to the top of the pixel bracket Twitter regardless that’s a great playlist a link that in the description as with anything else in this video another site that has an article for twenty free graphic design resources for learning design is creative blow. created blow is a great website in general, you can go over there and find all sorts of things but this article that I linked has twenty different resources for learning more of like the hard skills and the lingo and terminology of design and typography as well as maybe just creating a poster, creating a brochure, or anything like that.

 and as you're diving into the skill sets of graphic design, if you want to freelance, or you want to learn more about the business side of design and how to create potentially portfolio how to charge clients how to learn more about how to interact in those sort of one on one situations where you're emailing potential clients or you're trying to look for people to do design work for, I would recommend the future. it's a great channel over therewith Chris Do and the crew, they are creating an amazing library of content that is super helpful all about the business of design.

and they also have I think have the future academy which is even more tutorial focused stuff so tons of great content over there I'll link that YouTube channel in the description. highly highly recommend it especially if you're already a designer and you're just looking to get some more freelance work or for ways that you can essentially monetize this career path that you've chosen. And then lastly on the practical side of things, one of my biggest recommendations is that you guys go out there, if you want to learn design, you're like "I can take all these to tutorials but I don't feel like I'm really learning how to do things", what I would recommend finding work that inspires you that you think is really great and you're like, man I wish I could make something like that... and what I would do is try to copy that exactly. Learn the spacing between the letters, learn the layout, the hierarchy of all the elements, how that black and white image really pops, maybe it's adding some more contrast, maybe is adding a little bit more detail to it through an unsharp mask or some kind of sharpening. I would look at work that you're inspired by and literally try to go recreate it. if you're looking for assets for a design like photography or if you are doing video work even some video resources, I would recommend I think Pixels and Unsplash.com, I'll link those below as well lots of stuff in the description in this video you guys... so you can pull images copyright free from there, but actually, it doesn't really even matter in this case because what I'm telling you to do is to create this stuff but not necessarily promote it or publish it or put in your portfolio. you're literally just creating something, copying the work of people that inspire you, other designers that inspire you, other work from brands or anything that you really enjoy, and want to learn how to get on to that level... literally copy it.

you're going to learn so much from it, whether you’re working in Photoshop, whether you're working in illustrator, all the different techniques that you're gonna figure out on how to create those designs are going to really really really help you when you're trying to create work for your portfolio. and speaking of your portfolio if you're wanting to build up, whether it's an online digital portfolio which I would recommend anyway or something that you're going to print out and take to a job interview... create work for that portfolio that is what you want to do.

there are all sorts of design out there in the world there are all sorts of types, styles, everything. create work that you want to do and then take that to companies that you want to work for. and what would recommend in that work is that you try to make it as practical as possible so if it's not real client work if it's not even student work if you're creating these project son your own like just creating a sample brochure I would find a brochure find a flyer find the piece of design a business card anything out there and pull all of those elements from it and make sure you include them all into the sample work that you're putting into your portfolio.

that'll make it look even more real, don't just try to come up with the information in your head on your own because you're going to miss out on some elements that make it lookalike student work, look like just sort of sample mockup designs. you're going to want to include everything that you find even the fine print the little details put it into that sort of spec/mock-up work and that is going to make it look a lot better and then create that portfolio of work of three to five really strong pieces of design put them in a place that’s easy for people to find so whether it's balanced or you have your own website or you just upload them to maybe even Instagram just to show off your gallery of I guess your portfolio makes it easy to send that link to the people recognize cover letter have a good resume if you're looking for work after this is all over or if you're already if you watch it’s video three years later and you know there is no pandemic anymore go through allot these resources I hope they really help you out, create your portfolio, work on your skills, and you're going to learn a lot more about graphic design very very quickly. I hope this video helps you guys out I don't know if I rambled onto much we can find out in the edit but I'm Spencer from pixel and bracket I hope you guys stay safe while you're all kind of bunker down, we're all quarantined at home... and of course, have a great day I'll see you guys next time.