Skip to content

Commit

Permalink
feat: new minimalist look
Browse files Browse the repository at this point in the history
  • Loading branch information
ajmeese7 committed Nov 8, 2024
1 parent fb7c156 commit f6d356a
Show file tree
Hide file tree
Showing 8 changed files with 26 additions and 355 deletions.
43 changes: 22 additions & 21 deletions src/components/Footer.tsx
Original file line number Diff line number Diff line change
@@ -1,35 +1,36 @@
import React from "react";
import styled from "styled-components";
import { Text, Box, Flex } from "rebass/styled-components";
import { Box, Flex } from "rebass/styled-components";
import { Fade } from "react-awesome-reveal";
import SocialLink from "./SocialLink";
import Link from "./Link";
import { useSiteQuery } from "../queries/useSiteQuery";

const Footer = () => {
const { companyName, socialLinks } = useSiteQuery();
const { socialLinks } = useSiteQuery();

return (
<Box p={[2, 3]} backgroundColor="secondaryAccent" id="footer" as="footer">
<Box
p={[2, 3]}
backgroundColor="darkPrimary"
id="footer"
as="footer"
style={{
position: "absolute",
bottom: 0,
left: 0,
right: 0,
width: "fit-content",
margin: "auto",
}}
>
<FooterContainer>
<Fade direction="left" triggerOnce>
<Text fontSize={[2, 3]} color="lightPrimary">
<span>{${companyName} - Powered by `}</span>
<Link href="https://github.com/meese-enterprises" dark>Open Source</Link>{" "}
<span role="img" aria-label="heart">
❤️
</span>
</Text>
<Fade direction="right" triggerOnce cascade damping={0.5}>
{socialLinks.map((sl) => (
<Box mx={[2, 3]} fontSize={[4, 5]} key={sl.name}>
<SocialLink {...sl} />
</Box>
))}
</Fade>
<Flex>
<Fade direction="right" triggerOnce cascade damping={0.5}>
{socialLinks.map((sl) => (
<Box mx={[2, 3]} fontSize={[4, 5]} key={sl.name}>
<SocialLink {...sl} />
</Box>
))}
</Fade>
</Flex>
</FooterContainer>
</Box>
);
Expand Down
15 changes: 1 addition & 14 deletions src/components/Header.tsx
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
import React from "react";
import Headroom from "react-headroom";
import { Box, Link as RebassLink, Flex, Image } from "rebass/styled-components";
import { Link as RebassLink, Flex, Image } from "rebass/styled-components";
import styled from "styled-components";
import Link from "./Link";
import { useHelmetQuery } from "../queries/useHelmetQuery";
import { useSiteQuery } from "../queries/useSiteQuery";
import { SECTION } from "../utils/constants";
import { getSectionHref } from "../utils/helpers";

// TODO: Add a light/dark mode toggle
const Header = () => {
const { logo } = useHelmetQuery();
const { companyName } = useSiteQuery();
Expand All @@ -33,17 +31,6 @@ const Header = () => {
/>
</Flex>
</RebassLink>
<Flex mr={[0, 3, 5]}>
{(Object.keys(SECTION) as Array<keyof typeof SECTION>)
.filter((id) => id !== "home")
.map((id) => (
<Box key={id} ml={[2, 3]} fontSize={[2, 3]}>
<Link href={`#${id}`} tabIndex={0} className="navSection">
{SECTION[id]}
</Link>
</Box>
))}
</Flex>
</Flex>
</StyledHeadroom>
);
Expand Down
90 changes: 0 additions & 90 deletions src/sections/About.tsx

This file was deleted.

94 changes: 0 additions & 94 deletions src/sections/Employees.tsx

This file was deleted.

6 changes: 2 additions & 4 deletions src/sections/Landing.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,10 @@ import React, { useEffect } from "react";
import { Text } from "rebass/styled-components";

// Internal imports
import ScrollIcon from "../components/ScrollIcon";
import Footer from "../components/Footer";
import ScrambleLetters from "../utils/scramble";
import Section from "../components/Section";
import { SECTION } from "../utils/constants";
import { getSectionHref } from "../utils/helpers";
import { useLandingPageQuery } from "../queries/useLandingPageQuery";

const LandingPage = () => {
Expand All @@ -21,7 +20,6 @@ const LandingPage = () => {

// Runs after the render, so the DOM elements are available
useEffect(() => {
// TODO: Try to improve the performance and appearance of this on Linux systems
new ScrambleLetters();
}, []);

Expand Down Expand Up @@ -72,7 +70,7 @@ const LandingPage = () => {
{tagline}
</Text>

<ScrollIcon href={`#${getSectionHref(SECTION.about)}`} />
<Footer />
</Section.Container>
);
};
Expand Down
58 changes: 0 additions & 58 deletions src/sections/Projects.tsx

This file was deleted.

Loading

0 comments on commit f6d356a

Please sign in to comment.