Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
46 commits
Select commit Hold shift + click to select a range
94fddbc
import the NYT-sections JSON file and add it to a sections variable i…
cristiangarc Jun 8, 2024
961e88c
added ShadCN for CSS styling
cristiangarc Jun 9, 2024
1c349e2
Merge pull request #1 from cristiangarc/cris
cristiangarc Jun 9, 2024
f9f6d5a
added css styling for the Home Link element, and added Navigation Men…
cristiangarc Jun 9, 2024
2af3605
reordered the files to include the NYT API fetch function in a separa…
cristiangarc Jun 9, 2024
0e97538
added a new component to house and display all of the current section…
cristiangarc Jun 9, 2024
1151a7d
added the Sections component to the Homepage
cristiangarc Jun 9, 2024
7a21b8a
added styling for Sections.jsx
cristiangarc Jun 9, 2024
88c9e4f
added a div to contain each section name
cristiangarc Jun 9, 2024
0b1593e
Merge pull request #2 from cristiangarc/cris
cristiangarc Jun 9, 2024
66fb8d7
succesfully integrated open ai api into app in its own components and…
eaapursuit Jun 9, 2024
82f6e82
added a new heading name for the homepage, and added an import for th…
cristiangarc Jun 9, 2024
62444d9
edited the styling for the Section.jsx component
cristiangarc Jun 9, 2024
46f9061
removed an import in App.jsx
cristiangarc Jun 9, 2024
7db269b
added a media query to display two section columns for screen widths …
cristiangarc Jun 9, 2024
a15a831
currently resolving conflict merges that presented after pushing chan…
eaapursuit Jun 9, 2024
e5da5f0
Merge pull request #3 from cristiangarc/openAi
eaapursuit Jun 9, 2024
47adbf3
added a background color to Homepage, and imported the homepage css file
cristiangarc Jun 9, 2024
c8e904d
debug
cristiangarc Jun 9, 2024
f9eeacf
added state to the useNavigate when navigating to the summary section…
cristiangarc Jun 9, 2024
2171882
resolved merge conflicts
cristiangarc Jun 9, 2024
f2a886c
added a navigation component to display the Homepage link when away f…
cristiangarc Jun 9, 2024
ca83ce1
debugged the SummaryContext.Provider usage to include the value prop
cristiangarc Jun 9, 2024
5094134
updated CSS styling, and added a green background for the app
cristiangarc Jun 9, 2024
d5b5f4d
removed the green html and body background color to increase page vis…
cristiangarc Jun 9, 2024
059531c
formatted the page for the summary section, and formatted the page fo…
cristiangarc Jun 9, 2024
79b8c67
resolved merge conflicts
cristiangarc Jun 9, 2024
33b35ab
added a background color to Homepage, and imported the homepage css file
cristiangarc Jun 9, 2024
6020a6b
resolved merge conflicts
cristiangarc Jun 9, 2024
1b8d997
resolved merge conflicts
cristiangarc Jun 9, 2024
833678c
resolved merge conflicts
cristiangarc Jun 9, 2024
e4f0f21
debugged and refactored code
cristiangarc Jun 9, 2024
6bc4ea7
refactored code
cristiangarc Jun 9, 2024
3db2910
updated how the elements are displayed in Section.jsx and updated the…
cristiangarc Jun 14, 2024
ca3a471
updated the OpenAi.js main cuntion
cristiangarc Jun 14, 2024
14e22db
commented out the openAi.js main function call to debug
cristiangarc Jun 14, 2024
3873f85
import the NYT API KEY as an env variable
cristiangarc Jun 14, 2024
d9a0010
add a fetch function that retrieves individual article summaries
cristiangarc Jun 14, 2024
29a31c8
moved the search box to a separate block in smaller screen widths; ad…
cristiangarc Jun 14, 2024
df5ad04
deleted an extra backend api fetch file
cristiangarc Jun 15, 2024
4372181
update the fetch api calls to create a new article and send JSON data…
cristiangarc Jun 15, 2024
aef1ada
import the NYT api key as a environment variable
cristiangarc Jun 15, 2024
b62b687
update the onClick function that is executed when the summary button …
cristiangarc Jun 15, 2024
b8560c3
remove console.log statements
cristiangarc Jun 15, 2024
d115223
remove more console.log statements
cristiangarc Jun 15, 2024
7670e61
made changes locally, prepping for submodule conversion
eaapursuit Nov 5, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,4 @@ dist-ssr
*.njsproj
*.sln
*.sw?

76 changes: 76 additions & 0 deletions app/globals.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
@tailwind base;
@tailwind components;
@tailwind utilities;

@layer base {
:root {
--background: 0 0% 100%;
--foreground: 222.2 84% 4.9%;

--card: 0 0% 100%;
--card-foreground: 222.2 84% 4.9%;

--popover: 0 0% 100%;
--popover-foreground: 222.2 84% 4.9%;

--primary: 222.2 47.4% 11.2%;
--primary-foreground: 210 40% 98%;

--secondary: 210 40% 96.1%;
--secondary-foreground: 222.2 47.4% 11.2%;

--muted: 210 40% 96.1%;
--muted-foreground: 215.4 16.3% 46.9%;

--accent: 210 40% 96.1%;
--accent-foreground: 222.2 47.4% 11.2%;

--destructive: 0 84.2% 60.2%;
--destructive-foreground: 210 40% 98%;

--border: 214.3 31.8% 91.4%;
--input: 214.3 31.8% 91.4%;
--ring: 222.2 84% 4.9%;

--radius: 0.5rem;
}

.dark {
--background: 222.2 84% 4.9%;
--foreground: 210 40% 98%;

--card: 222.2 84% 4.9%;
--card-foreground: 210 40% 98%;

--popover: 222.2 84% 4.9%;
--popover-foreground: 210 40% 98%;

--primary: 210 40% 98%;
--primary-foreground: 222.2 47.4% 11.2%;

--secondary: 217.2 32.6% 17.5%;
--secondary-foreground: 210 40% 98%;

--muted: 217.2 32.6% 17.5%;
--muted-foreground: 215 20.2% 65.1%;

--accent: 217.2 32.6% 17.5%;
--accent-foreground: 210 40% 98%;

--destructive: 0 62.8% 30.6%;
--destructive-foreground: 210 40% 98%;

--border: 217.2 32.6% 17.5%;
--input: 217.2 32.6% 17.5%;
--ring: 212.7 26.8% 83.9%;
}
}

@layer base {
* {
@apply border-border;
}
body {
@apply bg-background text-foreground;
}
}
17 changes: 17 additions & 0 deletions components.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"$schema": "https://ui.shadcn.com/schema.json",
"style": "default",
"rsc": true,
"tsx": true,
"tailwind": {
"config": "tailwind.config.js",
"css": "app/globals.css",
"baseColor": "slate",
"cssVariables": true,
"prefix": ""
},
"aliases": {
"components": "@/components",
"utils": "@/lib/utils"
}
}
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>React Basic Starter</title>
<title>Brief Bites</title>
</head>
<body>
<div id="root"></div>
Expand Down
Loading