Skip to content

Commit

Permalink
refactor: reconfigure landmark and content
Browse files Browse the repository at this point in the history
  • Loading branch information
adamalston committed Dec 10, 2023
1 parent f20142d commit 6f914bf
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/App/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,13 @@ export const App = () => {

return isReady ? (
<AppProvider config={config} isMobile={isMobile}>
<div className="app">
<main className="app">
<Toggle />
<Content />
<Buttons />
<Footer />
<Particles />
</div>
</main>
</AppProvider>
) : (
<></>
Expand Down
5 changes: 3 additions & 2 deletions src/components/Content.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,16 @@ const sharedStyles = css`
`;

const C = {
Name: styled.div<{ $theme: Theme }>`
Name: styled.h1<{ $theme: Theme }>`
${sharedStyles};
font-size: 6rem;
margin: 0;
color: ${({ $theme }) => $theme.primaryTextColor};
@media only screen and (max-device-width: 820px) and (-webkit-min-device-pixel-ratio: 2) {
font-size: 4.5rem;
}
`,
Title: styled.div<{ $theme: Theme }>`
Title: styled.h2<{ $theme: Theme }>`
${sharedStyles};
font-size: 3.5rem;
margin: 4rem 0;
Expand Down
5 changes: 4 additions & 1 deletion src/components/Footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,11 @@ const F = {
`,
Link: styled.a<{ $theme: Theme }>`
transition: color 0.5s linear;
text-decoration: none;
color: ${({ $theme }) => $theme.secondaryTextColor};
text-decoration: none;
&:hover {
text-decoration: underline;
}
`,
};

Expand Down
2 changes: 1 addition & 1 deletion src/components/Toggle.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { Moon, Sun } from 'icons';
import { Theme } from 'types';

const T = {
Container: styled.main`
Container: styled.div`
position: fixed;
z-index: 1;
top: 1rem;
Expand Down

0 comments on commit 6f914bf

Please sign in to comment.