Hoof2 commited on
Commit
6fb6a56
·
verified ·
1 Parent(s): 6e4d842

Upload 13 files

Browse files
.gitignore ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Avoid accidental upload of the Sketch and Figma design files
2
+ #####################################################
3
+ ## Please do not remove lines 5 and 6 - thanks! 🙂 ##
4
+ #####################################################
5
+ *.sketch
6
+ *.fig
7
+
8
+ # Avoid accidental XD upload if you convert the design file
9
+ ###############################################
10
+ ## Please do not remove line 12 - thanks! 🙂 ##
11
+ ###############################################
12
+ *.xd
13
+
14
+ # Avoid your project being littered with annoying .DS_Store files!
15
+ .DS_Store
16
+ .prettierignore
assets/fonts/Figtree-Italic-VariableFont_wght.ttf ADDED
Binary file (63.3 kB). View file
 
assets/fonts/Figtree-VariableFont_wght.ttf ADDED
Binary file (62.9 kB). View file
 
assets/fonts/OFL.txt ADDED
@@ -0,0 +1,93 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Copyright 2022 The Figtree Project Authors (https://github.com/erikdkennedy/figtree)
2
+
3
+ This Font Software is licensed under the SIL Open Font License, Version 1.1.
4
+ This license is copied below, and is also available with a FAQ at:
5
+ http://scripts.sil.org/OFL
6
+
7
+
8
+ -----------------------------------------------------------
9
+ SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
10
+ -----------------------------------------------------------
11
+
12
+ PREAMBLE
13
+ The goals of the Open Font License (OFL) are to stimulate worldwide
14
+ development of collaborative font projects, to support the font creation
15
+ efforts of academic and linguistic communities, and to provide a free and
16
+ open framework in which fonts may be shared and improved in partnership
17
+ with others.
18
+
19
+ The OFL allows the licensed fonts to be used, studied, modified and
20
+ redistributed freely as long as they are not sold by themselves. The
21
+ fonts, including any derivative works, can be bundled, embedded,
22
+ redistributed and/or sold with any software provided that any reserved
23
+ names are not used by derivative works. The fonts and derivatives,
24
+ however, cannot be released under any other type of license. The
25
+ requirement for fonts to remain under this license does not apply
26
+ to any document created using the fonts or their derivatives.
27
+
28
+ DEFINITIONS
29
+ "Font Software" refers to the set of files released by the Copyright
30
+ Holder(s) under this license and clearly marked as such. This may
31
+ include source files, build scripts and documentation.
32
+
33
+ "Reserved Font Name" refers to any names specified as such after the
34
+ copyright statement(s).
35
+
36
+ "Original Version" refers to the collection of Font Software components as
37
+ distributed by the Copyright Holder(s).
38
+
39
+ "Modified Version" refers to any derivative made by adding to, deleting,
40
+ or substituting -- in part or in whole -- any of the components of the
41
+ Original Version, by changing formats or by porting the Font Software to a
42
+ new environment.
43
+
44
+ "Author" refers to any designer, engineer, programmer, technical
45
+ writer or other person who contributed to the Font Software.
46
+
47
+ PERMISSION & CONDITIONS
48
+ Permission is hereby granted, free of charge, to any person obtaining
49
+ a copy of the Font Software, to use, study, copy, merge, embed, modify,
50
+ redistribute, and sell modified and unmodified copies of the Font
51
+ Software, subject to the following conditions:
52
+
53
+ 1) Neither the Font Software nor any of its individual components,
54
+ in Original or Modified Versions, may be sold by itself.
55
+
56
+ 2) Original or Modified Versions of the Font Software may be bundled,
57
+ redistributed and/or sold with any software, provided that each copy
58
+ contains the above copyright notice and this license. These can be
59
+ included either as stand-alone text files, human-readable headers or
60
+ in the appropriate machine-readable metadata fields within text or
61
+ binary files as long as those fields can be easily viewed by the user.
62
+
63
+ 3) No Modified Version of the Font Software may use the Reserved Font
64
+ Name(s) unless explicit written permission is granted by the corresponding
65
+ Copyright Holder. This restriction only applies to the primary font name as
66
+ presented to the users.
67
+
68
+ 4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
69
+ Software shall not be used to promote, endorse or advertise any
70
+ Modified Version, except to acknowledge the contribution(s) of the
71
+ Copyright Holder(s) and the Author(s) or with their explicit written
72
+ permission.
73
+
74
+ 5) The Font Software, modified or unmodified, in part or in whole,
75
+ must be distributed entirely under this license, and must not be
76
+ distributed under any other license. The requirement for fonts to
77
+ remain under this license does not apply to any document created
78
+ using the Font Software.
79
+
80
+ TERMINATION
81
+ This license becomes null and void if any of the above conditions are
82
+ not met.
83
+
84
+ DISCLAIMER
85
+ THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
86
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
87
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
88
+ OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
89
+ COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
90
+ INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
91
+ DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
92
+ FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
93
+ OTHER DEALINGS IN THE FONT SOFTWARE.
assets/fonts/README.txt ADDED
@@ -0,0 +1,77 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Figtree Variable Font
2
+ =====================
3
+
4
+ This download contains Figtree as both variable fonts and static fonts.
5
+
6
+ Figtree is a variable font with this axis:
7
+ wght
8
+
9
+ This means all the styles are contained in these files:
10
+ Figtree-VariableFont_wght.ttf
11
+ Figtree-Italic-VariableFont_wght.ttf
12
+
13
+ If your app fully supports variable fonts, you can now pick intermediate styles
14
+ that aren’t available as static fonts. Not all apps support variable fonts, and
15
+ in those cases you can use the static font files for Figtree:
16
+ static/Figtree-Light.ttf
17
+ static/Figtree-Regular.ttf
18
+ static/Figtree-Medium.ttf
19
+ static/Figtree-SemiBold.ttf
20
+ static/Figtree-Bold.ttf
21
+ static/Figtree-ExtraBold.ttf
22
+ static/Figtree-Black.ttf
23
+ static/Figtree-LightItalic.ttf
24
+ static/Figtree-Italic.ttf
25
+ static/Figtree-MediumItalic.ttf
26
+ static/Figtree-SemiBoldItalic.ttf
27
+ static/Figtree-BoldItalic.ttf
28
+ static/Figtree-ExtraBoldItalic.ttf
29
+ static/Figtree-BlackItalic.ttf
30
+
31
+ Get started
32
+ -----------
33
+
34
+ 1. Install the font files you want to use
35
+
36
+ 2. Use your app's font picker to view the font family and all the
37
+ available styles
38
+
39
+ Learn more about variable fonts
40
+ -------------------------------
41
+
42
+ https://developers.google.com/web/fundamentals/design-and-ux/typography/variable-fonts
43
+ https://variablefonts.typenetwork.com
44
+ https://medium.com/variable-fonts
45
+
46
+ In desktop apps
47
+
48
+ https://theblog.adobe.com/can-variable-fonts-illustrator-cc
49
+ https://helpx.adobe.com/nz/photoshop/using/fonts.html#variable_fonts
50
+
51
+ Online
52
+
53
+ https://developers.google.com/fonts/docs/getting_started
54
+ https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Fonts/Variable_Fonts_Guide
55
+ https://developer.microsoft.com/en-us/microsoft-edge/testdrive/demos/variable-fonts
56
+
57
+ Installing fonts
58
+
59
+ MacOS: https://support.apple.com/en-us/HT201749
60
+ Linux: https://www.google.com/search?q=how+to+install+a+font+on+gnu%2Blinux
61
+ Windows: https://support.microsoft.com/en-us/help/314960/how-to-install-or-remove-a-font-in-windows
62
+
63
+ Android Apps
64
+
65
+ https://developers.google.com/fonts/docs/android
66
+ https://developer.android.com/guide/topics/ui/look-and-feel/downloadable-fonts
67
+
68
+ License
69
+ -------
70
+ Please read the full license text (OFL.txt) to understand the permissions,
71
+ restrictions and requirements for usage, redistribution, and modification.
72
+
73
+ You can use them in your products & projects – print or digital,
74
+ commercial or otherwise.
75
+
76
+ This isn't legal advice, please consider consulting a lawyer and see the full
77
+ license for all details.
assets/fonts/static/Figtree-ExtraBold.ttf ADDED
Binary file (40.9 kB). View file
 
