Skip to content

Commit

Permalink
Remove unused styles, add documentation, fix typo.
Browse files Browse the repository at this point in the history
  • Loading branch information
natebass committed Nov 27, 2023
1 parent ba2e8e3 commit e8f0557
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 515 deletions.
25 changes: 14 additions & 11 deletions jest.config.mjs
Original file line number Diff line number Diff line change
@@ -1,18 +1,21 @@
import nextJest from 'next/jest.js'
/**
* Add more setup options before each test is run
* setupFilesAfterEnv: ['<rootDir>/jest.setup.js'],
* Add any custom config to be passed to Jest
* @type {import('jest').Config}
*/
const config = {
testEnvironment: 'jest-environment-jsdom',
}

/**
* Provide the path to your Next.js app to load next.config.js and .env files in your test environment
* @returns {{}} jestConfig Configuration for Jest.
*/
const createJestConfig = nextJest({
// Provide the path to your Next.js app to load next.config.js and .env files in your test environment
dir: './',
dir: './',
})

// Add any custom config to be passed to Jest
/** @type {import('jest').Config} */
const config = {
// Add more setup options before each test is run
// setupFilesAfterEnv: ['<rootDir>/jest.setup.js'],

testEnvironment: 'jest-environment-jsdom',
}

// createJestConfig is exported this way to ensure that next/jest can load the Next.js config which is async
export default createJestConfig(config)
8 changes: 4 additions & 4 deletions next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ const path = require('path')

/** @type {import('next').NextConfig} */
const nextConfig = {
output: 'export',
sassOptions: {
includePaths: [path.join(__dirname, 'styles')],
},
output: 'export',
sassOptions: {
includePaths: [path.join(__dirname, 'styles')],
},
}

module.exports = nextConfig
4 changes: 2 additions & 2 deletions src/components/AppNavbar/DropdownMenu.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import Link from 'next/link'
const DropdownMenu = (visible = false) => {
function hide() {
visible = false
}
}
return (
<div className="dropdown-menu" style={visible ? {} : { display: 'none' }}>
<div className="section-item">
Expand All @@ -21,7 +21,7 @@ const DropdownMenu = (visible = false) => {
<Link href="get-started" className="dropdown-button" onClick={hide}>Get Started</Link>
</div>
<div className="section-item">
<div className="text-wrapper-2">Project</div>
<div className="text-wrapper-2">Projects</div>
<p className="section-content">
Explore our projects and discover how you can contribute your skills to drive innovation and create positive
change.
Expand Down
106 changes: 0 additions & 106 deletions styles/globals.css

This file was deleted.

Loading

0 comments on commit e8f0557

Please sign in to comment.