Skip to content

Commit 01ef4f8

Browse files
committed
Cleaned up CSS.
1 parent 8808f9c commit 01ef4f8

File tree

6 files changed

+15
-100
lines changed

6 files changed

+15
-100
lines changed

app/globals.css

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,6 @@
11
:root {
2-
--background: #ffffff;
3-
--foreground: #171717;
4-
/* #001b2e */
5-
/* #1d3f58 */
6-
/* #537692 */
7-
/* #b3cde4 */
8-
/* #eef3f9 */
2+
--off-white: #f4f0e0;
3+
--header-bg: rgb(42, 42, 42, 0.2);
94
}
105

116
html,
@@ -15,7 +10,14 @@ body {
1510
}
1611

1712
body {
18-
background: linear-gradient(135deg, #001b2e, #537692, #001b2e);
13+
background: linear-gradient(
14+
130deg,
15+
#2a5d9f,
16+
#8b5e3c,
17+
#2a5d9f,
18+
#8b5e3c,
19+
#2a5d9f
20+
);
1921
font-family: "SF Mono", "Fira Code", "Fira Mono", "Roboto Mono", monospace;
2022
}
2123

app/layout.tsx

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,7 @@
11
import type { Metadata } from "next";
2-
import { Geist, Geist_Mono } from "next/font/google";
32
import "./globals.css";
43
import TopNav from "./ui/top-nav";
54

6-
const geistSans = Geist({
7-
variable: "--font-geist-sans",
8-
subsets: ["latin"],
9-
});
10-
11-
const geistMono = Geist_Mono({
12-
variable: "--font-geist-mono",
13-
subsets: ["latin"],
14-
});
15-
165
export const metadata: Metadata = {
176
title: "Midas Website",
187
icons: {

app/page.module.css

Lines changed: 1 addition & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,7 @@
44
grid-template-rows: 0.65rem 1fr 0.65rem;
55
align-items: center;
66
justify-items: center;
7-
min-height: calc(100svh - 100px);
87
padding: 0.8rem;
9-
gap: 1rem;
10-
font-family: var(--font-geist-sans);
118
}
129

1310
.main {
@@ -30,13 +27,12 @@
3027
}
3128

3229
.button_container {
33-
/* width: 40%; */
3430
display: flex;
3531
justify-content: center;
3632
}
3733

3834
.main button {
39-
padding: 15 100;
35+
padding: 1rem 6rem;
4036
border-radius: 50px;
4137
font-size: 1.25rem;
4238
font-weight: bold;
@@ -45,32 +41,15 @@
4541
}
4642

4743
@media (min-width: 600px) {
48-
.page {
49-
display: grid;
50-
grid-template-rows: 20px 1fr 20px;
51-
align-items: center;
52-
justify-items: center;
53-
min-height: calc(100svh - 100px);
54-
padding: 80px;
55-
gap: 64px;
56-
font-family: var(--font-geist-sans);
57-
}
58-
5944
.main {
60-
display: flex;
61-
flex-direction: column;
62-
gap: 32px;
63-
grid-row-start: 2;
6445
width: 60%;
6546
}
6647

6748
.main h1 {
6849
font-size: 3rem;
69-
color: white;
7050
}
7151

7252
.main h3 {
73-
color: grey;
7453
width: 80%;
7554
}
7655

@@ -79,13 +58,4 @@
7958
display: flex;
8059
justify-content: center;
8160
}
82-
83-
.main button {
84-
padding: 15 100;
85-
border-radius: 50px;
86-
font-size: 1.25rem;
87-
font-weight: bold;
88-
border: none;
89-
color: rgba(42, 42, 42, 0.9);
90-
}
9161
}

app/page.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import Image from "next/image";
21
import styles from "./page.module.css";
32
import Socialbar from "./ui/socials";
43

app/ui/socials.module.css

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,7 @@
11
.icon_bar {
22
font-size: 1.5rem;
3-
color: #f4f0e0;
3+
color: var(--off-white);
44
display: flex;
5-
flex-direction: row;
65
padding-left: 1%;
76
gap: 20px;
87
}
9-
10-
@media (min-width: 600px) {
11-
.icon_bar {
12-
font-size: 1.5rem;
13-
color: #f4f0e0;
14-
display: flex;
15-
flex-direction: row;
16-
padding-left: 1%;
17-
gap: 20px;
18-
}
19-
}

app/ui/top-nav.module.css

Lines changed: 3 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,18 @@
11
.top_nav {
2-
background-color: rgb(42, 42, 42, 0.2);
2+
background-color: var(--header-bg);
33
display: flex;
44
align-items: center;
55
color: white;
66
height: 10%;
77
}
88

9-
.nav_logo {
10-
display: flex;
11-
}
12-
139
.top_nav img {
1410
width: 2.5rem;
1511
height: 2.5rem;
1612
}
1713

18-
.icon_bar {
19-
font-size: 1.5rem;
20-
color: #f4f0e0;
14+
.nav_logo {
2115
display: flex;
22-
flex-direction: row;
23-
padding-left: 5%;
24-
/* gap: 0.8rem; */
2516
}
2617

2718
.nav {
@@ -34,7 +25,7 @@
3425
}
3526

3627
.top_nav_icons {
37-
font-size: 0.7rem;
28+
font-size: 0.8rem;
3829
color: white;
3930
padding: 0.65rem;
4031
}
@@ -45,45 +36,21 @@
4536
margin-right: 10%;
4637
padding: 20px;
4738
margin-top: 20px;
48-
background-color: rgb(42, 42, 42, 0.2);
49-
display: flex;
50-
align-items: center;
51-
padding-right: 1%;
52-
color: white;
5339
height: 80px;
5440
border-radius: 20px;
5541
}
5642

57-
.nav_logo {
58-
display: flex;
59-
}
60-
6143
.top_nav img {
6244
width: 45px;
6345
height: 45px;
6446
}
6547

6648
.icon_bar {
6749
font-size: 1.5rem;
68-
color: #f4f0e0;
69-
display: flex;
70-
flex-direction: row;
71-
padding-left: 1%;
72-
gap: 20px;
73-
}
74-
75-
.nav {
76-
width: 100%;
77-
height: 80px;
78-
display: flex;
79-
align-items: center;
80-
justify-content: flex-end;
81-
padding-right: 5%;
8250
}
8351

8452
.top_nav_icons {
8553
font-size: 1rem;
86-
color: white;
8754
padding: 10px;
8855
}
8956
}

0 commit comments

Comments
 (0)