Skip to content

Commit cc97d98

Browse files
authored
Merge pull request #5 from spb-frontend/meetups
Meetups
2 parents 2ac4e03 + e808c09 commit cc97d98

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

72 files changed

+2636
-815
lines changed

.babelrc

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"presets": ["next/babel"],
3+
"plugins": ["babel-plugin-styled-components"]
4+
}

.env.local.example

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
# http://dev.timepad.ru/api/oauth/
2-
TIMEPAD_TOKEN=
1+
CONTENTFUL_TOKEN=
2+
CONTENTFUL_SPACE_ID=

.eslintrc.js

+36-2
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ module.exports = {
99
ecmaVersion: 'latest',
1010
sourceType: 'module',
1111
},
12-
plugins: ['@typescript-eslint', 'react', 'unused-imports'],
12+
plugins: ['@typescript-eslint', 'react', 'unused-imports', 'import'],
1313
extends: [
1414
'eslint:recommended',
1515
'plugin:@typescript-eslint/recommended',
@@ -19,14 +19,48 @@ module.exports = {
1919
],
2020
overrides: [{ files: ['*.ts', '*.tsx'] }],
2121
rules: {
22-
indent: 'off',
22+
indent: ['warn', 2],
23+
semi: 'warn',
24+
quotes: ['warn', 'single'],
25+
2326
'@typescript-eslint/indent': 'off',
2427
'no-unused-vars': 'off',
28+
'eol-last': 'warn',
29+
'no-multiple-empty-lines': ['warn', { max: 1, maxEOF: 0 }],
2530
'@typescript-eslint/no-unused-vars': 'off',
2631
'unused-imports/no-unused-imports': 'error',
2732
'unused-imports/no-unused-vars': [
2833
'warn',
2934
{ vars: 'all', varsIgnorePattern: '^_', args: 'after-used', argsIgnorePattern: '^_' },
3035
],
36+
'import/order': ['warn', {
37+
'newlines-between': 'never',
38+
groups: [
39+
'builtin',
40+
'external',
41+
'internal',
42+
'parent',
43+
'sibling',
44+
'index'
45+
],
46+
pathGroups: [
47+
{
48+
pattern: '@/**',
49+
group: 'internal',
50+
position: 'after'
51+
}
52+
],
53+
pathGroupsExcludedImportTypes: ['internal', 'external', 'builtins'],
54+
alphabetize: {
55+
order: 'asc',
56+
caseInsensitive: true
57+
}
58+
}
59+
],
3160
},
61+
settings: {
62+
react: {
63+
version: 'detect'
64+
}
65+
}
3266
};

.github/workflows/main.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@ jobs:
3333
3434
- name: Build and static exports 🏗️
3535
env:
36-
TIMEPAD_TOKEN: ${{ secrets.TIMEPAD_TOKEN }}
36+
CONTENTFUL_TOKEN: ${{ secrets.CONTENTFUL_TOKEN }}
37+
CONTENTFUL_SPACE_ID: ${{ secrets.CONTENTFUL_SPACE_ID }}
3738
run: |
3839
yarn typecheck
3940
yarn build

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
logs
2+
.idea
23
*.log
34
pids
45
*.pid

keys.js

-6
This file was deleted.

