@@ -9,11 +17,10 @@ const ArticleSection = () => {
Veja os últimos artigos postados
-
+
-
Ver mais
diff --git a/frontend/src/components/Navbar/Navbar.tsx b/frontend/src/components/Navbar/Navbar.tsx
index 2acac4b..0d08f52 100644
--- a/frontend/src/components/Navbar/Navbar.tsx
+++ b/frontend/src/components/Navbar/Navbar.tsx
@@ -1,27 +1,27 @@
-import { Link } from 'react-scroll';
import { LuMenu } from "react-icons/lu";
import { useState } from 'react';
-import { Link as RouterLink } from "react-router-dom";
+import { Link } from "react-router-dom";
+import { Link as LinkAnimation } from "react-scroll";
const Navbar = () => {
const [menu, setMenu] = useState(false);
const handleChange = () => {
setMenu(!menu);
- }
+ };
return (
-
+
- Mundo Podcast
+ Mundo Podcast
@@ -30,12 +30,12 @@ const Navbar = () => {
-
diff --git a/frontend/src/components/Podcast/PodcastSection/PodcastSection.tsx b/frontend/src/components/Podcast/PodcastSection/PodcastSection.tsx
index 3f77358..d391b30 100644
--- a/frontend/src/components/Podcast/PodcastSection/PodcastSection.tsx
+++ b/frontend/src/components/Podcast/PodcastSection/PodcastSection.tsx
@@ -13,7 +13,7 @@ const PodcastSection = () => {
Ver mais
diff --git a/frontend/src/pages/Articles/Articles.tsx b/frontend/src/pages/Articles/Articles.tsx
new file mode 100644
index 0000000..029f3b0
--- /dev/null
+++ b/frontend/src/pages/Articles/Articles.tsx
@@ -0,0 +1,24 @@
+import { useEffect, useState } from "react";
+import { articles, IArticle } from "../../utils/article-helper";
+import ArticleGrid from "../../components/Article/ArticleGrid/ArticleGrid";
+
+const Articles = () => {
+ const [articlesData, setArticles] = useState
([]);
+
+ useEffect(() => {
+ setArticles(articles);
+ }, [articlesData]);
+
+ return (
+
+
+
Artigos
+
Aproveite toda nossa biblioteca de artigos
+
+
+
+
+ )
+}
+
+export default Articles
diff --git a/frontend/src/pages/Articles/SingleArticle/SingleArticle.tsx b/frontend/src/pages/Articles/SingleArticle/SingleArticle.tsx
new file mode 100644
index 0000000..fcb1b86
--- /dev/null
+++ b/frontend/src/pages/Articles/SingleArticle/SingleArticle.tsx
@@ -0,0 +1,26 @@
+import { useParams } from "react-router-dom"
+import { articles } from "../../../utils/article-helper"
+
+const SingleArticle = () => {
+ const { id } = useParams<{ id: string }>();
+ const article = articles.find((article) => article.id === Number(id));
+
+ if (!article) {
+ return Artigo não encontrado
;
+ }
+
+ return (
+
+
+ {article.title}
+ por {article.author}
+ {article.description}
+
+ )
+}
+
+export default SingleArticle
diff --git a/frontend/src/utils/article-helper.ts b/frontend/src/utils/article-helper.ts
index 55dc628..93be70f 100644
--- a/frontend/src/utils/article-helper.ts
+++ b/frontend/src/utils/article-helper.ts
@@ -1,4 +1,5 @@
export interface IArticle {
+ id: number;
img: {
alt: string;
src: string;
@@ -11,6 +12,7 @@ export interface IArticle {
export const articles: IArticle[] = [
{
+ id: 1,
img: {
alt: 'article 01',
src: '/article/article_01.jpg'
@@ -21,6 +23,7 @@ export const articles: IArticle[] = [
description: 'This article explores how artificial intelligence is becoming an integral part of our everyday lives.',
},
{
+ id: 2,
img: {
alt: 'article 02',
src: '/article/article_02.jpg'
@@ -31,6 +34,7 @@ export const articles: IArticle[] = [
description: 'An in-depth look at the latest discoveries from the uncharted territories of the deep ocean.',
},
{
+ id: 3,
img: {
alt: 'article 03',
src: '/article/article_03.jpg'
@@ -41,6 +45,7 @@ export const articles: IArticle[] = [
description: 'A comprehensive guide to adopting a more sustainable and eco-friendly lifestyle.',
},
{
+ id: 4,
img: {
alt: 'article 04',
src: '/article/article_04.jpg'
@@ -51,6 +56,7 @@ export const articles: IArticle[] = [
description: 'An article discussing the advancements in space travel and what the future might hold for humanity beyond Earth.',
},
{
+ id: 5,
img: {
alt: 'article 05',
src: '/article/article_05.jpg'
@@ -61,6 +67,7 @@ export const articles: IArticle[] = [
description: 'An analysis of how social media is shaping our society and influencing personal relationships.',
},
{
+ id: 6,
img: {
alt: 'article 06',
src: '/article/article_06.jpg'
diff --git a/frontend/src/utils/tutorial-helper.ts b/frontend/src/utils/tutorial-helper.ts
index 2aedd8a..3c8efe6 100644
--- a/frontend/src/utils/tutorial-helper.ts
+++ b/frontend/src/utils/tutorial-helper.ts
@@ -1,4 +1,5 @@
export interface ITutorial {
+ id: number;
img: {
alt: string;
src: string;
@@ -11,6 +12,7 @@ export interface ITutorial {
export const tutorials: ITutorial[] = [
{
+ id: 1,
img: {
alt: 'tutorial 01',
src: '/tutorial/tutorial_01.jpeg'
@@ -21,6 +23,7 @@ export const tutorials: ITutorial[] = [
description: 'This tutorial walks you through the essentials of starting a podcast, from choosing the right equipment to recording and editing your first episode. Perfect for beginners who want to dive into the world of podcasting.',
},
{
+ id: 2,
img: {
alt: 'tutorial 02',
src: '/tutorial/tutorial_02.jpeg'
@@ -31,6 +34,7 @@ export const tutorials: ITutorial[] = [
description: 'Learn effective strategies to promote your podcast and grow your audience. This tutorial covers social media marketing, networking with other podcasters, and using SEO to increase your visibility on podcast platforms.',
},
{
+ id: 3,
img: {
alt: 'tutorial 03',
src: '/tutorial/tutorial_03.png'
@@ -41,6 +45,7 @@ export const tutorials: ITutorial[] = [
description: 'In this tutorial, you will explore various ways to monetize your podcast, including sponsorships, affiliate marketing, and listener support platforms. Discover the best methods to turn your passion into profit.',
},
{
+ id: 4,
img: {
alt: 'tutorial 04',
src: '/tutorial/tutorial_04.png'
diff --git a/package-lock.json b/package-lock.json
new file mode 100644
index 0000000..b9327bb
--- /dev/null
+++ b/package-lock.json
@@ -0,0 +1,6 @@
+{
+ "name": "2024.1_G5_My_AudioPodCast",
+ "lockfileVersion": 3,
+ "requires": true,
+ "packages": {}
+}