Исправил отображение футера на коротких страницах, общие правки стилей

This commit is contained in:
ifraimka committed 2024-05-17 16:43:40 +03:00
1 parent d9433d616b
commit 81d2a009e0
6 files changed
+21 -34

No files matched your search

+17
View File
@@ -56,6 +56,7 @@ a {
} }
.image { .image {
max-width: 100%;
border-radius: 8px; border-radius: 8px;
} }
@@ -69,4 +70,20 @@ header h1 {
font-size: 36px; font-size: 36px;
font-weight: 600; font-weight: 600;
line-height: 44px; line-height: 44px;
margin-top: 0;
}
#root {
display: flex;
min-height: 100vh;
flex-direction: column;
justify-content: flex-start;
#page {
margin-bottom: 2em;
}
#footer {
margin-top: auto;
}
} }
+1 -1
View File
@@ -8,7 +8,7 @@ $bg-image: rgba(0, 0, 0, .75);
$text-primary: black; $text-primary: black;
$text-secondary: white; $text-secondary: white;
$text-card-project: #767676; $text-card-project: white;
$text-card-project-bg: rgba(255, 255, 255, 0.75); $text-card-project-bg: rgba(255, 255, 255, 0.75);
$shadow-primary: rgba(0, 0, 0, 0.25); $shadow-primary: rgba(0, 0, 0, 0.25);
+1 -1
View File
@@ -41,7 +41,7 @@ function Footer({ links = mockLinks, contacts = mockContacts }) {
}, []); }, []);
return ( return (
<footer className="footer"> <footer id="footer">
<div className="logo-container"> <div className="logo-container">
<img className="logo" alt="logo" src={ logo } /> <img className="logo" alt="logo" src={ logo } />
</div> </div>
+1 -1
View File
@@ -1,6 +1,6 @@
@import "../../assets/styles/theme.scss"; @import "../../assets/styles/theme.scss";
.footer { #footer {
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
align-items: center; align-items: center;
+1 -4
View File
@@ -1,7 +1,6 @@
import { Outlet } from "react-router-dom"; import { Outlet } from "react-router-dom";
import { createContext, useEffect } from 'react'; import { createContext, useEffect } from 'react';
import { getProjects } from "../../api";
import useElementOnScreen from '../../lib/useElementOnScreen'; import useElementOnScreen from '../../lib/useElementOnScreen';
import Navbar from '../../components/Navbar'; import Navbar from '../../components/Navbar';
import Footer from '../../components/Footer'; import Footer from '../../components/Footer';
@@ -26,9 +25,7 @@ function Root() {
}, [isVisible]); }, [isVisible]);
return ( return (
<RootContext.Provider <RootContext.Provider value={{ setRef }}>
value={{ setRef }}
>
<Navbar /> <Navbar />
<div id="page"> <div id="page">
<Outlet /> <Outlet />
-27
View File
@@ -10,33 +10,6 @@
.content { .content {
background: $bg-primary; background: $bg-primary;
.block {
margin-bottom: 32px;
h1 {
font-family: Montserrat;
font-size: 36px;
font-weight: 600;
line-height: 44px;
margin-top: 1.5rem;
margin-bottom: 1.5rem;
}
.heading {
display: flex;
justify-content: space-between;
align-items: center;
a {
font-size: 24px;
font-weight: 400;
line-height: 29px;
text-align: right;
color: $text-primary;
}
}
}
} }
} }