Как создать адаптивную страницу «О нас»Html

Программисты Html
Ответить
Anonymous
 Как создать адаптивную страницу «О нас»

Сообщение Anonymous »

Создание адаптивной страницы «О нас» предполагает разработку макета, который легко адаптируется к экранам разных размеров: от настольных компьютеров до планшетов и смартфонов. Начните со структурирования страницы с помощью семантических элементов HTML, таких как , и , чтобы логически организовать контент. Включите ключевые разделы, такие как миссия компании, видение, члены команды и история, используя заголовки и абзацы для удобства чтения. Используйте CSS Flexbox или Grid, чтобы сделать макет гибким, и применяйте медиа-запросы для настройки размеров шрифта, изображений и интервалов для небольших экранов. Добавляйте изображения и профили членов команды с гибкими размерами, чтобы они масштабировались пропорционально. Повысьте удобство работы пользователей с помощью четкой навигации, единообразного фирменного оформления и визуально привлекательных элементов дизайна, гарантируя, что страница останется легко читаемой и визуально сбалансированной на всех устройствах.











About Us


body {
font-family: 'Segoe UI', sans-serif;
overflow-x: hidden;
}

section {
position: relative;
min-height: 100vh;
display: flex;
align-items: center;
color: #fff;
}

.bg-slide {
position: absolute;
inset: 0;
background-size: cover;
background-position: center;
transform: translateY(0);
transition: transform 0.1s linear;
z-index: -1;
}

.overlay {
position: absolute;
inset: 0;
background: rgba(0, 0, 0, 0.55);
z-index: -1;
}

.reveal {
opacity: 0;
transform: translateY(60px);
transition: all 0.8s ease;
}

.reveal.active {
opacity: 1;
transform: translateY(0);
}

img {
max-width: 100%;
border-radius: 12px;
}

@media (max-width: 768px) {
section {
text-align: center;
}
}










About Us

Division for Sustainable Development Goals with unbelivable ideas and ctreativity.

Изображение









Our Mission

The Division for Sustainable Development Goals (DSDG) in the United Nations Department of
Economic and Social Affairs (UNDESA) acts as the Secretariat for the SDGs, providing substantive
support and capacity-building for the goals and their related thematic issues, including water,
energy, climate, oceans, urbanization, transport, science and technology, the Global Sustainable
Development Report (GSDR), partnerships and Small Island Developing States. DSDG plays a key
role in the evaluation of UN systemwide implementation of the 2030 Agenda and on advocacy and
outreach activities relating to the SDGs.

Изображение









POLICY ANALISYS

The Division's work provides analytical inputs for intergovernmental deliberations on
sustainable development, including through its science-policy interface. The Division leads the
drafting of Secretary-Generals reports on sustainable development topics. It contributes
studies and analytical inputs to the review of major conferences related to sustainable
development. For this purpose, it undertakes reviews of assessments of sustainable development
challenges. The Division has led the pilot versions of the Global Sustainable Development
Report, which aims to strengthen the science-policy interface at the HLPF. It investigates
integrated policy responses in a number of priority areas such as sustainable development goals,
technology facilitation, green economy, sustainable transport, sustainable cities, oceans,
climate change in the context of sustainable development and the nexus among energy, food and
water. The Division also co-hosts - on behalf of DESA - the secretariat for the Technology
Facilitation Mechanism, including its annual multi-stakeholder forum on Science, Technology and
Innovation for SDGs (STI Forum), together with UNEP.s

Изображение









function revealOnScroll() {
document.querySelectorAll('.reveal').forEach(el => {
const top = el.getBoundingClientRect().top;
const height = window.innerHeight;
if (top < height - 100) {
el.classList.add('active');
}
});
}

function slideBackground() {
document.querySelectorAll('.bg-slide').forEach(bg => {
const speed = 0.3;
const offset = window.pageYOffset;
bg.style.transform = `translateY(${offset * speed}px)`;
});
}

window.addEventListener('scroll', () => {
revealOnScroll();
slideBackground();
});

revealOnScroll();








Подробнее здесь: https://stackoverflow.com/questions/798 ... nsive-page
Ответить

Быстрый ответ

Изменение регистра текста: 
Смайлики
:) :( :oops: :roll: :wink: :muza: :clever: :sorry: :angel: :read: *x)
Ещё смайлики…
   
К этому ответу прикреплено по крайней мере одно вложение.

Если вы не хотите добавлять вложения, оставьте поля пустыми.

Максимально разрешённый размер вложения: 15 МБ.

Вернуться в «Html»