Skip to content

Instantly share code, notes, and snippets.

შექმენით node.js-ის სკრიპტი onlineStatus.js.

მოცემულია ობიექტი:

const servers = {
  facebook: [{ username: "turbo-booster", isOnline: false }],
  discord: [
    { username: "mailbox_2", isOnline: true },
 { username: "Leanne", isOnline: false }
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

თითოეული გვერდისთვის შექმენით ცალკე ფოლდერი pages-ში. და თითოეულისთვის შექმენით ცალკე CSS & JSX ფაილები (არ დაწეროთ რომელიმე კონკრეტული გვერდის კოდი App.css-ში)

src/
├── mock-data/
│   ├── products.json
│   ├── users.json
├── shared/
│   ├── Header.jsx
│ ├── Footer.jsx

What is this??

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.

Create VARIABLES for the following:

  • border-radius (in px)

Figma Design

Bluff Grid: Know Me Edition

As a logged-in user

  • I see the homepage:
    • Button to Host a New Game
    • Button to Join a Game
  • Navigation bar with my username and profile picture (as a clickable button) displayed

ზოგადი მოთხოვნები

Design mockup

Figma file

Sass

ამ პროექტში სტილისთვის გამოვიყენებთ SASS extension-ს.

სხვა

@ixtk
ixtk / links.txt
Created June 15, 2021 12:31
Links and titles for some Social Empires images
@ixtk
ixtk / osu-api-v2.py
Last active December 10, 2024 10:37
Python code example of OSU! API v2 usage
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'),