diff --git a/hw1/claudio_maggioni/css/main.css b/hw1/claudio_maggioni/css/main.css new file mode 100644 index 0000000..d25a48f --- /dev/null +++ b/hw1/claudio_maggioni/css/main.css @@ -0,0 +1,149 @@ +/* vim: set ts=2 sw=2 tw=80 et: */ + +body { + font-family: 'Fira Sans', sans-serif; + background: #ffe; + width: 100%; + margin: 0; + min-height: 100vh; + + display: flex; + flex-direction: column; +} + +header, footer { + padding: 1rem 0; + width: 100%; + text-align: center; + background: rgba(255,0,0,0.5); +} + +@media screen and (min-width: 769px) { + main { + display: flex; + flex-direction: row; + } + + nav, aside { + flex: 0 1 10rem; + } + + article { + flex: 1 2; + } +} + +@media screen and (max-width: 768px) { + main { + display: flex; + flex-direction: column; + } + + article { + flex-grow: 1; + } +} + +main { + flex-grow: 1; +} + +nav, aside { + background: rgba(200,100,0,0.3); +} + +h1, h2, h3, h4, h5, h6 { + margin: 0; + padding: .5rem; + text-align: center; +} + +figure { + background: rgba(0,0,0,0.05); +} + +figcaption { + text-align: center; + padding: .5rem; +} + +audio { + width: 100%; +} + +nav ul, aside ul { + list-style-type: none; + padding: 0; + margin: 0; +} + +nav ul li, aside ul li { + padding: .5rem; + text-align: center; + background: rgba(0,0,0,.1); + text-transform: uppercase; +} + +nav ul li:nth-child(even), aside ul li:nth-child(even) { + background: rgba(0,0,0,.05); +} + +a { + text-decoration: none; + font-weight: bold; +} + +a:link { + color: #36c; + transition: color 200ms; +} + +a:visited { + color: #50c; + transition: color 200ms; +} + +/* FIXME: transition when loading page? */ + +a:active { + color: #603; + transition: color 200ms; +} + +article p { + text-align: justify; +} + +article section { + padding: 1rem; +} + +footer { + display: flex; + align-itemss: center; + flex-direction: row; +} + +footer a { + padding: 0 .5rem; + display: block; + flex: 0 0 auto; +} + +footer section { + padding: 0 .5rem; + font-size: 0.85rem; + flex: 1 1 auto; +} + +footer section p { + margin: .25rem; +} + +dt { + font-weight: bold; +} + +dt::after { + content: ":" +} diff --git a/hw1/claudio_maggioni/index.html b/hw1/claudio_maggioni/index.html index 73cc477..2e32d1c 100644 --- a/hw1/claudio_maggioni/index.html +++ b/hw1/claudio_maggioni/index.html @@ -11,139 +11,7 @@ rel="stylesheet"> - +
@@ -158,34 +26,52 @@ footer section p {
-

Website

- text
- text
- text
- text
- text
- text
- text
- text
- text
- text
- text
-

Media

-

Suggested MP3

-
-
Depeche Mode - Just Can't Get Enough
(MIDI version, from - - The Most Amazing Website On The Internet)
- -
-

Suggested Video

- +
+

About myself

+

My name is Claudio Maggioni, I am 20 years old and I am a second year student of + USI (Universita della Svizzera Italiana). + I am from Montevecchia, a small village in Italy located approximately + between Milan and Como as the crow flies. +

+

This website is the first graded homework for Software Atelier 3 by + Cesare Pautasso.

+
+
+

Hobbies

+

I have several interests, and I am going to list some of them here:

+
+
Archery
+
I am doing archery from 7 years, shooting with an olympic recurve bow. + I am a member of Arcieri Burarco, an archery club in Vimercate, + near where I live in italy. I am also planning to join Lugano's archery + club (ATAL) as a guest.
+ +
Hiking
+
Since this summer, I started hiking where I live in Italy. I find it relaxing + and enjoyable, since it is a form of excercise that one can do for free
+
+
+
+

Media

+

Suggested MP3

+
+
Depeche Mode - Just Can't Get Enough
(MIDI version, from + + The Most Amazing Website On The Internet)
+ +
+

Suggested Video

+
+
Least Used Waterloo - Geoff Marshall
+ +
+