Skip to content

Commit

Permalink
feat: create projects page
Browse files Browse the repository at this point in the history
  • Loading branch information
LaercioSR committed Sep 10, 2024
1 parent 63680cc commit 73c7798
Show file tree
Hide file tree
Showing 7 changed files with 83 additions and 14 deletions.
22 changes: 17 additions & 5 deletions next.config.mjs
Original file line number Diff line number Diff line change
@@ -1,11 +1,23 @@
/** @type {import('next').NextConfig} */
const nextConfig = {
webpack(config) {
config.module.rules.push({
test: /\.svg$/i,
issuer: /\.[jt]sx?$/,
use: ["@svgr/webpack"],
});
const fileLoaderRule = config.module.rules.find((rule) =>
rule.test?.test?.(".svg"),
);

config.module.rules.push(
{
...fileLoaderRule,
test: /\.svg$/i,
resourceQuery: /url/, // *.svg?url
},
{
test: /\.svg$/i,
issuer: fileLoaderRule.issuer,
resourceQuery: { not: [...fileLoaderRule.resourceQuery.not, /url/] },
use: ["@svgr/webpack"],
},
);

return config;
},
Expand Down
9 changes: 2 additions & 7 deletions src/app/assets/icons/arrow-left.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 3 additions & 1 deletion src/app/components/Header/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ interface HeaderProps {

export default function Header({ hasBackButton }: HeaderProps) {
return (
<nav className={styles.header}>
<nav
className={`${styles.header} ${hasBackButton ? styles["header--transparent"] : ""}`}
>
<div className={styles["nav-wrapper"]}>
<ul className={styles["header-side_left"]}>
{hasBackButton && (
Expand Down
4 changes: 4 additions & 0 deletions src/app/components/Header/styles.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@
background-color: var(--home);
}

.header--transparent {
background-color: transparent;
}

.nav-wrapper {
display: flex;
justify-content: space-between;
Expand Down
37 changes: 36 additions & 1 deletion src/app/i18n/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,42 @@
}
},
"data": {
"projects": {},
"formation": {
"": {
"institution": {
"label": ""
},
"course": {
"label": ""
}
}
},
"experience": {
"": {
"institution": {
"label": ""
},
"position": {
"label": ""
},
"location": {
"label": ""
},
"description": {
"label": ""
}
}
},
"projects": {
"": {
"title": {
"label": ""
},
"description": {
"label": ""
}
}
},
"presentations": {
"masterChefEcomp": {
"title": {
Expand Down
7 changes: 7 additions & 0 deletions src/app/projects/page.module.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
.projects {
width: 100%;
}

.projects-main {
min-height: 100vh;
}
14 changes: 14 additions & 0 deletions src/app/projects/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
"use client";
import Footer from "../components/Footer";
import Header from "../components/Header";
import styles from "./page.module.css";

export default function Projects() {
return (
<main className={styles.projects}>
<Header hasBackButton />
<section className={styles["projects-main"]}></section>
<Footer />
</main>
);
}

0 comments on commit 73c7798

Please sign in to comment.