/
+page.svelte
139 lines (119 loc) · 3.18 KB
/
+page.svelte
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
<script>
let myname = 'Daisuke Yamamoto';
let nickname = 'danny';
let twitterProfile = 'https://twitter.com/dai_s_a_n';
let githubProfile = 'https://github.com/danny-yamamoto';
export let data;
$: ({ experiences, articleItems, certificates } = data);
</script>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>{nickname}'s Portfolio</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.1/css/all.min.css">
</head>
<body>
<!-- Introduction Section -->
<section id="intro">
<h1>{myname}</h1>
<p>Welcome to my portfolio</p>
</section>
<!-- Experience Section -->
<section id="experience">
<h2>Experience</h2>
<ul>
{#each experiences as experience }
<li>{experience.id}: {experience.position} @ {experience.company}</li>
{/each}
</ul>
</section>
<!-- Articles Section -->
<section id="articles">
<h2>Top 20 Articles</h2>
<ul>
<!-- Continue listing other articles -->
{#each articleItems as item }
<li>
<!-- svelte-ignore a11y-missing-attribute -->
<a href="{item.url}" target="_blank">{item.title}</a>
</li>
{/each}
</ul>
</section>
<!-- Certificates Section -->
<section id="certificates">
<h2>Certificates</h2>
<ul>
{#each certificates as certificate }
<li>{certificate.title}</li>
{/each}
</ul>
</section>
<footer>
<p>© 2023 {myname}. All rights reserved.</p>
<div class="social-links">
<!-- svelte-ignore a11y-invalid-attribute -->
<a href="{githubProfile}" target="_blank"><i class="fab fa-github"></i></a>
<!-- svelte-ignore a11y-invalid-attribute -->
<a href="{twitterProfile}" target="_blank"><i class="fab fa-twitter"></i></a>
</div>
</footer>
</body>
<style>
body {
margin: 0;
padding: 0;
font-family: Arial, sans-serif;
line-height: 1.6;
}
section {
height: 100vh;
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
}
#intro {
background-color: #333;
color: #fff;
}
#articles {
background-color: #ddd;
}
h1, h2 {
margin: 0 0 20px;
border-bottom: 2px solid #333;
}
ul {
list-style-type: none;
padding: 0;
}
ul li {
margin-bottom: 0px;
}
a {
color: #0077cc;
text-decoration: none;
}
a:hover {
text-decoration: underline;
}
footer {
background-color: #333;
color: #fff;
text-align: center;
padding: 1rem 0;
position: fixed;
bottom: 0;
width: 100%;
}
.social-links a {
color: #fff;
font-size: 1.5rem;
margin-left: 10px;
text-decoration: none;
}
.social-links a:hover {
color: #0077cc;
}
</style>