Skip to content

Commit 38a7cb0

Browse files
committed
Enhancements for mobile
1 parent fbeb1b2 commit 38a7cb0

File tree

2 files changed

+37
-11
lines changed

2 files changed

+37
-11
lines changed

index.html

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,10 +63,12 @@ <h1>Projects</h1>
6363

6464
<div class="wrapper">
6565
<div class="box">
66+
<div class="project-title-box">
67+
<h3 class="project-item project-title">Djupviks Hamn</h3>
68+
</div>
6669
<div class="project-top">
6770
<img class="project-image" src="djupvik.png" alt="">
6871
<div class="flex-col">
69-
<h3 class="project-item project-title">Djupviks Hamn</h3>
7072
<p class="project-item">Tech: HTML, CSS, Javascript</p>
7173
<p class="project-item">Website with responsive CSS and JS-navbar.</p>
7274
</div>
@@ -77,12 +79,16 @@ <h3 class="project-item project-title">Djupviks Hamn</h3>
7779
</div>
7880
</div>
7981
<div class="box">
82+
<div class="project-title-box">
83+
<h3 class="project-item project-title">seaxwi.github.io</h3>
84+
</div>
8085
<div class="project-top">
86+
8187
<img class="project-image" src="seaxwi.png" alt="">
8288
<div class="flex-col">
83-
<h3 class="project-item project-title">seaxwi.github.io</h3>
84-
<p class="project-item">Tech: HTML, CSS</p>
85-
<p class="project-item">Personal webpage built mainly in pure HTML/CSS with some JS-enhancements.</p>
89+
90+
<p class="project-item">Tech: HTML, CSS</p>
91+
<p class="project-item">Personal webpage built mainly in pure HTML/CSS with some JS-enhancements.</p>
8692
</div>
8793
</div>
8894
<div class="project-bottom">

styles/style.css

Lines changed: 27 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ body {
2020
h1 {
2121
text-align: center;
2222
color: white;
23-
font-size: 300%;
23+
font-size: 3em;
2424
margin: 0em;
2525
margin-top: 1em;
2626
margin-bottom: 1em;
@@ -29,7 +29,7 @@ h1 {
2929
#name {
3030
text-align: center;
3131
color: white;
32-
font-size: 300%;
32+
max-width: 100vw;
3333
margin-top: 4em;
3434
}
3535

@@ -169,7 +169,9 @@ div.contact-box {
169169
.wrapper {
170170
display: grid;
171171
grid-gap: 1em;
172-
grid-template-columns: repeat(auto-fit, minmax(450px, 500px));
172+
/* grid-auto-columns: minmax(450px, auto); */
173+
grid-template-columns: repeat(auto-fit, minmax(350px, auto) );
174+
173175
color: #444;
174176
margin: auto;
175177
padding: 0em 0em;
@@ -182,6 +184,7 @@ div.contact-box {
182184
border-radius: 5px;
183185
padding: 20px;
184186
font-size: 120%;
187+
/* max-width: 100vw; */
185188
}
186189

187190
.flex-col {
@@ -197,14 +200,30 @@ div.contact-box {
197200

198201
.project-item {
199202
margin-bottom: 0.5em;
203+
204+
word-wrap: break-word;
205+
206+
font-size: 80%;
207+
208+
/* break long words */
200209
/*
201-
display: flex;
202-
flex-wrap: wrap;
210+
overflow-wrap: break-word;
211+
word-wrap: break-word;
212+
word-break: break-all;
213+
word-break: break-word;
214+
hyphens: auto;
203215
*/
204216
}
205217

206218
.project-title {
207-
font-size: 150%;
219+
font-size: 180%;
220+
font-family: monospace;
221+
margin-bottom: 0.8em;
222+
}
223+
224+
.project-title-box {
225+
text-align: center;
226+
margin: auto;
208227
}
209228

210229
.project-info {
@@ -219,7 +238,8 @@ div.contact-box {
219238
display: flex;
220239
flex-direction: row;
221240
justify-content: flex-start;
222-
241+
max-width: 400px;
242+
word-wrap: break-word;
223243
/* float: left; */
224244
}
225245

0 commit comments

Comments
 (0)