Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…into feature/background-petrs
  • Loading branch information
samderanova committed Sep 11, 2023
2 parents 4441111 + 7babafb commit 58ec5a7
Show file tree
Hide file tree
Showing 11 changed files with 122 additions and 98 deletions.
5 changes: 5 additions & 0 deletions apps/site/next.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
const path = require('path');

/** @type {import('next').NextConfig} */
const nextConfig = {
reactStrictMode: true,
sassOptions: {
includePaths: [path.join(__dirname, "src", "lib", "styles")]
}
};

module.exports = nextConfig;
16 changes: 0 additions & 16 deletions apps/site/src/app/globals.scss

This file was deleted.

13 changes: 6 additions & 7 deletions apps/site/src/app/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
import "bootstrap/dist/css/bootstrap.min.css";
import "./globals.scss";

import type { Metadata } from "next";
import { Fuzzy_Bubbles } from "next/font/google";

import FontProvider from "@/lib/FontProvider";

import NavBar from "@/components/NavBar/NavBar";
import Footer from "@/components/Footer/Footer";

const fuzzy = Fuzzy_Bubbles({ weight: ["400", "700"], subsets: ["latin"] });
import "@/lib/styles/bootstrap.scss";

export const metadata: Metadata = {
title: "Create Next App",
Expand All @@ -21,9 +18,11 @@ export default function RootLayout({
}) {
return (
<html lang="en">
<body className={fuzzy.className + " background"}>
<FontProvider />
<body>
<NavBar />
{children}
<Footer />
</body>
</html>
);
Expand Down
Empty file removed apps/site/src/app/page.module.scss
Empty file.
2 changes: 0 additions & 2 deletions apps/site/src/components/Footer/Footer.module.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
@use "@/lib/styles/variables.scss" as variables;

.footer {
padding-bottom: 7vw;
}
Expand Down
12 changes: 6 additions & 6 deletions apps/site/src/components/NavBar/NavBar.module.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@use "@/lib/styles/variables.scss" as variables;
@use "bootstrap-utils" as utils;

.nav {
position: sticky;
Expand Down Expand Up @@ -37,20 +37,20 @@

.homeActive {
@extend .text;
color: variables.$green;
color: utils.$green;
}

.resourcesActive {
@extend .text;
color: variables.$blue;
color: utils.$blue;
}

.scheduleActive {
@extend .text;
color: variables.$navbar-red;
color: utils.$navbar-red;
}

@include variables.media-breakpoint-down(md) {
@include utils.media-breakpoint-down(md) {
.logo {
left: 3vw;
transform: rotate(-16.81deg) translateY(-6vw);
Expand All @@ -60,7 +60,7 @@
}
}

@include variables.media-breakpoint-up(lg) {
@include utils.media-breakpoint-up(lg) {
.logo {
width: 180px;
height: 180px;
Expand Down
20 changes: 20 additions & 0 deletions apps/site/src/lib/FontProvider.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
"use client";

import { Fuzzy_Bubbles } from "next/font/google";

const fuzzy = Fuzzy_Bubbles({
weight: ["400", "700"],
subsets: ["latin"],
});

export default function FontProvider() {
return (
<style jsx global>
{`
:root {
--next-font-fuzzy-bubbles: ${fuzzy.style.fontFamily};
}
`}
</style>
);
}
8 changes: 8 additions & 0 deletions apps/site/src/lib/styles/_bootstrap-utils.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
@import "./zothacks-theme";

@import "~bootstrap/scss/functions";
@import "~bootstrap/scss/variables";
@import "~bootstrap/scss/variables-dark";
@import "~bootstrap/scss/maps";
@import "~bootstrap/scss/mixins";
@import "~bootstrap/scss/utilities";
Original file line number Diff line number Diff line change
@@ -1,16 +1,11 @@
// Common variables for site theme consistency

// import bootstrap scss
@import "bootstrap/scss/functions";
@import "bootstrap/scss/variables";
@import "bootstrap/scss/mixins";

// colors
$white: #fafaff; // Paper Background color
$beige: #faf4ea;
$black: #21242d; // Text color
$silver: #e6f2fc; // Line pattern color of paper
$red: #e2b7f7; // ! hex value doesn't match with Figma design
$red: #ff3750;
$pink: #ffa8c3;
$orange: #ff5c00;
$gold: #ffd600; // accent colors
Expand All @@ -21,5 +16,7 @@ $blue: #3902fd;
$purple: #6600b6;
$navbar-red: #ff0000;

// fonts
$fuzzy-bubbles: "Fuzzy Bubbles", cursive;
// bootstrap overrides
$font-family-base: var(--next-font-fuzzy-bubbles);
$font-size-base: 1.25rem;
$headings-font-weight: 700;
25 changes: 25 additions & 0 deletions apps/site/src/lib/styles/bootstrap.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
// Core configuration with overrides
@import "./bootstrap-utils";

/* Layout & components */
@import "~bootstrap/scss/root";
@import "~bootstrap/scss/reboot";
@import "~bootstrap/scss/type";

@import "~bootstrap/scss/images";
@import "~bootstrap/scss/containers";
@import "~bootstrap/scss/grid";

/* Components */
@import "~bootstrap/scss/buttons";
@import "~bootstrap/scss/transitions";
@import "~bootstrap/scss/nav";
@import "~bootstrap/scss/navbar";
@import "~bootstrap/scss/card";
@import "~bootstrap/scss/accordion";

/* Helpers */
@import "~bootstrap/scss/helpers";

/* Utilities */
@import "~bootstrap/scss/utilities/api";
Loading

0 comments on commit 58ec5a7

Please sign in to comment.