assets/fonts/static/Figtree-Medium.ttf ADDED
Binary file (40.6 kB). View file
 
assets/images/favicon-32x32.png ADDED
assets/images/illustration-article.svg ADDED
assets/images/image-avatar.webp ADDED
index.html CHANGED
@@ -1,19 +1,56 @@
1
- <!doctype html>
2
  <html>
3
- <head>
4
- <meta charset="utf-8" />
5
- <meta name="viewport" content="width=device-width" />
6
- <title>My static Space</title>
7
- <link rel="stylesheet" href="style.css" />
8
- </head>
9
- <body>
10
- <div class="card">
11
- <h1>Welcome to your static Space!</h1>
12
- <p>You can modify this app directly by editing <i>index.html</i> in the Files and versions tab.</p>
13
- <p>
14
- Also don't forget to check the
15
- <a href="https://huggingface.co/docs/hub/spaces" target="_blank">Spaces documentation</a>.
16
- </p>
17
- </div>
18
- </body>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
19
  </html>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE html>
2
  <html>
3
+ <head>
4
+ <title>Page Title</title>
5
+ <link rel="preconnect" href="https://fonts.googleapis.com">
6
+ <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
7
+ <link href="https://fonts.googleapis.com/css2?family=Figtree:ital,wght@0,300..900;1,300..900&family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Young+Serif&display=swap" rel="stylesheet">
8
+
9
+ <link rel="stylesheet" href="style.css">
10
+ </head>
11
+ <body>
12
+
13
+
14
+ <div class="card">
15
+ <div class="preview">
16
+ <img class="illustration" src="./assets/images/illustration-article.svg" alt="">
17
+ </div>
18
+ <div class="align">
19
+ <p class="learning">
20
+ Learning
21
+ </p>
22
+ <p>Published 21 Dec 2023</p>
23
+
24
+ <p class="title">HTML & CSS foundations</p>
25
+ <p class="description">These languages are the backbone of every website, defining structure, content, and presentation.</p>
26
+ <div class="author-container">
27
+ <img src="./assets/images/image-avatar.webp" alt="pfp" class="pfp">
28
+ <p class="author">Greg Hooper</p>
29
+ </div>
30
+
31
+
32
+
33
+ </div>
34
+
35
+
36
+
37
+
38
+ </div>
39
+ </body>
40
  </html>
