Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(Footer): add Footer, EnrichedLink and LangSwitch components #2

Merged
merged 1 commit into from
Dec 14, 2023

Conversation

Lakate
Copy link
Contributor

@Lakate Lakate commented Dec 11, 2023

No description provided.

@@ -74,6 +74,11 @@ task('styles-global', () => {

task('styles-components', () => {
return src([`src/**/*.scss`, `!src/**/__stories__/**/*.scss`, '!src/widget/**/*.scss'])
.pipe(
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the reason for the build problem.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

coold you just include to src node_modules/@gravity-ui/page-constructor/styles/*.scss or it wouldn't work?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it doesn't work

@Lakate Lakate force-pushed the feat/footer branch 2 times, most recently from d3d7657 to 565acad Compare December 11, 2023 16:12
@@ -74,6 +74,11 @@ task('styles-global', () => {

task('styles-components', () => {
return src([`src/**/*.scss`, `!src/**/__stories__/**/*.scss`, '!src/widget/**/*.scss'])
.pipe(
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

coold you just include to src node_modules/@gravity-ui/page-constructor/styles/*.scss or it wouldn't work?

const SOCIAL_ICON_SIZE = 24;

export interface EnrichedLinkProps extends ClassNameProps {
// Text of link
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this comments are redundant

onClick,
};

if (noreferrer) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should add it anyway if we got blank===true

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

}

export interface GroupLinkColumn {
// Title for column
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same about comments

@@ -0,0 +1,37 @@
import type {ClassNameProps} from '@gravity-ui/page-constructor';
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could we rename file to models.ts?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

@@ -0,0 +1,5 @@
$footerMarginXS: 12px;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not necessary now, but I think It would be better to switch to css native variables completely

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

rightItems?: EnrichedLinkProps[];
// Copyright text
copyright?: string;
// Params for lang switch component
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think all of this comments are redundant

export type FooterType = 'simple' | 'default';

export type FooterMedia = {
// What we want to show
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think all of this comments are redundant

@Lakate Lakate merged commit 1e00477 into main Dec 14, 2023
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants