yogeshtakeo / BFD36_files

0 stars 0 forks source link

Task 9 : JS and CSS #9

Open yogeshtakeo opened 1 year ago

yogeshtakeo commented 1 year ago

Task 9: CSS Styling and JS Variables in a React Project with Vite

Objective:

Apply CSS styling and use JavaScript variables in a React project created with Vite.

Task Overview

Task Details

- Review CSS Styling and JavaScript Variables.

Watch a tutorial video or read articles on CSS styling and JavaScript variables. Youtube video to learn about variables CSS styling methodology Familiarize yourself with the basics of CSS selectors, properties, and values. Understand the concept of JavaScript variables and their usage.

- Set Up a React Project with Vite.

You can also use the normal way that we used to create the vite react project with npx create-vite@latest project_name or Open a terminal or command prompt. Create a new directory for your project: mkdir react-styling-variables cd react-styling-variables Set up a new React project using Vite by running the following command: npm init vite@latest

- Apply CSS Styling.

  1. Open your project in a code editor.
  2. Identify a React component (e.g., App.js or any other component in the src directory) where you want to apply CSS styles.
  3. Add CSS class names to the HTML elements within the component to target them with CSS.
  4. Create a new CSS file (e.g., styles.css) in the src directory and write CSS styles to target the class names used in the component.
  5. Import the CSS file in the component file (e.g.,import './styles.css';) to apply the styles.

Note : Use of proper Stylings UI should be applied padding, margin , border, color, background height , width and the use of px , rem and percentage (%) should be shown in the screenshot submission

- Use JavaScript Variables.

  1. Identify a scenario where you want to enhance interactivity using JavaScript variables.

  2. Declare a JavaScript variable in the component file(e.g., const myVariable = 'Hello, World!';).

  3. Use the JavaScript variable within the component JSX(e.g., <h1>{myVariable}</h1>).

    - Test and Refine

  4. Start the development server by running the following command in the project directory:npm run dev

  5. Open your web browser and navigate to the provided local development server URL (e.g., http://localhost:3000).

  6. Verify that the CSS styles are applied to the targeted elements.

  7. Check that the JavaScript variable is rendered correctly within the component.

Task Submission

Take a screenshot of the rendered semantic components in the browser. Share the screenshot of the output and the code that you have written in the issue comment box. Don't forget to mention GitHub URL and your name in the comment section.

Youngbikalp commented 1 year ago

Name: Bikalp Timalsina Task 9 : JS and CSS Github URL: https://github.com/Youngbikalp/Task-9-JS-and-CSS/tree/master image image image

aniltimalsina commented 1 year ago

Name: Anil Timalsina Task 09: JS and CSS Github URL : https://github.com/aniltimalsina/js-css-react

Screenshot 2023-09-11 at 11 29 58 PM Screenshot 2023-09-11 at 11 29 19 PM Screenshot 2023-09-11 at 11 27 52 PM
shantibasnet commented 1 year ago

Name: Shanti Basnet Task9: JS and CSS url: https://github.com/shantibasnet/variable/tree/master

image image image
mbasnet123456 commented 1 year ago

Name: Manoj Basnet Task9: JS and CSS url: https://github.com/mbasnet123456/JS-and-CSS.git

image
sansubed commented 1 year ago

Name: Santona Subedi Task9: JS and CSS github repo: https://github.com/sansubed/ReactViteAppTask9.git

Screenshot 2023-09-11 at 11 10 33 PM Screenshot 2023-09-11 at 11 11 01 PM Screenshot 2023-09-11 at 11 11 13 PM Screenshot 2023-09-11 at 11 11 23 PM

Screenshot 2023-09-11 at 11 12 05 PM Screenshot 2023-09-11 at 11 12 28 PM

raj-maharjan99 commented 1 year ago

Name: Raj Kumar Maharjan Task 9 : js & CSS Github: https://github.com/samragi99/css-javaScript.git

image

image image

Narayanadhikari9 commented 1 year ago

Name : Narayan Adhikari Task:9 CSS styling and JS variable GitHub: https://github.com/Narayanadhikari9/Variable Task9(1) Task9(2) Task9(3)

Madhv98 commented 1 year ago

Name: Madhav Dhital Task 9: JS and CSS GitHub: https://github.com/Madhv98/task9.git

Screenshot 2023-09-14 at 6 20 36 PM Screenshot 2023-09-14 at 6 35 25 PM Screenshot 2023-09-14 at 6 21 39 PM Screenshot 2023-09-14 at 6 23 25 PM Screenshot 2023-09-14 at 6 23 48 PM
Cheesesth1 commented 1 year ago

Name Chij shrestha task 9: jss and css https://github.com/Cheesesth1/creating-manakamana.git image image

image

ghost commented 1 year ago

Name Prakash Karki Task 9: JS and CSS GitHub URL:https://github.com/karki37/js-css Screenshot (28) Screenshot (29) Screenshot (30) Screenshot (31)