GithubHelp home page GithubHelp logo

020_fm_000's Introduction

MyLogo
 

070_00_CSharpCompClientServer

 

Project Description

020_fm_000 is a practice to create a responsibe website with HTLM and CSS, following Youtube Kevin Powell's tutorial Build a responsive website with HTML & CSS and the other help that you can find into Reference section.  

Technologies used

HTML Sass CSS JAVASCRIPT VITE

References

Steps

  1. DevDependencies:

    • Extensions

      • Sass
      • PostCss
      • Autoprefixer
      npm add -D sass postcss@latest autoprefixer@latest
      
  2. Change foder structure to have a src folder:

    • Create next to "package.json" file "vite.config.js"
    • Add these code:
    npm add -D sass postcss@latest autoprefixer@latest
    
    		import path from "path";
    		import glob from "glob";
    
    		export default {
    		root: path.join(__dirname, "src"),
    		build: {
    			outDir: path.join(__dirname, "dist"),
    			rollupOptions: {
    			input: glob.sync(path.resolve(__dirname, "src", "*.html")),
    			},
    		},
    		};
    
    		Or
    
    		import path from 'path'
    
    		export default {
    		root: path.resolve(__dirname, 'src'),
    		build: {
    			outDir: path.resolve(__dirname, 'dist'),
    			rollupOptions: {
    			input: {
    				index: path.resolve(__dirname, 'src/index.html'),
    				about: path.resolve(__dirname, 'src/about.html')
    			}
    			}
    		}
    		}
  3. Add surge to test build on real web:

    • Add surge devDependency to "package.json" file
    npm i --save-dev surge
    • Deploy

      • Write deploy directory path.

        • D:\xxxx\xxxx\020_fm_000\dist
      • Write domain name to deploy.

        • fm020.surge.sh
    • Run

    npx surge
    • Update into same domain
    npx surge --domain fm020.surge.sh

020_fm_000's People

Contributors

byron2016 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.