Skip to content

Comments

Main page#1

Open
debatableoutcome wants to merge 53 commits intomasterfrom
header
Open

Main page#1
debatableoutcome wants to merge 53 commits intomasterfrom
header

Conversation

@debatableoutcome
Copy link
Owner

No description provided.


<script setup>
const headerData = {
logo: '/icons/logo.svg',
Copy link
Collaborator

Choose a reason for hiding this comment

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

logo, select, close можно вынести из данных в Header

</template>

<script setup>
import { ref } from 'vue';
Copy link
Collaborator

Choose a reason for hiding this comment

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

Можно отказаться от import

const props = defineProps({
logo: String,
select: String,
close: String,
Copy link
Collaborator

Choose a reason for hiding this comment

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

logo, select, close можно убрать из props

<img :src="logo" alt="Logo" />
</div>

<nav class="header__nav-desktop">
Copy link
Collaborator

Choose a reason for hiding this comment

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

Завернуть nav и button в обертку, button вынести из nav

Обертка будет меню на мобилке (через transfrom: translateX)


@include media-breakpoint-up(md) {
padding-top: rem(62);
height: rem(68);
Copy link
Collaborator

Choose a reason for hiding this comment

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

Лучше отказаться от фиксированный высоты и добиваться нужной высоты за счет padding

};
});
onMounted(() => {
console.log(props.text);
Copy link
Collaborator

Choose a reason for hiding this comment

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

console.log


border-radius: rem(48);
height: rem(40);
background-color: $color-white;

This comment was marked as resolved.

'Helvetica Neue', Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji',
'Segoe UI Symbol' !default;

$font-family-monospace: SFMono-Regular, Menlo, Monaco, Consolas,
Copy link
Collaborator

Choose a reason for hiding this comment

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

Можно убрать, не используется

$grid-breakpoints: (
sm: 0,
md: 430px,
lg: 1440px,
Copy link
Collaborator

Choose a reason for hiding this comment

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

1024

@import 'utils/index';

:root {
--color-neon-green: #b9ff66;
Copy link
Collaborator

Choose a reason for hiding this comment

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

Перенести в colors.scss

font-size: 16px;

@media (max-width: 430px) {
font-size: 14px;
Copy link
Collaborator

Choose a reason for hiding this comment

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

Можно попробовать написать цикл с проверками

// html {
// font-size: 16px;

// @media (max-width: 430px) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Остался закомментированный код

.swiper-pagination-bullet {
// margin: 0 !important;
// background-color: $color-neon-green !important;
// opacity: 1 !important;
Copy link
Collaborator

Choose a reason for hiding this comment

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

Остался закомментированный код

@@ -0,0 +1,13 @@
// $grid-breakpoints: (
Copy link
Collaborator

Choose a reason for hiding this comment

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

Остался закомментированный код

@include text-header;
@include media-breakpoint-up(lg) {
display: block;
margin-top: rem(4);
Copy link
Collaborator

Choose a reason for hiding this comment

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

2 момента:

  1. Почему 4px, если на макетах по 6.5px?
  2. Можно отказаться от margin-top и задать для &__wrapper align-items: center. Судя по макетам, текст выравнивается по центру.

}
&--icon-right {
#{$b}__wrapper {
display: flex;
Copy link
Collaborator

Choose a reason for hiding this comment

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

Дублирование, можно отказаться от части свойств

top: rem(-32);
left: 0;
color: $color-black;
padding: 0 rem(4);
Copy link
Collaborator

Choose a reason for hiding this comment

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

Зачем нужен padding?

[`input--${props.type}`]: props.type,
'input--error': props.required && !props.placeholder,
'input--focused': focused.value,
'input--filled': Boolean(props.placeholder),
Copy link
Collaborator

Choose a reason for hiding this comment

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

Не совсем понял для чего это нужно

<div class="intro">
<h2 v-if="title" class="intro__title" v-html="title"></h2>
<div v-if="titleUpper || titleLower" class="intro__header">
<h2 class="intro__title-upper">
Copy link
Collaborator

Choose a reason for hiding this comment

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

v-if

@@ -0,0 +1,51 @@
<template>
<div class="action" :class="classes">
Copy link
Collaborator

Choose a reason for hiding this comment

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

Убрать div, вместо него заменить на это:
<AtomsLink v-if="href" :href="href" :class="classes">

id: String,
name: String,
type: { type: String, default: 'text' },
placeholder: { type: String, default: '' },
Copy link
Collaborator

Choose a reason for hiding this comment

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

Убрать default

@m-vngrdv m-vngrdv changed the title Header Main page Dec 11, 2024
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.

2 participants