A personal website hosted on the blockchain.
The URL to deploy to is here: https://n5znu-6iaaa-aaaag-aatoa-cai.ic0.app
ICJavaScript
Svelte
Tools for building UI.
tailwind CSS
CSS Frameworks.
dfx
Tools to create, deploy and manage Dapps to be developed on IC.
src/
assets/
Contains images used for the website
lib/
Contains the components that make up the website.
About.svelte: Compose the profile section.Footer.svelte: Compose the footer.Home.svelte: Compose the home.Nav.svelte: Compose the navigation bar. Contains in-page links to HOME, ABOUT ME, and PORTFOLO.Portfolio.svelte: Compose the portfolio. URL to the official UNCHAIN site is used as a dummy.App.svelte
The main component of the application. This file imports the svelte file in the lib/.
main.js
Files to be loaded directly into index.html. Import App.svelte and app.css.
canister_ids.json
A configuration file mapping the name and ID of deployed canisters. Generated when the command dfx deploy is executed.
dfx.json
Configuration file for building a project for the Internet Computer Blockchain.
postcss.config.cjs, tailwind.config.cjs
tailwind CSS configuration file
Describe in a dfx.json file.
{
"canisters": {
"website": {
"type": "assets",
"source": ["dist"]
}
}
}
"website" is the name you give to the canister.
ex) When looking up the ID of a canister
dfx canister --network ic id website
"type": specifies the type of canister.
"source": specifies the directory to be used for static assets.
Internet Computer
Svelte