Skip to content

Commit aa0151e

Browse files
committed
add footer
1 parent 4f561c1 commit aa0151e

File tree

12 files changed

+1108
-1
lines changed

12 files changed

+1108
-1
lines changed

.gitignore

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2+
3+
# dependencies
4+
/node_modules
5+
/.pnp
6+
.pnp.js
7+
8+
# testing
9+
/coverage
10+
11+
# next.js
12+
/.next/
13+
/out/
14+
15+
# production
16+
/build
17+
18+
# misc
19+
.DS_Store
20+
*.pem
21+
22+
# debug
23+
npm-debug.log*
24+
yarn-debug.log*
25+
yarn-error.log*
26+
27+
# local env files
28+
.env.local
29+
.env.development.local
30+
.env.test.local
31+
.env.production.local
32+
33+
# vercel
34+
.vercel

README.md

+37-1
Original file line numberDiff line numberDiff line change
@@ -1 +1,37 @@
1-
# portfolio
1+
# Example app with next-sass
2+
3+
This example demonstrates how to use Next.js' built-in Global Sass/Scss imports and Component-Level Sass/Scss modules support.
4+
5+
## Preview
6+
7+
Preview the example live on [StackBlitz](http://stackblitz.com/):
8+
9+
[![Open in StackBlitz](https://developer.stackblitz.com/img/open_in_stackblitz.svg)](https://stackblitz.com/github/vercel/next.js/tree/canary/examples/with-next-sass)
10+
11+
## Deploy your own
12+
13+
Deploy the example using [Vercel](https://vercel.com?utm_source=github&utm_medium=readme&utm_campaign=next-example):
14+
15+
[![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/git/external?repository-url=https://github.com/vercel/next.js/tree/canary/examples/with-next-sass&project-name=with-next-sass&repository-name=with-next-sass)
16+
17+
## How to use
18+
19+
Execute [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app) with [npm](https://docs.npmjs.com/cli/init) or [Yarn](https://yarnpkg.com/lang/en/docs/cli/create/) to bootstrap the example:
20+
21+
```bash
22+
npx create-next-app --example with-next-sass with-next-sass-app
23+
# or
24+
yarn create next-app --example with-next-sass with-next-sass-app
25+
```
26+
27+
Run production build with:
28+
29+
```bash
30+
npm run build
31+
npm run start
32+
# or
33+
yarn build
34+
yarn start
35+
```
36+
37+
Deploy it to the cloud with [Vercel](https://vercel.com/new?utm_source=github&utm_medium=readme&utm_campaign=next-example) ([Documentation](https://nextjs.org/docs/deployment)).

components/Footer.js

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
import styles from "./footer.module.scss";
2+
3+
export default function Footer() {
4+
return (
5+
<footer className={styles.footer}>
6+
<div className={styles.imgs}>
7+
<a href="https://github.com/luthfib" target="_blank">
8+
<img src="/icons/github.svg" alt="github icon" />
9+
</a>
10+
<a href="https://twitter.com/luthfibf" target="_blank">
11+
<img src="/icons/twitter.svg" alt="twitter icon" />
12+
</a>
13+
</div>
14+
15+
</footer>
16+
);
17+
}

components/footer.module.scss

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
.footer {
2+
font-size: 1.6rem;
3+
font-weight: bold;
4+
position: fixed;
5+
bottom: 1.7rem;
6+
left: 1.7rem;
7+
color: var(--text-color);
8+
}
9+
10+
.imgs {
11+
display: flex;
12+
align-items: center;
13+
gap: 1rem;
14+
15+
a {
16+
cursor: pointer;
17+
}
18+
}

0 commit comments

Comments
 (0)