41
+
42
+
43
+
44
+
45
+
46
+
47
+ <!-- Learning
48
+
49
+ Published 21 Dec 2023
50
+
51
+ HTML & CSS foundations
52
+
53
+ These languages are the backbone of every website, defining structure, content, and presentation.
54
+
55
+ Greg Hooper -->
56
+
style.css CHANGED
@@ -1,28 +1,184 @@
1
- body {
2
- padding: 2rem;
3
- font-family: -apple-system, BlinkMacSystemFont, "Arial", sans-serif;
4
- }
5
-
6
- h1 {
7
- font-size: 16px;
8
- margin-top: 0;
9
- }
10
-
11
- p {
12
- color: rgb(107, 114, 128);
13
- font-size: 15px;
14
- margin-bottom: 10px;
15
- margin-top: 5px;
16
- }
17
-
18
- .card {
19
- max-width: 620px;
20
- margin: 0 auto;
21
- padding: 16px;
22
- border: 1px solid lightgray;
23
- border-radius: 16px;
24
- }
25
-
26
- .card p:last-child {
27
- margin-bottom: 0;
28
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ :root{
2
+ --yellow: hsl(47, 88%, 63%);
3
+ --white: hsl(0, 0%, 100%);
4
+ --gray500: hsl(0, 0%, 42%);
5
+ --gray950: hsl(0, 0%, 7%);
6
+ }
7
+
8
+ * {
9
+ margin: 0;
10
+ padding: 0;
11
+ box-sizing: border-box;
12
+ }
13
+ p {
14
+ margin: 0 0 10px; /* Add bottom margin for spacing */
15
+ color: var(--gray500);
16
+ font-size: 16px; /* Adjust font size if needed */
17
+ }
18
+ body {
19
+
20
+ font-family: "Figtree", sans-serif;
21
+ background-color: var(--yellow);
22
+ display: flex;
23
+ /* flex-direction: column; */
24
+ /* justify-content: center;
25
+ align-items: center; */
26
+
27
+ min-height: 100vh;
28
+ }
29
+
30
+
31
+
32
+ .card {
33
+ display: flex;
34
+ flex-direction: column;
35
+ background-color: white;
36
+ border-radius: 12px;
37
+ object-fit: contain;
38
+ /* padding: 40px 20px; */
39
+ /* padding: 40; */
40
+
41
+ /* width: 100%; */
42
+ /* height: 80%; */
43
+ max-width: 350px;
44
+ /* max-width: 700px; */
45
+ box-shadow: 5px 5px black;
46
+ border: 2px solid black;
47
+ margin: auto;
48
+
49
+ }
50
+
51
+ .align{
52
+ margin-left: 22px;
53
+
54
+ }
55
+
56
+ .preview{
57
+ display: flex;
58
+ justify-content: center;
59
+ max-width: 350px;
60
+ width: 100%;
61
+ }
62
+
63
+
64
+ .illustration{
65
+ margin-top: -12px;
66
+ width: 360px;
67
+ border-radius: 48px;
68
+ padding: 30px;
69
+ }
70
+
71
+ .learning {
72
+ margin-top: -14px;
73
+ display: inline-block;
74
+ background-color: var(--yellow);
75
+ color: var(--gray950);
76
+ /* margin-left: 22px; */
77
+ padding: 6px 10px 6px 10px;
78
+ font-size: 14px;
79
+ font-weight: 800;
80
+ border-radius: 6px;
81
+ }
82
+
83
+
84
+ .datepub {
85
+ font-weight: 500;
86
+ color: var(--gray950);
87
+ font-size: 16px;
88
+ }
89
+ .discription {
90
+ font-size: 16px;
91
+ font-weight: 500;
92
+ color: var(--gray950);
93
+ margin-top: -10px;
94
+ padding-bottom: 25px;
95
+ }
96
+
97
+ .title{
98
+ font-size: 24px;
99
+ font-weight: 800;
100
+ color: var(--gray950);
101
+ transition: all 0.3s ease-in-out;
102
+
103
+ }
104
+
105
+ .title:hover {
106
+ background-color: var(--white);
107
+ color: var(--yellow);
108
+ cursor: pointer;
109
+ }
110
+
111
+
112
+ .author-container{
113
+ display: flex;
114
+ padding-top: 12px;
115
+ align-items: center;
116
+ margin-top: 10px;
117
+ margin-bottom: 10px;
118
+ }
119
+ .author{
120
+ font-size: 16px;
121
+ font-weight: 500;
122
+ color: var(--gray950);
123
+ margin-left: 10px;
124
+ font-weight: 800;
125
+ }
126
+ .pfp{
127
+ width: 50px;
128
+ height: 50px;
129
+ border-radius: 50%;
130
+ margin-top: -10px;
131
+
132
+ }
133
+ /* Weights 500, 800 */
134
+
135
+
136
+
137
+
138
+
139
+
140
+
141
+
142
+
143
+
144
+
145
+
146
+
147
+
148
+
149
+
150
+
151
+
152
+
153
+
154
+ /* :root{
155
+ --yellow: hsl(47, 88%, 63%);
156
+
157
+ --white: hsl(0, 0%, 100%);
158
+
159
+ --gray500: hsl(0, 0%, 42%);
160
+ --gray950: hsl(0, 0%, 7%);
161
+
162
+ }
163
+ body{
164
+ background-color: var(--yellow);
165
+ display: flex;
166
+ justify-content: center;
167
+ align-content: center;
168
+ }
169
+
170
+ p {
171
+ margin: 0;
172
+ }
173
+
174
+ .card{
175
+ display: flex;
176
+ justify-content: center;
177
+ align-items: center;
178
+ width: 50%;
179
+ height: 70vh;
180
+ background-color: var(--white);
181
+ border: 2px solid black;
182
+ border-radius: 8px;
183
+ box-shadow: 5px 5px black;
184
+ } */
styles.txt ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>Page Title</title>
5
+ <link rel="preconnect" href="https://fonts.googleapis.com">
6
+ <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
7
+ <link href="https://fonts.googleapis.com/css2?family=Figtree:ital,wght@0,300..900;1,300..900&family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Young+Serif&display=swap" rel="stylesheet">
8
+ </head>
9
+ <body>
10
+ <div class="container">
11
+
12
+ </div>
13
+ </body>
14
+ </html>
15
+
16
+
17
+
18
+
19
+