package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -24,19 +24,18 @@
2424
],
2525
"dependencies": {
2626
"classnames": "^2.3.1",
27-
"contentful": "^9.1.9",
27+
"contentful": "^10.3.1",
2828
"isomorphic-fetch": "^3.0.0",
2929
"next": "^13.4.2",
3030
"react": "^18.2.0",
3131
"react-dom": "^18.2.0",
3232
"react-icons": "^4.8.0",
33-
"styled-components": "^5.3.10"
33+
"styled-components": "^6.0.3"
3434
},
3535
"devDependencies": {
3636
"@types/isomorphic-fetch": "^0.0.35",
3737
"@types/node": "^17.0.17",
3838
"@types/react": "^18.2.6",
39-
"@types/styled-components": "^5.1.26",
4039
"@typescript-eslint/eslint-plugin": ">=5.57.0",
4140
"@typescript-eslint/parser": ">=5.57.0",
4241
"autoprefixer": "^10.4.14",
@@ -48,6 +47,7 @@
4847
"eslint-plugin-react": "^7.32.2",
4948
"eslint-plugin-react-hooks": "^4.6.0",
5049
"eslint-plugin-unused-imports": "^2.0.0",
50+
"eslint-plugin-import": "^2.27.5",
5151
"husky": "^8.0.1",
5252
"lint-staged": "^13.2.2",
5353
"next-images": "^1.8.5",

public/images/header.jpeg

77.1 KB
Loading
177 KB
Loading
815 KB
Loading
35 KB
Loading
107 KB
Loading
113 KB
Loading
308 KB
Loading

src/components/Block/Block.tsx

-7
This file was deleted.

src/components/Block/styles.module.css

-15
This file was deleted.
+76-55
Original file line numberDiff line numberDiff line change
@@ -1,56 +1,77 @@
11
import React from 'react';
2-
import { BlockTitle } from '../BlockTitle/BlockTitle';
3-
import { Content } from '../Content/Content';
4-
import { Block } from '../Block/Block';
5-
import styles from './styles.module.css';
6-
7-
export const BlockAbout = () => {
8-
return (
9-
<section id="about" className={styles.blockAbout}>
10-
<Block>
11-
<Content>
12-
<BlockTitle>О нас</BlockTitle>
13-
14-
<div className={styles.aboutDesc}>
15-
<p>
16-
Привет! Мы — <strong>SPB Frontend</strong>, сообщество{' '}
17-
<dfn
18-
title={
19-
'Фронтенд (англ. frontend) — интерфейс сайтов и веб-приложений в контексте веб-разработки. ' +
20-
'В общем случае фронтенд это клиентская часть программного обеспечения в модели «клиент — сервер». '
21-
}
22-
>
23-
фронтенд-разработчиков
24-
</dfn>{' '}
25-
в Санкт-Петербурге. Мы объединяем специалистов, чтобы говорить о фронтенде, веб-разработке и об IT в
26-
целом. Мы помогаем новичкам и профессионалам обмениваться опытом, узнавать новое, устанавливать связи в
27-
профессиональной среде и получать вдохновение для своих достижений.
28-
</p>
29-
30-
{/* <p>
31-
<strong>SPB Frontend</strong> — сообщество петербургских фронтенд-разработчиков. Мы создаем теплую и
32-
дружественную атмосферу для обмена опытом и знаний в сфере разработки веб-интерфейсов. Наши встречи найдут
33-
полезными как новички, так и опытные разработчики. Мы помогаем специалистам обмениваться знаниями,
34-
налаживать профессиональные связи, вдохновляться и мотивироваться.
35-
</p> */}
36-
37-
<p>
38-
С 2014-го года мы проводим{' '}
39-
<dfn
40-
title={
41-
'Митап (англ. meet up — встречаться) — неформальная встреча людей и сообществ со схожими ' +
42-
'интересами, хобби и профессиями для обсуждения общих вопросов и обмена навыками и опытом'
43-
}
44-
>
45-
митапы
46-
</dfn>
47-
, где специалисты разного уровня рассказывают о своём опыте. Мы открыты для всех желающих, следите за
48-
нашими новостями в <a href="https://t.me/spb_frontend">Telegram</a> и{' '}
49-
<a href="https://twitter.com/spb_frontend">Twitter</a>, чтобы не пропустить анонсы предстоящих событий.
50-
</p>
51-
</div>
52-
</Content>
53-
</Block>
54-
</section>
55-
);
56-
};
2+
import { BlockTitle } from '@/components//BlockTitle/BlockTitle';
3+
import { ContentBlock } from '@/components/ContentBlock/ContentBlock';
4+
import { TELEGRAM, TWITTER } from '@/constants/urls';
5+
import { Container, DetailedInfo } from './styled';
6+
7+
export const BlockAbout = () => (
8+
<Container id="about">
9+
<ContentBlock>
10+
<BlockTitle>О нас</BlockTitle>
11+
12+
<DetailedInfo>
13+
<p>
14+
Привет! Мы — <strong>SPB Frontend</strong>, сообщество{' '}
15+
<dfn
16+
title={
17+
'Фронтенд (англ. frontend) — интерфейс сайтов и веб-приложений в контексте веб-разработки. ' +
18+
'В общем случае фронтенд это клиентская часть программного обеспечения в модели «клиент — сервер». '
19+
}
20+
>
21+
фронтенд-разработчиков
22+
</dfn>{' '}
23+
в Санкт-Петербурге. Мы объединяем специалистов, чтобы говорить о фронтенде, веб-разработке и об IT в
24+
целом. Мы помогаем новичкам и профессионалам обмениваться опытом, узнавать новое, устанавливать связи в
25+
профессиональной среде и получать вдохновение для своих достижений.
26+
</p>
27+
28+
<p>
29+
С 2014-го года мы проводим{' '}
30+
<dfn
31+
title={
32+
'Митап (англ. meet up — встречаться) — неформальная встреча людей и сообществ со схожими ' +
33+
'интересами, хобби и профессиями для обсуждения общих вопросов и обмена навыками и опытом'
34+
}
35+
>
36+
митапы
37+
</dfn>
38+
, где специалисты разного уровня рассказывают о своём опыте. Мы открыты для всех желающих, следите за
39+
нашими новостями в <a href={TELEGRAM}>Telegram</a> и{' '}
40+
<a href={TWITTER}>Twitter</a>, чтобы не пропустить анонсы предстоящих событий.
41+
</p>
42+
</DetailedInfo>
43+
44+
{/*<CardsWrapper>
45+
<Card>
46+
<Icon src={mailIcon} alt="Email icon" />
47+
<span>Если хотите <strong>выступить с докладом</strong>, напишите письмо на <Link href={`mailto:${EMAIL}`}>{EMAIL}</Link>.</span>
48+
</Card>
49+
50+
<Card>
51+
<Icon src={breakfastIcon} alt="Breakfast icon" />
52+
<span>Еще по четвергам теперь бывают фронтенд-завтраки в центре города.</span>
53+
</Card>
54+
55+
<Card>
56+
<Icon src={tgIcon} alt="Telegram icon" />
57+
<span>Также, у нас есть Телеграм-чат, где мы общаемся и задаём вопросы: <Link href={TELEGRAM_CHAT} target="_blank">SPB&nbsp;Frontend</Link>.</span>
58+
</Card>
59+
60+
<Card>
61+
<Icon src={drinkupIcon} alt="Drinkup icon" />
62+
<span>Иногда мы проводим дринкапы: встречи в барах без докладов, просто чтобы пообщаться друг с другом, познакомиться, поговорить о наболевшем.</span>
63+
</Card>
64+
65+
<Card>
66+
<Icon src={shareIcon} alt="Share icon" />
67+
<span>Чтобы следить за новыми событиями сообщества, подписывайтесь на <Link href={TELEGRAM} target="_blank">Телеграм канал</Link> или <Link href={TWITTER} target="_blank">Твиттер</Link>.</span>
68+
</Card>
69+
70+
<Card>
71+
<Icon src={partnerIcon} alt="Partner icon" />
72+
<span>Если хотите предложить спонсорство или площадку (от 100 человек), пишите нам на почту <Link href={`mailto:${EMAIL}`}>{EMAIL}</Link>.</span>
73+
</Card>
74+
</CardsWrapper>*/}
75+
</ContentBlock>
76+
</Container>
77+
);

src/components/BlockAbout/bg-tilda.svg

-5
This file was deleted.
Loading
Loading
Loading
+3
Loading
Loading

0 commit comments

Comments
 (0)