Skip to content

Commit f343d33

Browse files
authored
Merge pull request #33 from natanielf/dev
v1.2.0
2 parents d4d84d9 + f6b562e commit f343d33

31 files changed

Lines changed: 119 additions & 215 deletions

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,12 @@
22

33
### Check it out here: [natanielfarzan.com](https://natanielfarzan.com/)
44

5-
This project started two years ago while I was a freshman in my Computer Information System class. Ever since, I've updated and improved it. I've learned a lot about web design, programming, and [Git version control](https://git-scm.com/) from it and for that I'm thankful.
5+
This project started three years ago while I was a freshman in my Computer Information System class. Ever since, I've updated and improved it. I've learned a lot about web design and [Git version control](https://git-scm.com/) from it and for that I'm thankful.
66

77
### Inspiration and Attributions
88

99
- Ms. Neumann (My CIS and AP CSP teacher)
10-
- [Adobe Brackets](http://brackets.io/) for making an awesome text editor! Note: Brackets is nearing end of life but it is still a great product.
11-
- [Space Grotesk Font](https://floriankarsten.github.io/space-grotesk/); also available on [Google Fonts](https://fonts.google.com/specimen/Space+Grotesk)
10+
- [Space Grotesk](https://floriankarsten.github.io/space-grotesk/) font (also available on [Google Fonts](https://fonts.google.com/specimen/Space+Grotesk))
1211
- [minal.ml](https://minar.ml/) and his source code available [here](https://github.com/m-i-n-a-r/sparky-portfolio)
1312
- [normalize.css](https://github.com/necolas/normalize.css) for a few tips on CSS resets
1413
- [codrops](https://tympanus.net/codrops/2011/11/02/original-hover-effects-with-css3/) for an image description animation in 100% CSS
@@ -18,6 +17,7 @@ This project started two years ago while I was a freshman in my Computer Informa
1817
### Features
1918

2019
- Responsive web design
20+
- Uses modern CSS
2121
- Theme automatically adjusts to the user's preference (light/dark)
2222
- Interactive animated background
2323

assets/css/style.css

Lines changed: 54 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,17 @@
33
:root {
44
--clr-brand: hsl(357, 84%, 52%);
55
--clr-brand-transparent: hsla(357, 84%, 52%, 0.75);
6-
--br: 10px;
6+
--brand-border: solid var(--clr-brand);
7+
--br: 0.625rem;
78
--box-shadow-transition: box-shadow 200ms ease-out;
89
--clr-bkgd: hsl(0, 0%, 98%);
910
--clr-text: hsl(0, 0%, 0%);
10-
--content-bkgd: hsla(0, 0%, 98%, 0.4);
11+
--clr-main-bkgd: hsla(0, 0%, 98%, 0.4);
1112
--box-shadow: 0 0 20px 0 hsla(0, 0%, 0%, 0.3);
1213
--line: thin solid hsla(0, 0%, 0%, 0.3);
1314
--clr-bkgd-dark: hsl(0, 0%, 2%);
1415
--clr-text-dark: hsl(0, 0%, 95%);
15-
--content-bkgd-dark: hsla(0, 0%, 4%, 0.4);
16+
--clr-main-bkgd-dark: hsla(0, 0%, 4%, 0.4);
1617
--box-shadow-dark: none;
1718
--line-dark: thin solid hsla(0, 0%, 100%, 0.3);
1819
}
@@ -21,7 +22,7 @@
2122
:root {
2223
--clr-bkgd: var(--clr-bkgd-dark);
2324
--clr-text: var(--clr-text-dark);
24-
--content-bkgd: var(--content-bkgd-dark);
25+
--clr-main-bkgd: var(--clr-main-bkgd-dark);
2526
--box-shadow: var(--box-shadow-dark);
2627
--line: var(--line-dark);
2728
}
@@ -40,7 +41,7 @@
4041
html {
4142
line-height: 1.15;
4243
scroll-behavior: smooth;
43-
scroll-padding-top: 5em;
44+
scroll-padding-top: 4.5em;
4445
/* Firefox scrollbar styling */
4546
scrollbar-width: thin;
4647
scrollbar-color: var(--clr-brand) var(--clr-bkgd);
@@ -55,13 +56,14 @@ body {
5556
text-align: center;
5657
}
5758

58-
.content {
59+
main {
5960
max-width: 60em;
60-
margin: 0 auto;
61-
margin-bottom: 3rem;
62-
padding: 1.4rem;
63-
background-color: var(--content-bkgd);
64-
border: medium solid var(--clr-brand);
61+
box-sizing: border-box;
62+
margin-inline: auto;
63+
margin-block-end: 4rem;
64+
padding: 1.5rem;
65+
background-color: var(--clr-main-bkgd);
66+
border: medium var(--brand-border);
6567
border-radius: calc(var(--br) * 2);
6668
-webkit-box-shadow: var(--box-shadow);
6769
box-shadow: var(--box-shadow);
@@ -78,31 +80,34 @@ section:target > h1 {
7880
margin: 3rem 0;
7981
display: grid;
8082
grid-template-columns: repeat(auto-fill, minmax(18em, 1fr));
81-
gap: 4em;
83+
gap: 5em 4em;
8284
}
8385

8486
hr {
8587
height: 0.125em;
8688
width: 100%;
87-
margin: 2em 0;
89+
margin-block: 3em;
8890
background-color: var(--clr-brand);
8991
border: none;
9092
}
9193

9294
h1 {
9395
font-size: 2em;
94-
margin: 0.67em 0;
9596
font-weight: bold;
9697
}
9798

9899
:is(h2, h3, p) {
99100
font-weight: lighter;
100101
}
101102

103+
section > h2 {
104+
margin-block: 2rem;
105+
}
106+
102107
nav {
103-
padding: 0.75rem;
108+
padding: 0.7rem;
104109
background-color: var(--clr-bkgd);
105-
border: thin solid var(--clr-brand);
110+
border: thin var(--brand-border);
106111
position: -webkit-sticky;
107112
position: sticky;
108113
top: 0;
@@ -111,14 +116,14 @@ nav {
111116
transition: var(--box-shadow-transition);
112117
}
113118

114-
:is(nav, .footer):is(:hover, :focus-within) {
119+
:is(nav, footer):is(:hover, :focus-within) {
115120
-webkit-box-shadow: var(--box-shadow);
116121
box-shadow: var(--box-shadow);
117122
}
118123

119124
nav > a {
120125
display: inline-block;
121-
padding: 0.75rem;
126+
padding: 0.7rem;
122127
}
123128

124129
a:is(:link, :visited) {
@@ -137,6 +142,30 @@ a:is(:hover, :focus, :active) {
137142
text-decoration: none;
138143
}
139144

145+
.welcome-card {
146+
width: 100%;
147+
height: auto;
148+
margin-block: 3rem;
149+
background-color: var(--clr-main-bkgd);
150+
display: grid;
151+
place-items: center;
152+
grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
153+
gap: 2rem;
154+
}
155+
156+
.welcome-image {
157+
padding: 1rem;
158+
}
159+
160+
.welcome-card > .welcome-image > img {
161+
border-radius: 50%;
162+
box-shadow: 0 0 1.5rem 0 hsla(357, 84%, 52%, 0.75);
163+
}
164+
165+
:is(.welcome-image, .welcome-text, .about-me) {
166+
margin-inline: 0.75rem;
167+
}
168+
140169
img {
141170
width: 100%;
142171
height: auto;
@@ -157,7 +186,7 @@ img {
157186
height: auto;
158187
overflow: hidden;
159188
background-color: var(--clr-bkgd);
160-
border: thin solid var(--clr-brand);
189+
border: thin var(--brand-border);
161190
position: absolute;
162191
top: 50%;
163192
-webkit-transform: translateY(-50%);
@@ -223,36 +252,33 @@ img {
223252
iframe {
224253
width: 100%;
225254
aspect-ratio: 16 / 9;
255+
margin-block: 1rem;
226256
border: none;
227257
}
228258

229-
.footer {
259+
footer {
230260
width: 100%;
231261
height: auto;
232262
display: grid;
233263
place-items: center;
234264
background-color: var(--clr-bkgd);
235-
border: thin solid var(--clr-brand);
265+
border: thin var(--brand-border);
236266
-webkit-transition: var(--box-shadow-transition);
237267
transition: var(--box-shadow-transition);
238268
}
239269

240-
:is(nav, a, img, .view, .mask, .footer, iframe) {
270+
:is(nav, a, img:not(.logo), div, footer, iframe) {
241271
border-radius: var(--br);
242272
}
243273

244-
.logo-container {
245-
margin: 0.5rem 0;
274+
.logos {
275+
margin-block: 1rem;
246276
display: grid;
247277
grid-template-columns: repeat(2, 2.5rem);
248278
place-items: center;
249279
gap: 2rem;
250280
}
251281

252-
.logo-container > a > img {
253-
border-radius: 0;
254-
}
255-
256282
::-webkit-scrollbar {
257283
width: 12px;
258284
height: 12px;

images/gig_poster.png

-497 KB
Binary file not shown.

images/jet_lag.epub

-2.14 MB
Binary file not shown.

images/jet_lag_front_cover.jpg

-72.7 KB
Binary file not shown.

images/jet_lag_logo.svg

Lines changed: 0 additions & 1 deletion
This file was deleted.

images/mini_button_series.svg

Lines changed: 0 additions & 1 deletion
This file was deleted.

images/nature_wallpaper.png

-77.4 KB
Binary file not shown.

images/nf_background_with_logo.png

-616 KB
Binary file not shown.

images/space_wallpaper.png

-71.9 KB
Binary file not shown.

0 commit comments

Comments
 (0)