CSS Art Gallery Β·
Run the project
Run the yarn install
command in the terminal to download the dependencies.
Run the yarn start
command to run the project in the development mode.
Open http://localhost:3000 to view it in the browser. The page will reload if you make edits.
Some rules and suggestions for making the CSS Art.
- Please do not make any more logos.
- Create your folder inside the
/art
folder. - The folder name should be as follows. YourName + ArtName
For example, SalilNaikTeddy, - Give gradient or solid background colours to the
.container
class. Kindly do not keep the background white in colour. - To test your component, import your component to app.js. DO NOT FORGET to revert the changes made to App.js and art/index.js before you push. Since multiple contributors are going to contribute at the same time, almost every contributor will get merge conflicts. So, edit app.js and art/index.js file only for test purpose, DO NOT push the changes to GitHub.
- Check out
index.css
for common CSS. DO NOT EDIT THIS FILE. - If you are coding an object inside the container, for example, a logo, a geometrical shape or an object, kindly make sure the total dimensions (width and height) do not exceed 150px. You may take up to 180px only when required.
- Do not copy the code from elsewhere. If I find any code has been plagiarised from some other platform, I'll have to revert the PR and block you from making any further contributions.
- Please create an issue and start working only after it is assigned to you. During live sessions, you may directly start working without having the issue assigned to you as it might not be feasible for me to assign issues to individuals. But it is important to create an issue so that others don't work on the same art as you are working on.
- When you create a pull request, please specify the
updates
branch as all the contributor's changes are going to be merged in theupdates
branch and then to themain
branch.
Folder Structure
frontend
βββ art
β βββ 1_template (this is the template)
β β βββ template.jsx
β β βββ style.module.css
β |
β βββ SalilNaikTeddy
β β βββ SalilNaikTeddy.jsx
β β βββ style.module.css
β |
β βββ RajCar
β βββ RajCar.jsx
β βββ style.module.css
β
βββ App.js
React Component Conventions
- Strictly follow PascalCase naming convention for naming React Components.
- Import CSS module file as style in all the pages and components. Example,
import style from 'style.module.scss'
- Do not edit or remove anything from the template provided. Only add the code where you are told to add.
Some learning resources
Β |
---|
Learn about CSS Modules |
CSS position properties explained |
CSS Pseudo-Elements - Before and After Selectors Explained |