diff --git a/.eslintrc.json b/.eslintrc.json new file mode 100644 index 0000000..1b52cd0 --- /dev/null +++ b/.eslintrc.json @@ -0,0 +1,20 @@ +{ + "env": { + "browser": true, + "es2021": true + }, + "extends": "airbnb-base", + "parserOptions": { + "ecmaVersion": 12, + "sourceType": "module" + }, + "rules": { + "quotes": "off", + "indent": "off", + "no-console": "off", + "no-use-before-define": "off", + "no-alert": "off", + "no-restricted-globals": "off", + "quote-props": "off" + } +} diff --git a/data.json b/data.json new file mode 100644 index 0000000..7880b34 --- /dev/null +++ b/data.json @@ -0,0 +1,30 @@ +{ + "users": [ + { + "id": 1, + "firstName": "Никита", + "lastName": "Потапов", + "birthday": "17.02.2003", + "address": "г. Ульяновск", + "username": "nspotapov", + "password": "admin", + "avatarImg": "korgi.jpg" + } + ], + "posts": [ + { + "id": 1, + "userId": 1, + "createdDateTime": "2020-09-17T09:15:27+00:00", + "text": "

Lorem, ipsum dolor sit amet consectetur adipisicing elit.

Perferendis odit quaerat reprehenderit. Ea harum officiis, ipsum numquam quis id eaque ducimus praesentium inventore error, voluptas, aut consequuntur sed libero sit.

", + "img": null + }, + { + "id": 2, + "userId": 1, + "createdDateTime": "2020-09-20T14:45:27+00:00", + "text": "

Lorem, ipsum dolor sit amet consectetur adipisicing elit.

Perferendis odit quaerat reprehenderit. Ea harum officiis, ipsum numquam quis id eaque ducimus praesentium inventore error, voluptas, aut consequuntur sed libero sit.

", + "img": "./static/img/korgi.jpg" + } + ] +} diff --git a/feed.html b/feed.html index 6307e3a..3b8a7c6 100644 --- a/feed.html +++ b/feed.html @@ -13,10 +13,11 @@ - Неконтакте + + Новости - +
-
+
-
-
-
- - -