التخطي إلى المحتوى الرئيسي

Sass Sass Sass Sass Sass Sass Sass Sass

Sass Sass Sass Sass Sass Sass Sass Sass

The Last 3 Sass

Running locally on your machine

Steps:
  1. Clone the repository to your machine.
  2. CD into the directory.
  3. Install the Node Package Manager. If you already have it on your system, skip this step. To install it, run:
    npm install -g npm
  4. Run npm install to install the project's dependencies. If you already have them installed, skip this step.
  5. Run npm run build to build the project for the first time.
  6. Run npm run watch to see if there are any updates made to files. If you make changes to the scss files, you will see a green checkmark in the top right corner of the scss file. If no changes are made to the scss files, there will be a red x in the top right corner of the scss file.
  7. On first run, run: npm run start to start the server.
  8. Access the website on localhost:8080 in your browser.
  9. Open Scenes.html in a different browser tab. There you can switch between different scenes. When you switch scenes, you’ll see an empty message on the screen and an orange circle with the text, "Loading…".
  10. Experiment with different sections within the code and see how your changes effect the website. Also, check out the different Scenes.html files to change the backgrounds and themes of the website.

Deploying the website to Glitch

  1. Click on Deploy to see the different options Glitch gives you for deploying your website. We're going to deploy it to GitHub Pages.
  2. In GitHub, go to your repository settings, and create a new secrets. See this tutorial video for more information.
  3. In Glitch, click on Deploy (bottom right corner) to deploy your site. Then choose "GitHub Pages" as your deployment. Click deploy again to deploy your site.
  4. Go to your repository settings on GitHub, and find the link to view your website. Click on the link to view your website on GitHub Pages.
  5. Experiment with different sections within the code and see how your changes effect the website. Also, where the differences between your local and Glitch deployments. Drag a menu element to see where it moves in other scenes.
  6. Try deploying the website to Netlify, GitLab, and Heroku. Explore each platform's special settings.
  7. Try deploying your website to Vercaccio. Use the free version for now, and upgrade your plan once you are ready to go live. Explore each deployment setting. Get familiar with the drag and drop tool in the Veraccio toolbox that allows you to move element between scenes. You can move selections to see where they move in other scenes. You can also move elements outside the screen, especially for animations. Expand the animation settings panel and explore each option. You can also preview your deployments using Veraccio. Explore each platform's special settings.
  8. Try deploying your website to other platforms, such as Deploypilot and Code Ocean.
  • Use this video as a guide for learning more about 3D tools in Blender.
  • After you get familiar with using Blender, check out this tutorial to learn how to use Gnomon's realistic shader textures to apply to your 3D models.
  • If you want to make your own 3D models for your projects, check out this tutorial on how to model your own character.
  • Don't forget to check out the other tutorials in the series if you haven't already!
  • For more tutorials on web development, check out my YouTube Channel!
  • I hope you enjoyed this tutorial! If you find it helpful, please like and share it with others! Also, don't forget to OMG!!
  • I love what you have put together. We are all pretty new to web development and are using a lot of tutorials such as the ones you have linked. Can't wait to get into your series. Thank you for your hard work in putting this together! Thank you so much for your support!! I'm glad you enjoyed it! If you have any questions, feel free to contact me! I couldn't replicate the backgrounds in scenes 6 and 7.It's frustrating. Any ideas on what I am missing? You'll find the images in the /assets/images/ folder. you were great with the tutorial until the deploying. I don't get the point of stuff like netlify, github, deply? I'm glad that you enjoyed the video! I'd like to talk about my experience, because it's been informative, and I hope it will provide some insight into my perspective. I didn't know much about these platforms before researching them and making my videos. I wanted to expand my horizons and try new platforms, so that's why I chose to deploy in 10 different ways. I wanted to see how each platform had different limitations and features, and see how that affected how I did my work. I chose GitHub Pages because it was free, and it's what I've been using for other projects. I've had good experiences with GitHub Pages, but it does have a few limitations that you should be aware of. One limitation is that you can't style elements with CSS. For example, I had to style my headers by using a CSS stylesheet, which doesn't work on GitHub Pages, so I had to use pseudo-elements and fallback colors instead, much like how I had to style the headers in Veraccio. Veraccio uses Angular, and you can't run Angular commands on GitHub pages, so I had to use fewer Angular features than I might have otherwise. When I published my post to this platform, I developed some issues and had to edit the code to fix it. I was expecting the platform to be a bit more stringent and to provide some tools to limit what you could put in your code blocks to help prevent issues like this, but that wasn't a feature of this platform, so that was a bit disheartening. I also got some notifications about content being removed from my post, but those were just included in the process of learning to use the platform properly, so you won't need to worry about that. If I were to start all over again, I would have chosen to use a different platform, maybe the one that came first on the list, but maybe I would have chosen another one if I had learned a bit more about all of the other platforms first. When I published my tutorial on Code Ocean, I had trouble editing code blocks, especially with Bootstrap, which was not working properly. I had to add the Bootstrap lazy loading script, which didn't seem like it was intended for this purpose, so I had to use a different script to enable Bootstrap in my designs. I also tried to change the background color of the content and change the font color of the button in the editor, but the editor didn't allow it. One lesson I learned is that if you want Bootstrap lazily loaded, which causes Bootstrap to load asynchronously, especially on mobile devices, then you will need to disable lazy loading when testing in the editor, but it causes issues when deploying it on the platform. Overall, my experience in this platform was much smoother than the others, but it wasn't the easiest platform to use. It did match the platform name, but it was more like a part of your repository than a separate platform, if you follow me. DeployPilot was the easiest platform to use because it automates the deployment process, which I liked. I could have done some of what I did on the platform myself, but it would have been more work, so I was really happy to not have to spend my time doing that. You don't get as much configuration options as you get from other platforms, and you can't really customize it without changing your code and deploying it yourself, but it's a good option if you just want to quickly get your code deployed and working with little fuss. One major limitation that I encountered when trying to use it was that preprocessors such as CSS Sass don't work without doing some extra work. You can enable that feature manually, but your code will just work without it if you don't care about minimizing your code or trying to reduce HTTP requests. I don't know if that limitation in HTML has been removed, but I was unable to deploy HTML files with preprocessors such as Stylus, which is a crying shame. In my attempt to deploy to Netlify, I ran into some issues that surprised me. The platform also automatically removed some of my code for some reason, which was pretty frustrating, because I had to go back and edit the code to work around the issue. I also ran into some issues with the HTML minifier, but I figured out how to stop it from mangling the code so much. Overall, I would not recommend using Netlify, at least not for a novice developer. I've heard of pro developers having good experiences with Netlify, but it's just not good if you don't have those experiences yet. I didn't have as many issues with my ZenHub deployment or my Veraccio deployment, so I would suggest using either of those platforms if you are a new developer. They are free, and your projects also get supported by the Git projects you are using, so your changes get automatically reflected in your deployment. You can also use these platforms to deploy your projects quickly and easily if you want to, but they are also good platforms for learning, because they provide you with a library of features that you can explore in your project, and that's always helpful for learning. I would be surprised if other developers had different experiences with them, but the other platforms I listed in my video were just not as complete as these platforms. There were some hybrid platforms such as DeployPilot that provide an automation of the deployment process and integration with the Git repositories, but the tools they provide are not as robust as the other platforms. You can also use other platforms to provide forums or chat to communicate with others, as well as integration with CI/CD services like Travis or CircleCI, which can be helpful for deploying code using an automated process. In summary, every other platform has some kind of downside. I chose to write about my experiences with these platforms so that you know what to expect if you decide to try them. You'll need to choose the platform that is best for you based on your skill level, the features you need, and what you are comfortable doing. I chose to make a video like this to share my experiences with other developers, and to help new developers get a better idea of what to expect from each platform. I would be curious to hear your experience with them, or if you have any questions about the platforms I mentioned in my video or any other ones that you want to learn more about. If you haven't seen my video yet, you can watch it here: Deploying a Website in 10 Different Ways. 2 questions: 1. I can’t add any Javascript to the YUB. #StillSupportBootstrapV4 2. How do I access the .scss files in the deployed website? I can’t seem to find them anywhere. 2 replies to this post. 1. The placeholder dialog is a bug. You won't have to worry about it if you import the Javascript file when you use it. I just tried adding it to the .YUB file, and it works fine for me. I'm not sure why it wouldn't work properly for you, but if you are using beta build, you might want to try importing the Javascript file instead. If you are using stable build, you should make sure that you click the "Rebuild Website" button after you import the Javascript file to get the changes to show up in the editor. 1. You can delete the placeholder dialog by selecting it in the stacks (whatever the term is for those components in the YUB), right-clicking on it, and choosing "delete". You can also change the color of the overlay by double-clicking on the overlay component, going to the color picker, and choosing a color. I always have problems with scss files being deployed and they never work. I always have to add all of the scss files in a separate folder called "stylesheets" to the root directory to get them to work. 1. If you are using the original adapter, you won't have any issues with the CSS files not being deployed properly if you add them to the root directory. You can also just delete the placeholder dialogs if they are causing you issues. I have sent my YUB comments to support, and they will address them. 2. I use the beta build of YUB, which you can download by clicking on the button in the top right corner labeled, "Join the Beta". I don't have any issues with the CSS in my .YUB and .scss files when I use the beta build. You might want to try switching to the beta build and see if that helps. If you want to continue using the stable build, you can make sure that you click the "Rebuild Website" button before deploying if you add the CSS to the root directory and don't want to delete the placeholder dialogs. This was a great video! I'm going to try the different ways to deploy my CSS, JS and site to get a large sample space. I'd like to learn how to use a CSS Framework, instead of rolling my own, so I may need to try Ghostbutter.frames module on Bootstrap in the future, thanks for all of these