Skip to content

Commit

Permalink
fix: naming
Browse files Browse the repository at this point in the history
  • Loading branch information
abtx committed Aug 11, 2023
1 parent 1a686c5 commit f9fd46f
Show file tree
Hide file tree
Showing 10 changed files with 66 additions and 65 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
/* GLOSSARY TERM CARD */

/* Wrapper */

.glossary-term__card {
display: flex;
flex-direction: column;
Expand Down Expand Up @@ -69,59 +67,6 @@
animation: slideRight 0.5s ease-in-out;
}

.glossary-term__page {
display: grid;
grid-template-columns: 3fr 1fr;
}

.glossary-term__article {
display: flex;
flex-direction: column;
gap: 2rem;
padding: 4rem 1.5rem;
}

.glossary-term__content {
display: flex;
flex-direction: column;
gap: 2rem;
padding: 0 4rem 4rem 0;
}

.glossary-term__aside {
display: flex;
flex-direction: column;
padding: 1.5rem;
background-color: var(--nu10);
border: 1px solid var(--border-light);
border-radius: 8px;
height: fit-content;
}

.glossary-term__header {
display: flex;
align-items: baseline;
gap: 0.5rem;
}


@media (max-width: 1080px) {
.glossary-term__page {
grid-template-columns: 1fr;
}
.glossary-term__content {
padding: 1.5rem;
}
.glossary-term__aside {
order: -1;
margin: 0;
}
.glossary-term__content,
.glossary-term__aside {
margin-top: 1.5rem;
}
}

@keyframes slideRight {
50% {
transform: translateX(5px);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from "react";
import { GlossaryTermType } from "./GlossarySearch";
import "./GlossaryTerm.css";
import { GlossaryTermType } from "./index";
import "./GlossaryCard.css";
import ArrowIcon from "../icons/ArrowIcon";
import BookIcon from "../icons/BookIcon";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import terms from "./glossaryTerms.json";
import "./GlossarySearch.css";
import SearchIcon from "../icons/SearchIcon";
import useSearch from "../utils/UseSearch";
import GlossaryTerm from "./GlossaryTerm";
import GlossaryTerm from "./GlossaryCard";
import Kbd from "../Kbd";

type GlossaryPageSection = {
Expand Down
54 changes: 54 additions & 0 deletions src/components/GlossaryTermPage/GlossaryTermPage.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
/* GLOSSARY TERM PAGE */

.glossary-term__page {
display: grid;
grid-template-columns: 3fr 1fr;
}

.glossary-term__article {
display: flex;
flex-direction: column;
gap: 2rem;
padding: 4rem 1.5rem;
}

.glossary-term__content {
display: flex;
flex-direction: column;
gap: 2rem;
padding: 0 4rem 4rem 0;
}

.glossary-term__aside {
display: flex;
flex-direction: column;
padding: 1.5rem;
background-color: var(--nu10);
border: 1px solid var(--border-light);
border-radius: 8px;
height: fit-content;
}

.glossary-term__header {
display: flex;
align-items: baseline;
gap: 0.5rem;
}


@media (max-width: 1080px) {
.glossary-term__page {
grid-template-columns: 1fr;
}
.glossary-term__content {
padding: 1.5rem;
}
.glossary-term__aside {
order: -1;
margin: 0;
}
.glossary-term__content,
.glossary-term__aside {
margin-top: 1.5rem;
}
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from "react";
import { GlossaryTermType } from "../GlossarySearch/GlossarySearch";
import { GlossaryTermType } from "../GlossarySearch";
import BookIcon from "../icons/BookIcon";

const GlossaryTermPageAside = ({ term }: { term: GlossaryTermType }) => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from "react";
import { GlossaryTermType } from "../GlossarySearch/GlossarySearch";
import { GlossaryTermType } from "../GlossarySearch";

const GlossaryTermPageContent = ({ term }: { term: GlossaryTermType }) => (
<div className="glossary-term__content">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import React, { ReactElement } from "react";

import "./GlossaryTermPage.css";

const GlossaryTermPage = ({
children,
}: {
Expand Down
2 changes: 1 addition & 1 deletion src/pages/glossary.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from "react";
import PageLayout from "../components/PageLayout";
import GlossarySearch from "../components/GlossarySearch/GlossarySearch";
import GlossarySearch from "../components/GlossarySearch";

const Finops = () => {
return (
Expand Down
8 changes: 4 additions & 4 deletions src/pages/glossary/finops.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import React from "react";
import PageLayout from "../../components/PageLayout";
import GlossaryTermPageIntro from "../../components/GlossaryTerm/GlossaryTermPageIntro";
import GlossaryTermPage from "../../components/GlossaryTerm/GlossaryTermPage";
import GlossaryTermPageIntro from "../../components/GlossaryTermPage/GlossaryTermPageIntro";
import GlossaryTermPage from "../../components/GlossaryTermPage";
import terms from "../../components/GlossarySearch/glossaryTerms.json";
import GlossaryTermPageAside from "../../components/GlossaryTerm/GlossaryTermPageAside";
import GlossaryTermPageContent from "../../components/GlossaryTerm/GlossaryTermPageContent";
import GlossaryTermPageAside from "../../components/GlossaryTermPage/GlossaryTermPageAside";
import GlossaryTermPageContent from "../../components/GlossaryTermPage/GlossaryTermPageContent";

const Finops = () => {
const finops = terms.filter((term) => term.key === "FinOps")[0];
Expand Down

0 comments on commit f9fd46f

Please sign in to comment.