შექმენით node.js-ის სკრიპტი onlineStatus.js
.
მოცემულია ობიექტი:
const servers = {
facebook: [{ username: "turbo-booster", isOnline: false }],
discord: [
{ username: "mailbox_2", isOnline: true },
{ username: "Leanne", isOnline: false }
შექმენით node.js-ის სკრიპტი onlineStatus.js
.
მოცემულია ობიექტი:
const servers = {
facebook: [{ username: "turbo-booster", isOnline: false }],
discord: [
{ username: "mailbox_2", isOnline: true },
{ username: "Leanne", isOnline: false }
თითოეული გვერდისთვის შექმენით ცალკე ფოლდერი pages
-ში. და თითოეულისთვის შექმენით ცალკე CSS & JSX ფაილები (არ დაწეროთ რომელიმე კონკრეტული გვერდის კოდი App.css
-ში)
src/
├── mock-data/
│ ├── products.json
│ ├── users.json
├── shared/
│ ├── Header.jsx
│ ├── Footer.jsx
This is about writing clean CSS for group projects.
Since we're gonna work as a team, it's important to have consistent base styles that everyone will use. So our UI will look the same regardless of who wrote the CSS code. There will not be differences between Student A's button and Student B's button. They will share common class names and CSS values.
One student writes all these values based on the design at the start of the project, pushes to Github. Others always use these CSS variables and utitlity classes for their JSX components.
border-radius
(in px
)ამ პროექტში სტილისთვის გამოვიყენებთ SASS extension-ს.
https://lh6.googleusercontent.com/ju5_IzrOI2kRZBKC1o9fnPRtbUNhL2OygWs53l641VIpwk3_IGXuYsxl7GAY7yM-WLRZX-khm13imunc5jppXvanQ5iVx_XF20-6xUC30IyrFkIICl6uBQsOWH06aJ7Kcqq1vOuq2g=w100-h99 | |
https://lh4.googleusercontent.com/-MdVn-A0O-zxy3op3kjKwI_vocbe_m8MlYF--BkRvT3Le4vOg2CgTdRdMr8PFPVBVlJTeuIGX0z6hE_xxEFKh9_yZmxarDytGQ3Id9UsHl3EIlyR8iyhwQACenACjqpbpDsnkPYsdw=w100-h99 | |
https://lh3.googleusercontent.com/ezIBr9yjuVHBXTqjLuQ9VTuuVlgSYmUwD1rnKf4W2Uy4QxwEPn6aWhK6BAwjljHKWHkob9K0xKuT7e_KcggxlcH2-pQ_8OOgKgjlRXKeHUlocr_IwjnWdAErIH7MsOdljfgCngXoew=w100-h99 | |
https://lh5.googleusercontent.com/AevdwP8KyA4Ve6JyoQYD_isLobq7-95CRTxTlteOfdaGhDYJFVRL3hvOgpIfSKzEhMZcJC1WJmu6U_e7vb_obZyv-rXcCcRKDsbWKZpWuF02IwPXfk_vrlIBuLNIF9VMhdQlXxva9g=w100-h99 | |
https://lh4.googleusercontent.com/JrPp0dxA0b5c1CjHH-28juJDBma3kylfr_4JIfGV1ENLiocdaoXSkHzGPTeRFj4xRInp8aii7nxrhC6GlrmYbMEOVKNXkCubvJxAqkpPbnEiFgHLIooDccbLWZd364gMHeeLkMwsig=w100-h99 | |
https://lh4.googleusercontent.com/MRUCJNFA-EGH9L44gunbdCYA4vS8yoyAA1z9L2DNFO0rTDl95DFksGyosupecxH1JmZ980O-dnkmfkxi |
import requests | |
from pprint import pprint | |
from os import getenv | |
API_URL = 'https://osu.ppy.sh/api/v2' | |
TOKEN_URL = 'https://osu.ppy.sh/oauth/token' | |
def get_token(): | |
data = { | |
'client_id': getenv('CLIENT_ID'), |